Introducing the Instagram APIRead more →

GitHub Repositories API. Repositories, page by page.

Every public repo of a user or org, with stars. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Repositories API at a glance

Returns the public repositories of a GitHub user or organization, from its username, account ID or link, a page at a time, newest first or by latest push. Each repository comes with its exact star and fork counts, description, topics, main language, license, homepage, default branch, fork and archived flags, size, and when it was created, updated and last pushed to.

GET /v1/github/repositories

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 24 typed fields null when unknown
  • 100 repositories per page, newest first
  • handle is all it needs, e.g. torvalds

Send one request. Get up to 100 repositories 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
handle = torvalds
GET /v1/github/repositoriesTry in
const params = new URLSearchParams({
  handle: "torvalds",
});
const res = await fetch(`https://socialtap.dev/v1/github/repositories?${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, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/github/repositoriesLong arrays and strings are shortened here. Real responses are complete.Docs

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 GitHub user or organization whose repositories to list: its username (login), with or without the @; its numeric account ID, which survives a rename; or its link (github.com/torvalds, with any tab, github.com/orgs/cli/repositories, gist.github.com/<username>, api.github.com/users/<username>).

  • 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 Repositories API.

  • Audit an organization's open source portfolio

  • Find a developer's most starred projects

  • Track new repositories an organization publishes

  • Spot abandoned projects by their last push

Good to know before you build.

  • By default the list holds the repositories the account owns, the forks it made included (is_fork). Set type to member for the public repositories of others it is a collaborator on, or all for both.
  • GitHub's list adds open pull requests to open issues and doesn't say how many of each, so metrics.open_issue_count and metrics.open_pull_request_count are null unless the issue tracker is off or nothing is open. The GitHub Repository API returns both counted apart, with the watcher count and the repository a fork came from.
  • since and until filter on created_at. With newest, the walk stops at since, so older pages are not fetched or charged.

1 credit per page. Failed requests are free.

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

SourcePrice per successful pagePer 1,000 pages
Platform API api1 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 Repositories API.

More in the API reference.

How much does the GitHub Repositories API cost?
A page of up to 100 repositories costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link 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