GitHub user repositories API
A user's public repositories with description, language, stars, forks, topics, license and dates, 30 a page.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
type and direction pass straight through to GitHub.
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/repositories" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'handle=torvalds'import os
import requests
params = {
"handle": "torvalds",
}
res = requests.get(
"https://api.socialscrape.io/v1/github/user/repositories",
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/repositories");
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);
}{
"nodes": [
{
"name": "SocialScrape GitHub user repositories",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/github/user/repositories",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "torvalds"
}
]
},
"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>). |
type | string | Repository type. | |
sort | string | Order of results. Changing it restarts the cursor chain. Also accepted as sort_by, sortBy, order. | |
direction | string | Sort direction. | |
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_07e703e66955207f3c0ed9b5",
"data": {
"object": "list",
"items": [
{
"object": "repo",
"platform": "github",
"id": "2325298",
"full_name": "torvalds/linux",
"name": "linux",
"url": "https://github.com/torvalds/linux",
"owner": {
"id": "1024025",
"handle": "torvalds",
"name": null,
"url": "https://github.com/torvalds",
"avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
"verified": null
},
"description": "Linux kernel source tree",
"language": "C",
"topics": [],
"license": "Other",
"stars": 253786,
"forks": 67471,
"watchers": null,
"open_issues": 3,
"is_fork": false,
"is_archived": false,
"default_branch": "master",
"created_at": "2011-09-04T22:48:12Z",
"updated_at": "2026-10-30T01:16:26Z",
"pushed_at": "2026-10-30T00:07:06Z",
"extra": {
"allow_forking": true,
"disabled": false,
"has_discussions": false,
"has_issues": false,
"has_pages": false,
"has_wiki": false
}
},
{
"object": "repo",
"platform": "github",
"id": "1058343058",
"full_name": "torvalds/GuitarPedal",
"name": "GuitarPedal",
"url": "https://github.com/torvalds/GuitarPedal",
"owner": {
"id": "1024025",
"handle": "torvalds",
"name": null,
"url": "https://github.com/torvalds",
"avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
"verified": null
},
"description": "Linus learns analog circuits",
"language": "C",
"topics": [],
"license": "GPL-2.0",
"stars": 2472,
"forks": 128,
"watchers": null,
"open_issues": 16,
"is_fork": false,
"is_archived": false,
"default_branch": "main",
"created_at": "2025-09-17T01:01:29Z",
"updated_at": "2026-10-29T22:49:02Z",
"pushed_at": "2026-10-15T18:30:33Z",
"extra": {
"allow_forking": true,
"disabled": false,
"has_discussions": false,
"has_issues": true,
"has_pages": true,
"has_wiki": true
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Repo. 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 | "repo" | ||
platform | Platform | yes | |
id | string or null | ||
full_name | string | yes | "owner/name" |
name | string or null | ||
url | string or null | ||
owner | Author or null | ||
description | string or null | ||
language | string or null | ||
topics | string[] or null | ||
license | string or null | ||
stars | integer or null | ||
forks | integer or null | ||
watchers | integer or null |
Show the other 8 fields
| Field | Type | Always | Notes |
|---|---|---|---|
open_issues | integer or null | ||
is_fork | boolean or null | ||
is_archived | boolean or null | ||
default_branch | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
updated_at | string (ISO 8601 date-time) or null | ||
pushed_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_repositories(...) and the TypeScript client client.github.userRepositories(). 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.