Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: I don't know how to get the page_id

I don't know how to get the page_id

IvanElias
Shopify Partner
1 0 0

I want to Get all products in Postman, but I don't know how to get the page_id. I need this page_id to do pagination.

In my all products query, it only shows me products, not the page_id. I'm using REST API version 2023-04.

 

Captura de pantalla 2023-05-23 a la(s) 17.14.01.png

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 239 535

Hi @IvanElias ,

 

REST endpoints support cursor-based pagination.

 

Cursor-based pagination is a specific type of pagination that uses a cursor to keep track of where the current page of data ends and the next page begins. This cursor can be a timestamp, an ID, or any other unique identifier that can be used to identify a specific point in the dataset.

 

You can read more and find examples in this developer document on REST Pagination.

 

Hope that helps! 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog