Introducing the Instagram APIRead more →

GitHub Following API. Accounts, page by page.

Accounts a user follows, with permanent IDs. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Following API at a glance

Returns the accounts a GitHub user follows, from its username, account ID or link, a page at a time. Each account comes with its username, permanent account ID, avatar, profile link, whether it is a user or an organization, its node ID and GitHub's staff flag. Page through the whole list with the cursor.

GET /v1/github/following

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 19 typed fields null when unknown
  • 100 accounts per page, by account ID, oldest accounts first (the page source: github.com's own order, the latest follows first as far as seen)
  • handle is all it needs, e.g. sindresorhus

Send one request. Get up to 100 accounts 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 = sindresorhus
GET /v1/github/followingTry in
const params = new URLSearchParams({
  handle: "defunkt",
});
const res = await fetch(`https://socialtap.dev/v1/github/following?${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/followingLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 29 platforms.

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 account: its username (login), with or without the @; its numeric account ID, which survives a rename; or its link (github.com/sindresorhus, with any tab such as ?tab=following, api.github.com/users/<username>, gist.github.com/<username>).

  • Write one parser

    GitHub, TikTok, Instagram and 26 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native account ID (string; YouTube UC…, Reddit t2_…).
usernamestring
Handle without the @; null when the account has none.
display_namestring
Display name, channel title or page name; null when empty or not exposed.
urlstring
Canonical profile URL.
typestring
Coarse account kind, as the platform labels it; unknown when it does not (TikTok labels organizations only). New values may be added; treat unknown values as unknown.
biostring
Profile bio, channel description or page about text; null when empty or not exposed.
avatar_urlstring
Profile picture URL (largest available). Platform CDN URLs can expire within hours.

What teams build with the GitHub Following API.

  • Map who a developer follows to find related people and projects

  • Build a follow graph of an open-source community

  • Spot which organizations a maintainer keeps up with

  • Seed a list of developers to enrich with the GitHub Profile API

Good to know before you build.

  • Accounts come in the order GitHub's API lists them: by account ID, the oldest accounts first, not by when they were followed.
  • If GitHub's API refuses, the list is read from the account's following tab, in the tab's own order, with each account's name, bio, company and location but no node ID or staff flag.
  • A cursor goes on in the order its first page came in.
  • An organization follows nobody on GitHub, so its list is empty.
  • For an account's bio, counts and links, send its username to the GitHub Profile API.

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
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 Following API.

More in the API reference.

How much does the GitHub Following API cost?
A page of up to 100 accounts 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