How API will get 2nd or 3rd pages information

RubelSiddique
New Member
1 0 0

TO GET Product

/admin/api/2021-04/products.json

limit

Return up to this many results per page.

(default: 50, maximum: 250)

 

In previous version, I've used this link but in "2021-04 version" It is not working....

/admin/api/2021-04/variants.json?limit=250&fields=sku,option1,inventory_item_id,inventory_quantity&page=2

 

Please help and provide me the updated link 

0 Likes
L_J_K
Shopify Staff
Shopify Staff
142 15 24

Hey @RubelSiddique 

Since the 2019-07 API Version we removed the page parameter, so you wouldn't be able to call it with API version 2021-04.

There's a great resource on Relative Pagination in our documentation here and an insight into the since_id and link pagination types here. Hope that helps!

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
0 Likes