Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Api URL to find all github repos for user?

https://api.github.com/users/ethanboxx/repos

Gives 30 results but I have 50 repositories on that github page. Is there a url I could use to get all 50 of them in json form?

1 Reply
Pilot Lvl 1
Message 2 of 2

Re: Api URL to find all github repos for user?

@ethanboxx 

 

Using the below url you can get 50 data set.

https://api.github.com/users/ethanboxx/repos?per_page=50

 

GitHub has pagination and by default, the result set is 30 only. Either you can traverse through pages or increase the per_page parameter.

 

https://developer.github.com/v3/#pagination

 

Regards

Parithiban