GitHub+API.SH

GitHub API

Repositories, commits, pull requests, people, trending lists and Used by dependents from GitHub as JSON, with one key and no personal access token.

The API.SH GitHub API returns public GitHub data as JSON without a personal access token. Repository routes cover the overview with languages and latest release, the README, license, file tree and file contents, commits filtered by path, author and date, one commit with its patches, branches, tags, releases with asset download counts, forks, contributors, Actions workflow runs, Discussions and the Used by dependents list. Issues and pull requests come as lists or as one item with comments, changed files, reviews and check runs. Search covers repositories, issues, commits, users and topics with GitHub's qualifiers as parameters. Users and organizations return profiles, members, repositories, followers, stars, the contribution calendar with streaks, public activity, packages and Sponsors tiers, and the trending pages rank repositories and developers by language.

  • 44 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month
  • failed calls free
GitHub repository (with languages and latest release)
GET https://api.api.sh/github/v1/repository
{"id": 10270250,"name": "react","full_name": "react/react","owner": "react","url": "https://github.com/react/react","description": "The library for web and native user interfaces.","homepage": "https://react.dev","language": "JavaScript","topics": ["declarative","frontend","… 4 more"],"license": "MIT","stars": 251904,"forks": 51629,"watchers": 6603,"open_issues": 1504,"size_kb": 1137401,"default_branch": "main","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2013-05-24T16:15:54Z","updated_at": "2026-11-04T05:51:45Z","pushed_at": "2026-10-31T13:53:11Z","node_id": "MDEwOlJlcG9zaXRvcnkxMDI3MDI1MA==","private": false,"mirror_url": null,"disabled": false,"license_name": "MIT License","license_key": "mit","owner_id": 102812,"owner_type": "Organization","owner_avatar": "https://avatars.githubusercontent.com/u/102812?v=4","owner_url": "https://github.com/react","stargazers": 251904,"watchers_count": 251904,"subscribers": 6603,"network_count": 51629,"has_issues": true,"has_projects": false,"has_wiki": false,"…": "21 more fields","cached": false,"credits_used": 1}
1 credit · $1 per 1,000 calls

What you can build with the GitHub API

Open-source due diligence

Before adopting a library, read /github/v1/repository for stars, languages and the latest release, check /github/v1/repository/commits with since for recent activity and list open issues sorted by comments. The license route gives the SPDX id for legal review, and /github/v1/repository/dependents shows how many repositories and packages already rely on it.

Developer sourcing and outreach

Find engineers with /github/v1/search/users using location, language and followers, then read each profile, the contribution calendar with streaks, their own repositories and the pull requests they opened elsewhere.

Spotting rising projects

Read the trending repositories and developers for a language every day, browse a topic's most-starred repositories, and run /github/v1/search/repositories with created and stars qualifiers to catch new projects gaining traction.

Release and CI monitoring

Watch a dependency's releases and tags for new versions and asset download counts, and pull /github/v1/repository/workflows with status=failure and a branch to see which runs broke, when and on which commit.

Pull request and review analytics

List closed pull requests with /github/v1/repository/pulls, open each one for merge details, changed files and reviews, and use /github/v1/search/issues with type=pr and author to measure a team's review turnaround across repositories.

Code context for AI agents

Give a coding agent the README, the recursive file tree at a tag and individual files from /github/v1/repository/contents, plus answered Discussions and matching commits from /github/v1/search/commits, so it reasons about the version you actually use.

GitHub data you get

Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.

GitHub organization/github/v1/organization
loginvercelid14985020nameVerceldescriptionAgentic infrastructure for every…urlhttps://github.com/vercelavatarhttps://avatars.githubuserconten…bloghttps://vercel.comtwittervercelis_verifiedtruehas_organization_projectstruehas_repository_projectstruepublic_repos245public_gists0followers31885following0created_at2015-10-05T19:40:30Zupdated_at2026-07-16T14:59:51ZtypeOrganization
GitHub organization members/github/v1/organization/members
handlevercelpage1count71
members[]login · id · type · avatar · url · node_id · site_admin · user_view_type
GitHub organization repositories/github/v1/organization/repositories
handleverceltypeallsortupdateddirectiondescpage1next_page2count100
repositories[]id · name · full_name · owner · url · description · homepage · language · topics · license · stars · forks

GitHub API endpoints and prices

GitHub endpoints cost 1 to 2 credits per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing

Search and discovery8
Search commits
/github/v1/search/commits
params q +3 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub issue and pull request search
/github/v1/search/issues
params none required +20 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository search
/github/v1/search/repositories
params none required +17 optionaldocstry
$1 · $2 PAYG
1 credit
Search topics
/github/v1/search/topics
params q +3 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user search
/github/v1/search/users
params none required +11 optionaldocstry
$1 · $2 PAYG
1 credit
Topic page
/github/v1/topic
params topic +4 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub trending developers
/github/v1/trending/developers
params none required +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub trending repositories
/github/v1/trending/repositories
params none required +2 optionaldocstry
$1 · $2 PAYG
1 credit
Profiles and accounts15
GitHub organization
/github/v1/organization
params handledocstry
$1 · $2 PAYG
1 credit
GitHub organization members
/github/v1/organization/members
params handle +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub organization repositories
/github/v1/organization/repositories
params handle +4 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user profile
/github/v1/user
params usernamedocstry
$1 · $2 PAYG
1 credit
GitHub user public activity
/github/v1/user/activity
params username +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub contribution calendar and streaks
/github/v1/user/contributions
params usernamedocstry
$1 · $2 PAYG
1 credit
GitHub user followers
/github/v1/user/followers
params username +1 optionaldocstry
$1 · $2 PAYG
1 credit
Accounts a GitHub user follows
/github/v1/user/following
params username +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user gists
/github/v1/user/gists
params handle +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user organizations
/github/v1/user/organizations
params handledocstry
$1 · $2 PAYG
1 credit
User or organization packages
/github/v1/user/packages
params handle +4 optionaldocstry
$1 · $2 PAYG
1 credit
Pull requests opened by a GitHub user
/github/v1/user/pull-requests
params username +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user repositories
/github/v1/user/repositories
params username +2 optionaldocstry
$1 · $2 PAYG
1 credit
User sponsors
/github/v1/user/sponsors
params handle +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub user stars
/github/v1/user/starred
params handle +3 optionaldocstry
$1 · $2 PAYG
1 credit
More data21
GitHub gist
/github/v1/gist
params iddocstry
$1 · $2 PAYG
1 credit
GitHub repository (with languages and latest release)
/github/v1/repository
params urldocstry
$1 · $2 PAYG
1 credit
GitHub repository branches
/github/v1/repository/branches
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub commit
/github/v1/repository/commit
params url, shadocstry
$1 · $2 PAYG
1 credit
GitHub repository commits
/github/v1/repository/commits
params url +7 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository contents
/github/v1/repository/contents
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository contributors
/github/v1/repository/contributors
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
Repository dependents (used by)
/github/v1/repository/dependents
params url +3 optionaldocstry
$1 · $2 PAYG
1 credit
Repository discussions
/github/v1/repository/discussions
params url +6 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository forks
/github/v1/repository/forks
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub issue or pull request
/github/v1/repository/issue
params url +3 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository issues
/github/v1/repository/issues
params url +11 optionaldocstry
$1 · $2 PAYG
1 credit
Repository languages
/github/v1/repository/languages
params urldocstry
$1 · $2 PAYG
1 credit
Repository license
/github/v1/repository/license
params url +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub pull request
/github/v1/repository/pull
params url +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository pull requests
/github/v1/repository/pulls
params url +6 optionaldocstry
$2 · $4 PAYG
2 credits
GitHub repository README
/github/v1/repository/readme
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository releases
/github/v1/repository/releases
params url +1 optionaldocstry
$1 · $2 PAYG
1 credit
GitHub repository tags
/github/v1/repository/tags
params url +1 optionaldocstry
$1 · $2 PAYG
1 credit
Repository file tree
/github/v1/repository/tree
params url +4 optionaldocstry
$1 · $2 PAYG
1 credit
Repository Actions workflows and runs
/github/v1/repository/workflows
params url +7 optionaldocstry
$1 · $2 PAYG
1 credit

Call the GitHub API

GitHub repository (with languages and latest release): GET https://api.api.sh/github/v1/repository

curl "https://api.api.sh/github/v1/repository?url=https%3A%2F%2Ffandai.donguapan.workers.dev%3A443%2Fhttps%2Fgithub.com%2Ffacebook%2Freact" \
  -H "x-api-key: $APISH_KEY"
  1. Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
  2. Create an API keyOne key works for all 921 platforms.
  3. Send the requestJSON back in one call. Add output=csv or output=ndjson for files.

Why API.SH for GitHub data

  • Public data only: no GitHub login, cookies or account needed
  • One key and one response shape for GitHub and 920 other platforms
  • Built and maintained by API.SH, not third-party publishers
  • Pay per call; errors on our side cost nothing
  • No rate limits: run as many calls in parallel as you need
  • Live status for every endpoint

API.SH vs the official GitHub API

GitHub's REST and GraphQL APIs are free and well documented, but anonymous calls get a small hourly quota, so real use means a personal access token or GitHub App and handling its rate limits. Some pages, such as trending repositories and a repository's Used by list, have no REST endpoint at all. API.SH needs no GitHub token and returns those next to the usual repository, issue and user data.

Octokit and PyGithub scripts still need tokens and pagination code per endpoint, and scraping the trending or dependents pages yourself breaks when GitHub changes its markup. API.SH answers GitHub in the same JSON style as npm, PyPI and Hugging Face, billed from one balance.

GitHub API questions

What GitHub data can I get?+

Repositories: overview, languages, README, license, tree, contents, commits, one commit, branches, tags, releases, forks, contributors, dependents (Used by), Discussions and workflow runs. Issues and pull requests: lists, one issue with comments, one pull request with files and reviews. Search: repositories, issues and pull requests, commits, users and topics, plus topic pages. People and organizations: profile, repositories, followers, following, starred, activity, contributions, pull requests opened, gists, organizations, packages, Sponsors, organization members and repositories. Trending: repositories and developers.

How much does the GitHub API cost?+

Most GitHub endpoints cost 1 credit per call; /github/v1/repository/pulls costs 2 credits. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.

Can I try it for free?+

Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /github/v1/gist at 1 credit each.

Is there an official GitHub API?+

Yes, the REST API and the GraphQL API, both documented at docs.github.com and free within their rate limits once you authenticate. API.SH is useful when you want no token setup, one key across many sources, or pages the official API does not cover, like trending and Used by.

Do I need a GitHub account or personal access token?+

No. You call API.SH with your API.SH key only. Everything returned is public: private repositories, private contributions and anything behind a login are not available.

Is there an API for GitHub trending?+

GitHub has no official endpoint for it. Call /github/v1/trending/repositories or /github/v1/trending/developers with language (for example python) and since for the period; each result comes back as structured JSON instead of the HTML of github.com/trending.

How do I find which projects depend on a repository?+

Use /github/v1/repository/dependents with the repository, for example expressjs/express. type switches between dependent repositories and dependent packages, package_id picks one of the packages the repository publishes, and you pass next_cursor back as cursor until it is null. Each entry has owner, name, stars and forks.

Can I search GitHub with qualifiers like stars and language?+

Yes. /github/v1/search/repositories takes language, topic, stars, forks, created, pushed, license and more as plain parameters, so stars=>1000 and language=go work without building the q string by hand. Results go up to GitHub's limit of 1,000 per search.

How do I get started?+

Create an account at api.sh, copy your key and call /github/v1/repository?url=facebook/react to see the shape of the data. Repository, search and user parameters are all listed at https://api.sh/docs. The same calls work from the JS and Python SDKs, Google Sheets, Zapier, Make and n8n, and AI assistants can use them through the MCP server at https://api.sh/mcp.

Does the GitHub API have a rate limit?+

No. API.SH puts no rate limit on your key: send as many GitHub calls in parallel as you need and pay only for the calls that run. If GitHub itself slows down, the call returns 503 with a retry-after header and is not charged.

More jobs & b2b APIs all jobs & company data APIs →

Start with 1,000 free credits
Every month, on every account. One key works for all 921 platforms.
Get a free API key