TanqoryDocs

collection

  • Query
  • Storefront

Returns one collection visible on the online store, found by id or by handle. With both, id wins; with neither, the answer is null.

Arguments

ArgumentTypeRequiredDefault
idIDOptional
handleStringOptional

Returns

Collection A group of products shown together on the online store, with its title, description, image, SEO details and the products it contains.

FieldTypeDescription
descriptionString!
  • truncateAt: Int
descriptionHtmlHTML!
handleString!
idID!
imageImage
metafieldMetafield
metafields[Metafield]!
onlineStoreUrlURL
productsProductConnection!
seoSEO!
titleString!
trackingParametersString
updatedAtDateTime!
tanqoryExtTemplateSuffixString

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query Collection {\n  collection {\n    description\n    descriptionHtml\n    handle\n    id\n    image { id }\n    onlineStoreUrl\n    seo {\n      description\n      title\n    }\n    title\n    trackingParameters\n    updatedAt\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10