Get products with their collections (categories)

Highlighted
New Member
1 0 0

Hi there,

I want to list all of my products with related collections (categories) by using Product API.
Is there any way to do it except calling GET /admin/api/2019-04/custom_collections.json?product_id=*product_id* endpoint by each product?

Thank you!
Marina

0 Likes
Shopify Staff
Shopify Staff
1102 76 142

Hi Marina, 

 

You can filter Product API results by collection ID, for example : /admin/api/2019-04/products.json?collection_id=15192301

 

I think you'll find that's a much more efficient way to get the results you're looking for. 

0 Likes