Collections API is not returning all product

Solved
AgenceLB
New Member
3 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?

Accepted Solution (1)

Accepted Solutions
ndongre
Tourist
3 1 1

This is an accepted solution.

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

View solution in original post

Replies 2 (2)
ndongre
Tourist
3 1 1

This is an accepted solution.

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

AgenceLB
New Member
3 0 0

Thank you very much! I wasn't aware of the pagination! That worked