GitHub public activity API
The profile's contribution activity timeline (commits, repositories created, pull requests, issues, reviews), one month a page, newest month first, paging backward through the year.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
You send one of handle or url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/github/user/activity" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'handle=gaearon' \
--data-urlencode 'year=2025'import os
import requests
params = {
"handle": "gaearon",
"year": 2025,
}
res = requests.get(
"https://api.socialscrape.io/v1/github/user/activity",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/github/user/activity");
url.search = new URLSearchParams({
handle: "gaearon",
year: "2025",
}).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);
}{
"nodes": [
{
"name": "SocialScrape GitHub public activity",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/github/user/activity",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "gaearon"
},
{
"name": "year",
"value": "2025"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | one of | GitHub username. Also accepted as username, login. |
url | url | one of | Profile URL (github.com/<user>). |
year | integer | Calendar year (2008 onward); default the current year. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_918c37a7eb5b316257905e23",
"data": {
"object": "list",
"items": [
{
"object": "activity",
"platform": "github",
"id": "gaearon:2025-06:1",
"type": "commits",
"actor": {
"id": null,
"handle": "gaearon",
"name": null,
"url": "https://github.com/gaearon",
"avatar_url": null,
"verified": null
},
"repo": null,
"created_at": null,
"extra": {
"details": [
{
"date_text": null,
"language": null,
"links": [
{
"text": "gaearon/overreacted.io",
"url": "https://github.com/gaearon/overreacted.io"
},
{
"text": "21 commits",
"url": "https://github.com/gaearon/overreacted.io/commits?author=gaearon&since=2025-06-01&until=2025-07-01"
}
],
"repository": {
"text": "gaearon/overreacted.io",
"url": "https://github.com/gaearon/overreacted.io"
},
"text": "gaearon/overreacted.io 21 commits"
},
{
"date_text": null,
"language": null,
"links": [
{
"text": "vercel/next.js",
"url": "https://github.com/vercel/next.js"
},
{
"text": "1 commit",
"url": "https://github.com/vercel/next.js/commits?author=gaearon&since=2025-06-01&until=2025-07-01"
}
],
"repository": {
"text": "vercel/next.js",
"url": "https://github.com/vercel/next.js"
},
"text": "vercel/next.js 1 commit"
},
{
"date_text": null,
"language": null,
"links": [
{
"text": "bluesky-social/social-app",
"url": "https://github.com/bluesky-social/social-app"
},
{
"text": "1 commit",
"url": "https://github.com/bluesky-social/social-app/commits?author=gaearon&since=2025-06-01&until=2025-07-01"
}
],
"repository": {
"text": "bluesky-social/social-app",
"url": "https://github.com/bluesky-social/social-app"
},
"text": "bluesky-social/social-app 1 commit"
}
],
"month": "June 2025",
"summary": "Created 23 commits in 3 repositories"
}
},
{
"object": "activity",
"platform": "github",
"id": "gaearon:2025-06:2",
"type": "repositories",
"actor": {
"id": null,
"handle": "gaearon",
"name": null,
"url": "https://github.com/gaearon",
"avatar_url": null,
"verified": null
},
"repo": "gaearon/analysis-solutions",
"created_at": null,
"extra": {
"details": [
{
"date_text": "Jun 28",
"language": "Lean",
"links": [
{
"text": "gaearon/analysis-solutions",
"url": "https://github.com/gaearon/analysis-solutions"
}
],
"repository": {
"text": "gaearon/analysis-solutions",
"url": "https://github.com/gaearon/analysis-solutions"
},
"text": "gaearon/analysis-solutions"
}
],
"month": "June 2025",
"summary": "Created 1 repository"
}
}
],
"cursor": "eyJwIjo4fQ",
"has_more": true,
"parent": null
},
"cursor": "eyJwIjo4fQ",
"has_more": true
}Fields
A page of results. Each entry in items is a Activity. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "activity" | ||
platform | Platform | yes | |
id | string | yes | |
type | string | yes | platform's event type, snake_case: "push", "pull_request", "star" |
actor | Author or null | ||
repo | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.github.user_activity(...) and the TypeScript client client.github.userActivity(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.