GitHub API
Get public GitHub data as typed JSON: user, repositories, pull requests, activity, followers, following, contributions, repository, trending repositories and trending developers. One API key, and a published credit cost for every endpoint.
GitHub endpoints
All endpoints authenticate via x-api-key
User
/v1/github/user
Provide one of: handle, url. Get public GitHub user details for a user. Pass username, handle, or url.
Repositories
/v1/github/user/repositories
Provide one of: handle, url. Get public repositories for a GitHub user. Supports pagination and GitHub's repo sorting options.
Pull Requests
/v1/github/user/pull-requests
Get public pull requests authored by a GitHub user. Filter by created date with since and until.
Activity
/v1/github/user/activity
Provide one of: handle, url. Get public GitHub profile contribution activity for a user. Defaults to the current year and returns one month at a time.
Followers
/v1/github/user/followers
Provide one of: handle, url. Get public followers for a GitHub user. Pass username, handle, or url.
Following
/v1/github/user/following
Provide one of: handle, url. Get public accounts a GitHub user follows.
Contributions
/v1/github/user/contributions
Provide one of: handle, url. Get a user's GitHub contribution graph for a year.
Repository
/v1/github/repository
Get public metadata for one GitHub repository.
Trending Repositories
/v1/github/trending/repositories
Get GitHub trending repositories. Supports language, spoken_language_code, and daily/weekly/monthly range filters.
Trending Developers
/v1/github/trending/developers
Get GitHub trending developers. Supports language and daily/weekly/monthly range filters.
GitHub API FAQ
How much does the GitHub API cost?
Every GitHub endpoint costs 1 credit per call by default. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
Do I need a GitHub account or developer app?
No. You call Fetchproof with one API key in the x-api-key header. It returns public GitHub data only, so there's no GitHub login, OAuth or app review.
What happens when a call fails or finds nothing?
Errors cost 0 credits, and so do cache hits on endpoints that take cache_max_age. Each endpoint page lists its own rules.
Which GitHub data can I get?
10 endpoints: User, Repositories, Pull Requests, Activity, Followers, Following, Contributions, Repository, Trending Repositories and Trending Developers.
Is there a free trial?
Yes. Sign up with an email address to get 100 free credits, with no card. Credits never expire.
Ready to try it? Get 100 free credits or compare credit packs.