Focusing on managing products, variants, and collections through the API.
This is the data returned by the API I tested, and I found that there is no Product Category.
How to get this field? Thank you very much
Any suggestion is thankful!
Hi @infosync2sell👋
You can use the `Product.product_type` property that contains the categorization for the product used for filtering and searching products.
Hope that helps!
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
I set Product Category = 'Pet Agility Equipment' and Product Type = 'test' on this item. The API can return 'test' of the Product Type field but can not return the value of Product Category field. Which API can return the value of Product Category?
At this time, product taxonomies are only available through Admin GraphQL API with the `ProductCategory.productTaxonomyNode` object.
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
I am using this Retrieve a single product API . This API can turn all fields of one product. But it does not return category id of this product. Why? How can I get the category id of this product?
Any update on this? Its very bad that shopify is not sending this basic info in webhooks or apis. Just for this info, making a separate api call for each product is insane
This is really insane. We still do not have any solution for this. Is there any way to get categories for products as of now?