Get more than 250 products using product api

Maninder
New Member
2 0 0

How to get more Than 250 product using GET api

now i am using this GET /admin/api/2019-10/products.json?limit=250 api.

But i have more than 250 products how i can get all products

 

Thanks

 

0 Likes
m_waqas
Trailblazer
165 36 51

Hi @Maninder, You can't get more than 250 products in one request. You need to make another API call to get more products.
2020-01-06_1813.png

- Was my reply helpful? Click Like and Accept as Solution
- Want to implement a custom solution? Feel free to contact me at waqas4346@gmail.com
m_waqas
Trailblazer
165 36 51

Hi @Maninder, to get more than 250 products you need to use the pagination concept. In this case, you can't pass the page parameter because it'll return an error. Please follow this documentation to implement pagination. 
https://help.shopify.com/en/api/guides/paginated-rest-results

- Was my reply helpful? Click Like and Accept as Solution
- Want to implement a custom solution? Feel free to contact me at waqas4346@gmail.com
Maninder
New Member
2 0 0

In this api one parameter page_info is used, can you please tell where to find this page_info.

0 Likes
m_waqas
Trailblazer
165 36 51

Hi @Maninder, If you read the above documentation carefully, you'll get all your questions answered. For your convenience, I've attached the screenshot, have a look.

2020-01-08_1855.png

- Was my reply helpful? Click Like and Accept as Solution
- Want to implement a custom solution? Feel free to contact me at waqas4346@gmail.com
0 Likes
mkpsoftware
Shopify Expert
10 0 1

Be careful  the page filter support will be removed  4/1/2020

Save the effort of doing it twice use cursor-based pagination

 

The page filter has been removed from all endpoints. Use cursor-based pagination instead.

 

here's a better link

https://help.shopify.com/en/api/guides/paginated-rest-results#make-a-paginated-request-and-iterate-t... 

 

HTH 

 

Tim

0 Likes
ptrwsm
New Member
1 0 0

how to find page_info??

 

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 237

You need to review the response headers. Did you read the link that that was already posted here? https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api#make-a-paginated-request-and... If you read it and follow the instructions you can see how to advance through the cursor-based pages...

0 Likes
Helta
New Member
1 0 0

I have a similar problem. I have ~500 products in shopify. The request and the response for the first 50 products work very fine. To get the next results, I want to get the next link out of the header. Unfortunately, the link in the header is empty. Has anyone an idea?

Thanks, Helta

 

0 Likes
BeamJokerFavor
Excursionist
36 2 2

Can I get more than 250 responses if I use GraphQL?

0 Likes