Shopify reset api collection get all product since_id error

i want get my best seller use reset api ;

so, i create a collection , set Sort => Best Selling

and then use api get collection all product

https://shopify.dev/api/admin-rest/2022-01/resources/collection#[get]/admin/api/2022-01/collections/{collection_id}/products.json

I want to iterate through all products with limit and since_id,

but I get inconsistent quantity of total products with limit=50 and limit=250

https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=50&fields=id&since_id=> https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=50&fields=id&since_id=a> https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=50&fields=id&since_id=b> > https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=250&fields=id&since_id=> https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=250&fields=id&since_id=a> https://test.myshopify.com/admin/api/2021-10/collections/ID/products.json?limit=250&fields=id&since_id=b

limit=250 get more products?

why ?

/collections/{collection_id}/products.json support limit or since_id?

1 Like