Product (API version: 2020-10): Response header value "Link" is empty

Highlighted
New Member
3 0 1

Hi,

I'm trying to get all products of my Shopify store via API.
I understand that there's a limit of 250 products for each page and I have to use a paginated request to get all products (as described here).

Therefore I have to get the "Link:" attribute from the response header and use it to go to the next page.
Although, this attribute is empty in my response header, it just says: 
Link: ; rel="next"

My request URL is: https://XXXXXXX.myshopify.com/admin/api/2020-10/products.json?status=active&limit=3

I'm using PHP with cURL and everything except this empty "Link:" attribute is completely fine.
Really strange is that I'm getting the value for "Link:" in my Postman request, but in the cURL it's empty.

Does anyone know how to solve this?

Thank you and best regards
K

 

SOLVED

Okay, that was kinda dumb. The "Link" value is actually there, although web browsers hide content which is in angel brackets like "<myurl.com>".
If I check the source code, it's there.
Source: https://stackoverflow.com/questions/46257036/how-to-get-link-headers-for-pagination-from-api-using-p...

 

0 Likes