Unable to get Product Category field from API return data when trying to use REST Admin API

![YKZE}S{0HU%~(W`MQQ1@OI.png|846x475

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

1 Like

Any suggestion is thankful!

Hi @infosync2sell :waving_hand:

You can use the Product.product_type property that contains the categorization for the product used for filtering and searching products.

Hope that helps!

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.

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?

2 Likes

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

1 Like

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?