A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
The products api does not return all the products registered in the portal, for this reason I cannot update the inventory of the products that do not appear.
https://{business}.myshopify.com/admin/api/2020-04/products.json
What am I missing to show me all the items?
Solved! Go to the solution
This is an accepted solution.
Hi,
How many products you're getting in one request? You can set query param as ?limit=250
There after you need to use pagination
This is an accepted solution.
Hi,
How many products you're getting in one request? You can set query param as ?limit=250
There after you need to use pagination
Thank you very much, I can already see many of the products that I couldn't before. Could you explain more about how to handle pagination?
here is the official guide https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api
hope it will help you
Thank you very much for your answer, it was very helpful but I still have a problem determining the page_info parameter.
I observe that it is an encrypted chain:
eyJkaXJlY3Rpb24iOiJwcmV2IiwibGFzdF9pZCI6NDQ4MDU1NjUzMTg0NiwibGFzdF92YWx1ZSI6IkRJU0NPIE1FVEFMIFBMQU5PIE5PUlRPTiJ9
how can I determine that chain and know how many total pages of products there are?
Thanks in advance for your reply.