Endpoint to return collection name

Shopify Partner
7 0 0

Hi there,

I'm using the Shopify endpoint /admin/product_listings.json to retrieve products then using the /admin/

collects.json?product_id=product_id to get collection the collection ids.I want to get the collection name but there's no endpoint for that. I understand collections are like categories on Shopify. Someone kindly point me to the right direction. Thanks
Shopify Partner
1843 170 525

You have 2 types of collections - automated collections and manual collections. Likewise, you have 2 API endpoints for these collection types which are unfortunately named differently: smart collections and custom collections respectively. That's where you'd find your collection details.


Hope this helps!

I turn coffee in to code - since 1998