GitHub user public activity
GET https://api.api.sh/github/v1/user/activity
Every response includes credits_used: the credits this call cost.
Part of the GitHub API: 44 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
usernamerequired | string | Example: torvalds |
page | string | Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/github/v1/user/activity?username=torvalds" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/user/activity",
params={"username": "torvalds"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/github/v1/user/activity");
url.searchParams.set("username", "torvalds");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"handle": "torvalds","page": 1,"next_page": 2,"count": 100,"events": [{"id": "24933228348","type": "PushEvent","created_at": "2026-10-22T18:30:48Z","repo": "torvalds/linux","repo_url": "https://github.com/torvalds/linux","action": null,"ref": "refs/heads/master","ref_type": null,"public": true,"repo_id": 2325298,"actor": {"id": 1024025,"login": "torvalds","display_login": "torvalds","avatar": "https://avatars.githubusercontent.com/u/1024025?"},"org": null,"push_id": 47427004481,"head": "2a08195e4db5aba84600db6518089a1dbe2d04c7","before": "7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614"},{"id": "24899291913","type": "PushEvent","created_at": "2026-10-23T04:27:07Z","repo": "torvalds/linux","repo_url": "https://github.com/torvalds/linux","action": null,"ref": "refs/heads/master","ref_type": null,"public": true,"repo_id": 2325298,"actor": {"id": 1024025,"login": "torvalds","display_login": "torvalds","avatar": "https://avatars.githubusercontent.com/u/1024025?"},"org": null,"push_id": 47475104855,"head": "734bef548a96e8774d6eef5dfa2026c6edc4e80b","before": "864c07de0c7dcbca58b61625dfa2e461ae63b242"},"… 98 more"],"credits_used": 1,"cached": false} The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.