1. Platforms
  2. GitHub Scraper API
  3. GitHub public activity API

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.

GET api.socialscrape.dev/v1/github/user/activity

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

You send one of handle or url.

Part of the GitHub Scraper API: 10 GitHub endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/github/user/activity" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'handle=gaearon' \4  --data-urlencode 'year=2025'

Parameters

NameTypeRequiredDescription
handlestringone ofGitHub username. Also accepted as username, login.
urlurlone ofProfile URL (github.com/<user>).
yearintegerCalendar year (2008 onward); default the current year.
cursorstringOpaque 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 examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_918c37a7eb5b316257905e23",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "activity",13        "platform": "github",14        "id": "gaearon:2025-06:1",15        "type": "commits",16        "actor": {17          "id": null,18          "handle": "gaearon",19          "name": null,20          "url": "https://github.com/gaearon",21          "avatar_url": null,22          "verified": null23        },24        "repo": null,25        "created_at": null,26        "extra": {27          "details": [28            {29              "date_text": null,30              "language": null,31              "links": [32                {33                  "text": "gaearon/overreacted.io",34                  "url": "https://github.com/gaearon/overreacted.io"35                },36                {37                  "text": "21 commits",38                  "url": "https://github.com/gaearon/overreacted.io/commits?author=gaearon&since=2025-06-01&until=2025-07-01"39                }40              ],41              "repository": {42                "text": "gaearon/overreacted.io",43                "url": "https://github.com/gaearon/overreacted.io"44              },45              "text": "gaearon/overreacted.io 21 commits"46            },47            {48              "date_text": null,49              "language": null,50              "links": [51                {52                  "text": "vercel/next.js",53                  "url": "https://github.com/vercel/next.js"54                },55                {56                  "text": "1 commit",57                  "url": "https://github.com/vercel/next.js/commits?author=gaearon&since=2025-06-01&until=2025-07-01"58                }59              ],60              "repository": {61                "text": "vercel/next.js",62                "url": "https://github.com/vercel/next.js"63              },64              "text": "vercel/next.js 1 commit"65            },66            {67              "date_text": null,68              "language": null,69              "links": [70                {71                  "text": "bluesky-social/social-app",72                  "url": "https://github.com/bluesky-social/social-app"73                },74                {75                  "text": "1 commit",76                  "url": "https://github.com/bluesky-social/social-app/commits?author=gaearon&since=2025-06-01&until=2025-07-01"77                }78              ],79              "repository": {80                "text": "bluesky-social/social-app",81                "url": "https://github.com/bluesky-social/social-app"82              },83              "text": "bluesky-social/social-app 1 commit"84            }85          ],86          "month": "June 2025",87          "summary": "Created 23 commits in 3 repositories"88        }89      },90      {91        "object": "activity",92        "platform": "github",93        "id": "gaearon:2025-06:2",94        "type": "repositories",95        "actor": {96          "id": null,97          "handle": "gaearon",98          "name": null,99          "url": "https://github.com/gaearon",100          "avatar_url": null,101          "verified": null102        },103        "repo": "gaearon/analysis-solutions",104        "created_at": null,105        "extra": {106          "details": [107            {108              "date_text": "Jun 28",109              "language": "Lean",110              "links": [111                {112                  "text": "gaearon/analysis-solutions",113                  "url": "https://github.com/gaearon/analysis-solutions"114                }115              ],116              "repository": {117                "text": "gaearon/analysis-solutions",118                "url": "https://github.com/gaearon/analysis-solutions"119              },120              "text": "gaearon/analysis-solutions"121            }122          ],123          "month": "June 2025",124          "summary": "Created 1 repository"125        }126      }127    ],128    "cursor": "eyJwIjo4fQ",129    "has_more": true,130    "parent": null131  },132  "cursor": "eyJwIjo4fQ",133  "has_more": true134}

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.

FieldTypeAlwaysNotes
object"activity"
platformPlatformyes
idstringyes
typestringyesplatform's event type, snake_case: "push", "pull_request", "star"
actorAuthor or null
repostring or null
created_atstring (ISO 8601 date-time) or null
extraobject 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 Python client has client.github.user_activity(...) and the TypeScript client client.github.userActivity(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.