TanqoryDocs

collectionByHandle

  • Query
  • Storefront
  • Deprecated

Deprecated.

Returns the visible collection with the given handle, or null. Kept for older clients; collection with handle does the same.

Arguments

ArgumentTypeRequiredDefault
handleString!Required

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 CollectionByHandle($handle: String!) {\n  collectionByHandle(handle: $handle) {\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":{"handle":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10