A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
According to some answers, like https://community.shopify.com/c/graphql-basics-and/creating-a-collection-with-a-product-taxonomy-nod... I should get the ProductTaxonomyNode IDs from a text file https://help.shopify.com/txt/product_taxonomy/en.txt
However, the file is not available anymore. Where should I get these IDs from?
Solved! Go to the solution
This is an accepted solution.
Hi @binarydata22,
We have recently updated and released our new Shopify Product Taxonomy API, and what you are seeing is the new format of the GID's, specifically the ProductTaxonomyNode has been replaced with the TaxonomyCategory type.
The links that @AcidPi has shared above are correct and up to date with our new Taxonomy API resources:
Here's also some relevant Shopify.dev documentation for references to the new Taxonomy API objects and queries, and a Shopify.dev Changelog post for the Taxonomy update as well.
I hope this helps, and I hope you have a great day 🙂
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Not exactly. We were parsing this txt file and used numeric IDs from it. Each line in the file had the following format:
156 - Apparel & Accessories > Clothing > Baby & Toddler Clothing > Baby & Toddler Swimwear
See: https://web.archive.org/web/20240315110540/https://help.shopify.com/txt/product_taxonomy/en.txt
And I guess the IDs were referring to the ProductTaxonomyNode entity, i.e. gid://shopify/ProductTaxonomyNode/156
This file https://github.com/Shopify/product-taxonomy/blob/main/dist/en/categories.txt, however, has a different format, entity, and ID structure and is referring to the TaxonomyCategory entity: gid://shopify/TaxonomyCategory/ap-2-1-1-2-3
So I assume these are different things.
This is an accepted solution.
Hi @binarydata22,
We have recently updated and released our new Shopify Product Taxonomy API, and what you are seeing is the new format of the GID's, specifically the ProductTaxonomyNode has been replaced with the TaxonomyCategory type.
The links that @AcidPi has shared above are correct and up to date with our new Taxonomy API resources:
Here's also some relevant Shopify.dev documentation for references to the new Taxonomy API objects and queries, and a Shopify.dev Changelog post for the Taxonomy update as well.
I hope this helps, and I hope you have a great day 🙂
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog