Solved

Product API problem

Josan
Visitor
3 0 0

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?

Accepted Solution (1)

Jivan_Suhagiya
Shopify Partner
582 79 124

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

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder

View solution in original post

Replies 4 (4)

Jivan_Suhagiya
Shopify Partner
582 79 124

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

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
Josan
Visitor
3 0 0

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?

Jivan_Suhagiya
Shopify Partner
582 79 124

here is the official guide https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api

hope it will help you

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
Josan
Visitor
3 0 0

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.