Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Query products added to collection since specific time

Query products added to collection since specific time

Panagiotis_Tsar
Shopify Partner
5 0 0

Hey there,

in the app that I'm developing, I need to keep track of the products of a certain collections and save them to a database. This is because there might be a ton of products and making all the API requests can take a lot of time. For the /products endpoint, there is the query param "updated_at_min" to fetch only the updated products and not the whole catalog.

Is there a way to do this for collections as well? To get the products added to a collection since two weeks ago, for example, instead of fetching the whole collection everytime something changes. This also has to work for smart collections.

Thanks!

Replies 0 (0)