Fetch all releases via API, response pagination?

The “List releases” API it seems to suggest that a response includes a “Link” header containing next page and last page

Is this not available?
I ran

curl -i https://api.github.com/repos/myorg/myrepo/releases -v > /dev/null

< HTTP/1.1 200 OK
< server: GitHub.com
< date: Sun, 13 Sep 2020 23:29:44 GMT
< content-type: application/json; charset=utf-8
< status: 200 OK
< cache-control: public, max-age=60, s-maxage=60
< vary: Accept, Accept-Encoding, Accept, X-Requested-With
< etag: W/"ed0c8ec2bfdd3119c8c765d025bba96b"
< x-github-media-type: github.v3; format=json
< access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
< access-control-allow-origin: *
< strict-transport-security: max-age=31536000; includeSubdomains; preload
< x-frame-options: deny
< x-content-type-options: nosniff
< x-xss-protection: 1; mode=block
< referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
< content-security-policy: default-src 'none'
< X-Ratelimit-Limit: 60
< X-Ratelimit-Remaining: 46
< X-Ratelimit-Reset: 1600042835
< X-Ratelimit-Used: 14
< Accept-Ranges: bytes
< Content-Length: 242199
< X-GitHub-Request-Id: DB66:23E5:62A2F2:104ED30:5F5EAB71

This does not have any link and the body of the json doesn’t appear to have it either

In case it is helpful, I loop from


Until I get an empty JSON response

I use this instead of trying to parse the response HTTP Link header