GitHub repository API
GitHub repository, as JSON, with id, full_name, name, url, owner and more.
- 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 url or repo.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/github/repository" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'repo=torvalds/linux'import os
import requests
params = {
"repo": "torvalds/linux",
}
res = requests.get(
"https://api.socialscrape.io/v1/github/repository",
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/repository");
url.search = new URLSearchParams({
repo: "torvalds/linux",
}).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 repository",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/github/repository",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "repo",
"value": "torvalds/linux"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Repository URL (github.com/<owner>/<repo>). |
repo | string | one of | "owner/name". Also accepted as full_name. |
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_d892f16395227006cdbe6251",
"data": {
"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": 8482,
"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
}
},
"cursor": null,
"has_more": null
}Fields
One Repo in data.
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.
Is there an SDK call for it?
The preview Python client has client.github.repository(...) and the TypeScript client client.github.repository(). 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.