GitHub Scraper API
GitHub users, repositories, contribution history and Trending as JSON, for developers who would rather not count requests against an hourly allowance. A failed request is never charged.
100 free credits. No card needed.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_61963aec2e8934ef860d4a93",
"data": {
"object": "profile",
"platform": "github",
"id": "1024025",
"handle": "torvalds",
"name": "Linus Torvalds",
"headline": null,
"url": "https://github.com/torvalds",
"kind": "person",
"bio": null,
"avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
"banner_url": null,
"verified": null,
"is_private": null,
"status": null
...
},
"cursor": null,
"has_more": null
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_c4fc774b21d57135067b1418",
"data": {
"object": "list",
"items": [
{
"object": "repo",
"platform": "github",
"id": null,
"full_name": "AgriciDaniel/claude-seo",
"name": "claude-seo",
"url": "https://github.com/AgriciDaniel/claude-seo",
"owner": { ... },
"description": "Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering tech...",
"language": "Python",
"topics": null,
"license": null,
"stars": 24017,
"forks": 3224,
"watchers": null
...
},
{
"object": "repo",
"platform": "github",
"id": null,
"full_name": "TauricResearch/TradingAgents",
"name": "TradingAgents",
"url": "https://github.com/TauricResearch/TradingAgents",
"owner": { ... },
"description": "TradingAgents: Multi-Agents LLM Financial Trading Framework",
"language": "Python",
"topics": null,
"license": null,
"stars": 118339,
"forks": 22634,
"watchers": null
...
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_07e703e66955207f3c0ed9b5",
"data": {
"object": "list",
"items": [
{
"object": "repo",
"platform": "github",
"id": "2325298",
"full_name": "torvalds/linux",
"name": "linux",
"url": "https://github.com/torvalds/linux",
"owner": { ... },
"description": "Linux kernel source tree",
"language": "C",
"topics": [ ... ],
"license": "Other",
"stars": 253786,
"forks": 67471,
"watchers": null
...
},
{
"object": "repo",
"platform": "github",
"id": "1058343058",
"full_name": "torvalds/GuitarPedal",
"name": "GuitarPedal",
"url": "https://github.com/torvalds/GuitarPedal",
"owner": { ... },
"description": "Linus learns analog circuits",
"language": "C",
"topics": [ ... ],
"license": "GPL-2.0",
"stars": 2472,
"forks": 128,
"watchers": null
...
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}10 endpoints. One key.
Profiles
3 endpointsSearch and trends
2 endpointsCode
5 endpoints- GitHub user repositoriesGET /v1/github/user/repositoriesA user's public repositories with description, language, stars, forks, topics, license and dates.
- GitHub repositoryGET /v1/github/repositoryReturns id, full_name, name, url, owner.
- GitHub contribution calendarGET /v1/github/user/contributionsThe public contribution graph for one year: the total and a count per day.
- GitHub public activityGET /v1/github/user/activityThe profile's contribution activity timeline, one month a page, newest month first.
- GitHub pull requests by a userGET /v1/github/user/pull-requestsPublic pull requests the user authored, newest first, from GitHub's public search index.
What you get from GitHub
What you can build with GitHub data
Your first request.
Open an account
100 credits arrive with it, and there is no card form.
Send a handle
Pass a username such as torvalds to the user endpoint.
Read the counts
The follower total sits in stats.followers; the location and the join date are on the profile itself.
curl -G "https://api.socialscrape.dev/v1/github/user" \ -H "x-api-key: $SOCIALSCRAPE_API_KEY" \ --data-urlencode "handle=torvalds"
import os
import requests
params = {
"handle": "torvalds",
}
res = requests.get(
"https://api.socialscrape.dev/v1/github/user",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])
const url = new URL("https://api.socialscrape.dev/v1/github/user"); url.search = new URLSearchParams({ "handle": "torvalds" }).toString(); const res = await fetch(url, { headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! }, }); const body = await res.json(); if (body.ok) { console.log(body.data); } else { console.error(body.error.code, body.error.message); }
The response. Sample values, in the shape every call returns.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_61963aec2e8934ef860d4a93",
"data": {
"object": "profile",
"platform": "github",
"id": "1024025",
"handle": "torvalds",
"name": "Linus Torvalds",
"headline": null,
"url": "https://github.com/torvalds",
"kind": "person",
"bio": null,
"avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
"banner_url": null,
"verified": null,
"is_private": null,
"status": null
...
},
"cursor": null,
"has_more": null
}
Pay only for data you get.
Failed requests and cached repeats are free.
1,000 credits
$13 one time
Get an API key- $13.00 per 1,000 credits
- Credits never expire
- No subscription
25,000 credits
$55 one time
Get an API key- $2.20 per 1,000 credits
- Credits never expire
- No subscription
230,000 credits
$349 one time
Get an API key- $1.52 per 1,000 credits
- Credits never expire
- No subscription
Questions, answered.
About the GitHub API
How much does it cost to look at GitHub developers?
A profile, a first page of repositories and a contribution calendar make three requests, so sizing up 200 developers takes 600 credits, about $1.32 on the Growth pack. Every endpoint is 1 credit a call, and big packs or plans push the price down to $1.39 per 1,000. Sign-up includes 100 credits. See pricing.
Why not call GitHub's own REST API?
You can, and for your own repositories it is a good fit. Without a token it allows 60 requests an hour, and with one you manage keys, scopes and a budget per token. GitHub also has no REST endpoint at all for the Trending page. Here the limit is a credit balance, and the Trending lists are two endpoints away.
Do I need a GitHub token?
Not at all. Your SocialScrape key is the only credential in a request, so there is no personal access token to create, scope or rotate.
What do the trending endpoints return?
Repositories come ranked with their description, language, stars, forks, the stars gained in the range you chose and the people who built them. Developers come ranked with a name, an avatar and the popular repository GitHub shows beside them, which is kept in extra.
How much of a developer's activity can I see?
The contribution endpoint gives the total and a count for every day of one year. The activity endpoint lists commits, new repositories, pull requests, issues and reviews, one month a page, newest month first, and you page back through the year.
Is there a ceiling on pull requests?
Yes. Pull requests a user wrote come newest first from GitHub's search index, and that index serves only the first 1,000 results of any search. A prolific author's oldest pull requests will not appear.
Can I filter a user's repositories?
Yes. Repositories arrive 30 a page, and the type and direction parameters go straight through to GitHub, so you can sort and narrow the way its own API does. Get an API key and list a few.
Start pulling social data.
100 free credits. No card needed.