List recent public activity for a GitHub profile, one month per request.
Endpoint
/v1/github/profiles/{handle}/activity
Path
GitHub username whose public activity timeline should be listed.
Query
Calendar year to read activity for. Defaults to the current year when omitted.
Pagination cursor from a previous response (`data.page.nextCursor`). Pages backward one month at a time through the selected year.
const response = await fetch( "https://api.socialfetch.dev/v1/github/profiles/torvalds/activity", { headers: { "x-api-key": "YOUR_API_KEY", } } ); const data = await response.json(); console.log(data);