Search code examples
githubgithub-pagesgithub-api

How to get number of user repositories using GitHub api?


I'm trying to get number of repositories of user, without getting all repos using api.github.com/users/userName/repos. Is there any solution to do this?

Thanks


Solution

  • The data at https://api.github.com/users/userName includes the key public_repos that denotes the number of public repositories for the given user