+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
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} 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 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 commits /github/ | $1 · $2 PAYG 1 credit |
| GitHub issue and pull request search /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository search /github/ | $1 · $2 PAYG 1 credit |
| Search topics /github/ | $1 · $2 PAYG 1 credit |
| GitHub user search /github/ | $1 · $2 PAYG 1 credit |
| Topic page /github/ | $1 · $2 PAYG 1 credit |
| GitHub trending developers /github/ | $1 · $2 PAYG 1 credit |
| GitHub trending repositories /github/ | $1 · $2 PAYG 1 credit |
| GitHub organization /github/ | $1 · $2 PAYG 1 credit |
| GitHub organization members /github/ | $1 · $2 PAYG 1 credit |
| GitHub organization repositories /github/ | $1 · $2 PAYG 1 credit |
| GitHub user profile /github/ | $1 · $2 PAYG 1 credit |
| GitHub user public activity /github/ | $1 · $2 PAYG 1 credit |
| GitHub contribution calendar and streaks /github/ | $1 · $2 PAYG 1 credit |
| GitHub user followers /github/ | $1 · $2 PAYG 1 credit |
| Accounts a GitHub user follows /github/ | $1 · $2 PAYG 1 credit |
| GitHub user gists /github/ | $1 · $2 PAYG 1 credit |
| GitHub user organizations /github/ | $1 · $2 PAYG 1 credit |
| User or organization packages /github/ | $1 · $2 PAYG 1 credit |
| Pull requests opened by a GitHub user /github/ | $1 · $2 PAYG 1 credit |
| GitHub user repositories /github/ | $1 · $2 PAYG 1 credit |
| User sponsors /github/ | $1 · $2 PAYG 1 credit |
| GitHub user stars /github/ | $1 · $2 PAYG 1 credit |
| GitHub gist /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository (with languages and latest release) /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository branches /github/ | $1 · $2 PAYG 1 credit |
| GitHub commit /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository commits /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository contents /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository contributors /github/ | $1 · $2 PAYG 1 credit |
| Repository dependents (used by) /github/ | $1 · $2 PAYG 1 credit |
| Repository discussions /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository forks /github/ | $1 · $2 PAYG 1 credit |
| GitHub issue or pull request /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository issues /github/ | $1 · $2 PAYG 1 credit |
| Repository languages /github/ | $1 · $2 PAYG 1 credit |
| Repository license /github/ | $1 · $2 PAYG 1 credit |
| GitHub pull request /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository pull requests /github/ | $2 · $4 PAYG 2 credits |
| GitHub repository README /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository releases /github/ | $1 · $2 PAYG 1 credit |
| GitHub repository tags /github/ | $1 · $2 PAYG 1 credit |
| Repository file tree /github/ | $1 · $2 PAYG 1 credit |
| Repository Actions workflows and runs /github/ | $1 · $2 PAYG 1 credit |
Call the GitHub API
GitHub repository (with languages and latest release): GET https://api.api.sh/github/
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" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/repository",
params={"url": "https://github.com/facebook/react"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/github/v1/repository");
url.searchParams.set("url", "https://github.com/facebook/react");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/github/v1/repository", "url", "https://github.com/facebook/react")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "GitHub" and "GitHub repository (with languages and latest release)".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 921 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor 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.