GitHub repository API

GitHub repository, as JSON, with id, full_name, name, url, owner and more.

GETapi.socialscrape.io/v1/github/repository
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
curl -G "https://api.socialscrape.io/v1/github/repository" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'repo=torvalds/linux'
Python
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"])
TypeScript
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);
}
n8n
{
  "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

NameTypeRequiredDescription
urlurlone ofRepository URL (github.com/<owner>/<repo>).
repostringone 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.

Status 200Sample
{
  "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.

FieldTypeAlwaysNotes
object"repo"
platformPlatformyes
idstring or null
full_namestringyes"owner/name"
namestring or null
urlstring or null
ownerAuthor or null
descriptionstring or null
languagestring or null
topicsstring[] or null
licensestring or null
starsinteger or null
forksinteger or null
watchersinteger or null
Show the other 8 fields
FieldTypeAlwaysNotes
open_issuesinteger or null
is_forkboolean or null
is_archivedboolean or null
default_branchstring or null
created_atstring (ISO 8601 date-time) or null
updated_atstring (ISO 8601 date-time) or null
pushed_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.

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.

Build on social data early.

Developers and agent builders get the first keys.

Get early access