Introducing the Instagram APIRead more →

GitHub Repository API. Send a repository or its link.

Stars, forks, watchers, open issues and license. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Repository API at a glance

Returns a public GitHub repository from its link or owner/name. You get exact star, fork and watcher counts, open issues and open pull requests counted apart, the description, topics, main language, license, homepage, default branch, the owner, the fork it came from, and when it was created and last pushed to.

GET /v1/github/repository

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 24 typed fields null when unknown
  • url is all it needs, e.g. https://github.com/torvalds/linux
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 24 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://github.com/torvalds/linux
GET /v1/github/repositoryTry in
const params = new URLSearchParams({
  url: "https://github.com/torvalds/linux",
});
const res = await fetch(`https://socialtap.dev/v1/github/repository?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/github/repositoryDocs

What you send and what comes back.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field GitHub doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The repository: its link (github.com/torvalds/linux, or any page under it: a file, a folder, its issues or releases), owner/name alone (torvalds/linux), a clone link (https://github.com/torvalds/linux.git, git@github.com:torvalds/linux.git), a file on raw.githubusercontent.com, or the API's link (api.github.com/repos/torvalds/linux, api.github.com/repositories/2325298, by the repository's ID).

  • What comes back

    Code repositories with their owner, description, language, topics, license, stars, forks, watchers, open issues and when they were last pushed to.

platformstring
Platform ID (github, …).
idstring
Platform-native repository ID (string): GitHub's number, which stays the same when the repository is renamed or moves to another owner.
full_namestring
Owner and name as in its link (torvalds/linux): what people call it, though it changes when the repository is renamed or transferred.
namestring
The repository's name without its owner (linux), as its link spells it.
urlstring
Canonical repository page URL.
avatar_urlstring
The repository's own icon, apart from its owner's avatar; null when it has none. Platform CDN URLs can expire.
descriptionstring
The repository's short description (GitHub's About), as plain text; null when it has none.
ownerobject
The account that owns it: a person or an organization (owner_type).

What teams build with the GitHub Repository API.

  • Track a project's stars and forks over time

  • Enrich a list of repositories with language, license and topics

  • Spot abandoned projects by their last push and archived flag

  • Measure open issue and pull request backlogs

Good to know before you build.

  • metrics.open_issue_count counts issues alone and metrics.open_pull_request_count pull requests alone. GitHub's own open issue count adds the two together.
  • metrics.watcher_count is the people watching the repository for notifications, not its stars.
  • id is the repository's numeric ID, which stays the same after a rename or a transfer. Send api.github.com/repositories/<id> as url to read it under whatever name it has now.
  • If GitHub's API refuses, the repository is read from its page. Open issue and pull request counts are then rounded past a thousand and listed in approximate_fields, and the size, language, push date and node ID are null.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the GitHub Repository API.

More in the API reference.

How much does the GitHub Repository API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs