Rest API cursor based pagination returning empty header info for link

Shopify Partner
165 2 23

As many may have this question, I found that REST API version 2019-07 does not return the next or previous pagination URL.

 

All I get is:

X-Shopify-API-Version: 2019-07
Link: ; rel="next"

The url call is: /admin/api/2019-07/products.json?limit=2&published_status=published

 

I get 2 products, but the header does not give me the next url.

Google Shopping Specialist - Data Feed Managment Tool
0 Likes
Shopify Partner
165 2 23

I found the issue, the link value is actually there, but you can't view it in the browser due to the angel brackets. If you view the source code, you can see the results.

Google Shopping Specialist - Data Feed Managment Tool
1 Like
Shopify Partner
9 0 0

I have the same issue. Can you please explain me How would you get page_info parameter from Link? I can see it in source code. But it is in <https></https tag.

 

How to process it? I am using PHP. Please help me.

0 Likes