Introducing the Instagram APIRead more →

GitHub Repository Search API. Repos matching your search.

Repos by keyword, with exact star and fork counts. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Repository Search API at a glance

Returns the public GitHub repositories a search finds, from keywords and GitHub's own qualifiers such as language, stars, topic and owner, by best match, most stars or latest push. Each comes with its owner, description, language, topics, license, exact star and fork counts, and when it was created and last pushed to.

GET /v1/github/search_repositories

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 24 typed fields null when unknown
  • 50 repos per page, GitHub's best match
  • query is all it needs, e.g. web framework language:go

Send one request. Get up to 50 repos 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
query = web framework language:go
GET /v1/github/search_repositoriesTry in
const params = new URLSearchParams({
  query: "web framework language:go",
});
const res = await fetch(`https://socialtap.dev/v1/github/search_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/search_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

    What to find, as GitHub's repository search reads it: words matched in the name, description, topics and README, a phrase in quotes, and GitHub's qualifiers (language:go, stars:>1000, topic:cli, user:torvalds, org:github, license:mit, archived:false, fork:true, pushed:>2026-01-01).

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

  • Find the most starred projects in a language

  • Discover repositories created this week

  • Track open source projects on a topic

  • Build lists of libraries for research or outreach

Good to know before you build.

  • GitHub serves the first thousand results of a search, after which the walk ends with page.end_reason platform_limit: narrow the query with a qualifier, or since and until, to reach the rest.
  • Forks are left out unless the query includes fork:true.
  • If GitHub's search API refuses, results come from github.com's search page instead, ten a page, without fork counts, license or creation time, and with descriptions cut short.

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
Any source1 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 Search API.

More in the API reference.

How much does the GitHub Repository Search API cost?
A page of up to 50 repos 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 with your own search.

Type 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