Collections API is not returning all product

AgenceLB
New Member
1 0 0

I am using this endpoint /admin/api/2021-04/collections/{collection_id}/products.json to return a list of product.

I found not all product from this collection are being returned If I compared to what we see in the admin section of the shopify.

Any idea on what can be the cause or how to investigate?

0 Likes
ndongre
New Member
3 0 0

Are you passing the limit parameter to determine how many responses you want your API call to return? Also checkout out pagination with REST: https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api

0 Likes