App reviews, troubleshooting, and recommendations
I can get the Product Type using the GraphQL API from `Product.productType`, but I can't find any documentation on how to get the Product Category. Could someone guide me in the right direction? Thanks!
Solved! Go to the solution
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
Thank you! If anyone is getting null returned from this, be sure to click the tick icon on Product Category to actually accept it.
Hi,
I would need to retrieve the product category with the Products endpoint using the REST API.
Is this planned to be added anytime soon?
Thank you.
This is available for GraphQL. Can you please help me with the REST API mechanism to get the product category
But it's not available via the Storefront GraphQL API?!
I need to pass the category into useServerAnalytics in my Hydrogen app.
G
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025