TanqoryDocs

article

  • Query
  • Storefront

Returns one published article by its id, or null when no visible article has that ID.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

Article A blog post: its title, content, excerpt, author, tags, image, publish date and SEO details, and the blog it belongs to.

FieldTypeDescription
authorArticleAuthor!

Deprecated

authorV2ArticleAuthor
blogBlog!
commentsCommentConnection!
contentString!
  • truncateAt: Int
contentHtmlHTML!
excerptString
  • truncateAt: Int
excerptHtmlHTML
handleString!
idID!
imageImage
metafieldMetafield
metafields[Metafield]!
onlineStoreUrlURL
publishedAtDateTime!
seoSEO
tags[String!]!
titleString!
trackingParametersString
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 Article($id: ID!) {\n  article(id: $id) {\n    blog { id }\n    content\n    contentHtml\n    excerpt\n    excerptHtml\n    handle\n    id\n    image { id }\n    onlineStoreUrl\n    publishedAt\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10