Introducing the Instagram APIRead more →

GitHub Pinned Repositories API. Repos, page by page.

Repos a user or organization pinned, in order. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Pinned Repositories API at a glance

Returns the repositories a GitHub user or organization pinned to its profile, from its username, account ID or link, in the order it chose. Each comes with its permanent ID, owner, description, main language, stars, forks, and whether it is a fork, archived or a template.

GET /v1/github/pinned_repositories

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 24 typed fields null when unknown
  • 6 repos per page, the order the account pinned them in
  • handle is all it needs, e.g. torvalds

Send one request. Get up to 6 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
handle = torvalds
GET /v1/github/pinned_repositoriesTry in
const params = new URLSearchParams({
  handle: "torvalds",
});
const res = await fetch(`https://socialtap.dev/v1/github/pinned_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/pinned_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: its username, with or without the @; its numeric account ID, which survives a rename; or its profile link (github.com/torvalds, with any tab, github.com/orgs/vercel/repositories).

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

  • Show the projects a developer chose to feature

  • Enrich candidate profiles with their best work

  • Track which projects an organization puts forward

  • Find the flagship repositories of an organization

Good to know before you build.

  • An account that pinned nothing returns an empty list. GitHub's profile then shows its most starred repositories instead; the GitHub Repositories API lists them all with exact counts.
  • Stars and forks are rounded past a thousand as GitHub shows them (17.5k), and listed in approximate_fields; the GitHub Repository API has them exact.
  • A pinned repository can belong to another account, such as an organization the person works on: its owner is then that account, with its username only.
  • Pinned gists are left out. GitHub lets an account pin up to six items, so the list is one page and ends with page.end_reason platform_limit.
  • Topics, license, dates and issue counts are not on the profile's cards: they are null, topics listed in unknown_fields.

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

More in the API reference.

How much does the GitHub Pinned Repositories API cost?
A page of up to 6 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 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