tanqoryExtTranslatableResources
- Query
- Markets, tax and languages
The translatable resources of one type, as translatableResources, filtered by the state of their translations in locale (for all markets) and by query: a case-insensitive part of the resource's name (title; name for options and option values; alt text for images; value for metafields). Ordered by id. status ALL with no query answers what translatableResources answers. Types with no resources here answer an empty list.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
after | String | Optional | |
before | String | Optional | |
first | Int | Optional | |
last | Int | Optional | |
locale | String! | Required | |
query | String | Optional | |
resourceType | TranslatableResourceType! | Required | |
status | TanqoryExtTranslationStatusFilter | Optional | ALL |
Returns
TranslatableResourceConnection!
| Field | Type | Description |
|---|---|---|
edges | [TranslatableResourceEdge!]! | |
nodes | [TranslatableResource!]! | |
pageInfo | PageInfo! |
Example request
A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.
Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).
curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
-H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data '{"query":"query TanqoryExtTranslatableResources($first: Int, $locale: String!, $resourceType: TranslatableResourceType!) {\n tanqoryExtTranslatableResources(first: $first, locale: $locale, resourceType: $resourceType) {\n nodes {\n resourceId\n }\n pageInfo { hasNextPage endCursor }\n }\n}","variables":{"first":5,"locale":"","resourceType":"ARTICLE"}}'Node.js
// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtTranslatableResources(\$first: Int, \$locale: String!, \$resourceType: TranslatableResourceType!) {
tanqoryExtTranslatableResources(first: \$first, locale: \$locale, resourceType: \$resourceType) {
nodes {
resourceId
}
pageInfo { hasNextPage endCursor }
}
}`;
const variables = {
"first": 5,
"locale": "",
"resourceType": "ARTICLE"
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));Python
# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtTranslatableResources($first: Int, $locale: String!, $resourceType: TranslatableResourceType!) {
tanqoryExtTranslatableResources(first: $first, locale: $locale, resourceType: $resourceType) {
nodes {
resourceId
}
pageInfo { hasNextPage endCursor }
}
}"""
variables = json.loads("""{
"first": 5,
"locale": "",
"resourceType": "ARTICLE"
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))