Getting all github users through github-api

GitHub API documentation says URL

https://api.github.com/users

will provide all users in the order in which they subscribed, but it seems to me that I'm getting the first 135.

Any ideas on how to get a real complete list?

+6
source share
3 answers

Please use the since parameter in your GET request.

 https://api.github.com/users?since=XXX 

Perhaps this was done in such a way as to limit the resources needed to process such a request. Without this restriction, he simply asks DoS to attack.

+9
source

If you check the response headers for this request, Github provides links to pages under the Links heading.

 Link: <https://api.github.com/users?since=135>; rel="next", <https://api.github.com/users{?since}>; rel="first" 

I believe that with their api v3 Github moved to a hypermedia api.

Github Hypermedia API

EDIT

This is beyond the scope of this question, but is related to it. To learn more about the hypermedia API and REST. Take a look at these Steve Klabnik slides

http://steveklabnik.github.com/hypermedia-presentation/#1

+3
source

Both existing answers are 100% correct, but I would advise you to use a wrapper for any language in which you do this. There are many of them, and there is an official one for ruby ​​(Octokit). Below is a list.

+1
source

All Articles