"Best GitHub Profile Data API in 2026: Fields, Limits, Cost"

Published · 9 min read

If GitHub is the only network you read and your volume fits its rate limits, GitHub's own REST or GraphQL API is the best GitHub profile API. It is free to call, authoritative, and returns the richest fields. A third-party read API earns its place when you need GitHub profiles in the same schema and under the same key as TikTok, Instagram, YouTube and 13 other networks, or when you want an AI agent to read profiles over MCP without managing a GitHub token. This guide covers the options, what each returns, and where each stops, with a real read of the @github account taken on 2026-12-04.

What people mean by "GitHub profile API"

Search results for this query answer five different questions. Here is how to tell which one you have:

Option 1: GitHub's official REST API

The canonical call is GET https://api.github.com/users/{username}, documented in the REST users reference. It returns login, name, avatar_url, bio, company, location, blog, email (only if the user published one), twitter_username, type (User or Organization), followers, following, public_repos, public_gists and created_at. User and organization accounts both work.

Rate limits are the main constraint. Unauthenticated calls get a small hourly allowance per IP. A personal access token or GitHub App raises it considerably, and secondary limits apply to bursts. Every response carries x-ratelimit-* headers, GET /rate_limit reports your remaining budget, and exceeding a limit returns 403 or 429. GitHub explains the details in Rate limits for the REST API.

A correction to several rankings. At least one aggregator lists a monthly GitHub price as the "cost" of the GitHub profile API. That figure is a GitHub plan seat price. The REST API itself is free to call within its rate limits, and no plan is required to read public profiles.

Option 2: GitHub's GraphQL API (the one rankings skip)

Most comparison pages ignore it, but GitHub's GraphQL API is often the better official choice for profiles. One query can return the profile, pinned items and the contribution calendar. The REST user endpoint returns none of those. GraphQL runs on a separate points-based budget rather than a simple request count, so a deep query costs more than a shallow one. If you need pinned repositories or contribution history, start here before you pay anyone.

Option 3: Apify actors

The Apify Store lists many GitHub actors: profile scrapers, follower and stargazer extractors, and lead-list builders that take a username, profile URL or sometimes an email as input. Pricing is usually pay-per-result, and some actors expose MCP access. They work well for one-off bulk jobs. The trade-off is that each actor has its own output shape, so mixing actors or adding other networks means writing a normalizer for each. Our Apify alternative guide compares that model with a fixed endpoint.

Option 4: A unified read with SocialLens

SocialLens treats GitHub as one of 17 networks behind the same /v1/profile endpoint and JSON schema used for TikTok, Instagram, YouTube, X and the rest. It is read-only. It reads public profile data, never posts or acts as an account, and never touches private repositories or private data.

curl "https://api.sociallens.dev/v1/profile?platform=github&username=github" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Real response, read 2026-12-04:

{
  "exists": true,
  "username": "github",
  "platform": "github",
  "nickname": "GitHub",
  "verified": false,
  "private": false,
  "followers": 97997,
  "is_exact": true,
  "following": 0,
  "likes": null,
  "videos": 573,
  "bio": "How people build software.",
  "avatar": "https://avatars.githubusercontent.com/u/9919?v=4",
  "id": "9919",
  "created_at": "2008-05-11T04:37:31Z",
  "external_link": "https://github.com/github",
  "category": null,
  "fetched_at": "2026-12-04T03:53:37Z",
  "cached": false,
  "credits": { "source": "paid", "charged": 1, "balance": 9974 }
}

Here is how to read that response:

If you only need the number across networks, the follower count API guide shows the same call for every platform.

Without a key, for AI assistants

Verified AI crawlers can use the no-key lookup, which returns the same shape and is rate limited per IP:

https://sociallens.dev/lookup?username=github&platform=github

Over MCP, for agents

SOCIALLENS_API_KEY=sk_live_YOUR_KEY npx -y sociallens-mcp

The server is listed in the official MCP registry as dev.sociallens/sociallens-mcp. An agent can then ask "how many followers does the torvalds GitHub account have?" and get the structured read with no GitHub token to rotate. For the architecture choice, see MCP vs API vs function calling for agents and the best social media MCP server roundup.

Field-by-field: official REST vs the unified read

Most rankings never state what they compared. This table lists the fields we compared, using GitHub's documented field names and the real SocialLens response above.

Field GitHub REST /users/{u} SocialLens /v1/profile
Login login username
Display name name nickname
Avatar avatar_url avatar
Bio bio bio
Followers followers followers + is_exact
Following following following
Content count public_repos videos (shared name)
Created created_at created_at
Profile URL html_url external_link
Company, location, blog, email, X handle, account type Yes Not in the unified schema
Pinned repos, contribution calendar No (GraphQL has them) No
Same shape on 16 other networks No Yes

The official API returns more GitHub-specific fields. The unified read trades those fields for one shape across every network. Choose based on which one your pipeline actually needs.

Follower lists at scale: the math nobody does

A follower count is one request. A follower list is a different job. GitHub paginates followers, so an account's full list takes one request per page. One Apify actor's example output shows "followers": 322271 for torvalds. Paging through a list that size takes thousands of requests. Against an hourly token budget, that can consume a large share of an hour's allowance for a single account, before secondary limits on bursts come into play.

Two further problems are easy to miss:

If what you actually need is growth over time, store the count on a schedule instead of crawling the list. The follower history guide shows that pattern.

User search only gets you halfway

GitHub's user search returns logins and avatars. It does not return follower counts, company, email or bio. Any "search developers by location and language" workflow is therefore two steps: search for logins, then read each profile. Budget your rate limit or credits for the second step, because that is where the real cost sits. Keyword search across networks is covered in the social media search API guide.

What the public profile read does not cover

Here are the places where SocialLens is not the right tool for GitHub:

A note on emails and compliance

Several Apify actors advertise "commit-mined" emails for lead lists. Before building on that, read GitHub's Acceptable Use Policies, which restrict how personal information gathered from GitHub may be used, including for unsolicited outreach. If you contact people in the EU, GDPR applies to email addresses no matter where you found them. A public-profile, read-only approach keeps you on firmer ground. For outreach use cases, the creator email finder guide explains which contact data is fair to use.

Comparison: GitHub profile API options in 2026

Option Pricing model Auth needed Best for Multi-network
GitHub REST API Free within rate limits Token recommended Full GitHub-specific profile fields No
GitHub GraphQL API Free within points budget Token required Pinned items, contributions in one query No
Apify actors Pay-per-result, varies by actor Apify account One-off bulk scrapes, lead lists Per actor, varied shapes
RapidAPI listings Varies by listing RapidAPI key Trying several small providers Varies
SocialLens 1 credit per successful read, credits never expire, 250 free reads One key, no GitHub token GitHub alongside 16 other networks, agents via MCP Yes, one schema

Pricing details are on the pricing page. For the wider landscape, see social media APIs compared.

Which one to pick

FAQ

What is the best GitHub profile API in 2026? For GitHub-only work, GitHub's own REST API (or GraphQL for pinned items and contributions) is the best choice. It is free within its limits and authoritative. For GitHub profiles in the same schema as 16 other networks, or for agent access over MCP, SocialLens fits better.

Does the GitHub API cost money? No. Reading public profiles through the REST and GraphQL APIs is free within rate limits. Monthly prices you may see listed are GitHub plan seats, not API charges.

Is the follower count exact? Yes. On GitHub the read returns the exact integer, flagged with "is_exact": true. For example, @github showed 97,997 followers on 2026-12-04.

Can I get a GitHub user's email through an API? Only if the user published one on their profile, and most have not. Mining emails from commits for outreach raises issues under GitHub's Acceptable Use Policies and GDPR, and SocialLens does not do it.

Does SocialLens return GitHub follower lists or repositories? No. It returns the public profile, including follower and following counts. For lists, repositories, issues and READMEs, use GitHub's official API.

What does a failed or missing lookup cost? Nothing. Errors and not-found handles cost zero credits, and a missing handle returns "exists": false.

Last updated: 2026-12-04

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading