You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GitHub REST API makes it impossible to traverse the stargazers endpoint for large repos and limits how many pages we can query.
For example, querying https://api.github.com/repositories/10270250/stargazers?page=500&per_page=100 will result in the following error:
{
"message": "In order to keep the API fast for everyone, pagination is limited for this resource. Check the rel=last link relation in the Link response header to see how far back you can traverse.",
"documentation_url": "https://docs.github.com/v3/#pagination"
}
And contrary to what the message suggests, querying the "last" link still gives an error...
To make things worse, the API does NOT allow any of the following params for this endpoint:
"since"
"sort"
A solution is to paginate through a Graphql version instead:
The GitHub REST API makes it impossible to traverse the stargazers endpoint for large repos and limits how many pages we can query.
For example, querying
https://api.github.com/repositories/10270250/stargazers?page=500&per_page=100
will result in the following error:And contrary to what the message suggests, querying the "last" link still gives an error...
To make things worse, the API does NOT allow any of the following params for this endpoint:
A solution is to paginate through a Graphql version instead:
The text was updated successfully, but these errors were encountered: