Collection IDs?

Highlighted

So I have looked through the API documentation to find a method to extract the collection IDs from the store. I could not find any documentation for this, and wanted to know if anyone has found this, and/or any solution?

 

The closed thing to collection_id found in the docs was via product search, via the Collection ID. Which suggests it should be there somewhere?

 

Kind regards

Vaping and working
0 Likes
Highlighted

Hi, I believe this might be what you are looking for:

https://help.shopify.com/en/api/reference/products/collect#index-2020-01

0 Likes
Highlighted

Thanks for the reply. I did see this... I am looking for a way to generate a list of Collection Ids, Names, Descriptions etc. So if I could pull collection_ids off this API endpoint, there isn't one to generate more information about the collection attributes, but only the products that are in it. Maybe I am missing something?

Vaping and working
0 Likes
Highlighted

Once you have a list of the collection ids from the collect endpoint, you can loop through those ids and make requests to one of the following 3 endpoints (to get the collection details):

https://help.shopify.com/en/api/reference/products/collection

https://help.shopify.com/en/api/reference/products/customcollection

https://help.shopify.com/en/api/reference/products/smartcollection

 

Which endpoint you use depends on what you are trying to accomplish.

0 Likes
Highlighted

Ok I see, thank you. I will let you know how I get on with this.

Vaping and working
0 Likes