Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Created June 12, 2013 16:52
Show Gist options
  • Save pengwynn/5767101 to your computer and use it in GitHub Desktop.
Save pengwynn/5767101 to your computer and use it in GitHub Desktop.
Paginate repo forks
curl -I https://api.github.com/repos/phpbb/phpbb3/forks
HTTP/1.1 200 OK
Server: GitHub.com
Date: Wed, 12 Jun 2013 16:50:45 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
Vary: Accept
Cache-Control: public, max-age=60, s-maxage=60
Last-Modified: Wed, 12 Jun 2013 16:49:12 GMT
ETag: "53f0ce5000423c3b19c43ea556cb0319"
X-GitHub-Media-Type: github.beta
Link: <https://api.github.com/repositories/541983/forks?page=2>; rel="next", <https://api.github.com/repositories/541983/forks?page=9>; rel="last"
X-Content-Type-Options: nosniff
Content-Length: 154340
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
Access-Control-Allow-Origin: *
Vary: Accept-Encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment