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)