GitHub user repositories API

A user's public repositories with description, language, stars, forks, topics, license and dates, 30 a page.

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

NameTypeRequiredDescription
handlestringone ofGitHub username. Also accepted as username, login.
urlurlone ofProfile URL (github.com/<user>).
typestringRepository type.
sortstringOrder of results. Changing it restarts the cursor chain. Also accepted as sort_by, sortBy, order.
directionstringSort direction.
cursorstringOpaque 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.

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

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.

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.

Build on social data early.

Developers and agent builders get the first keys.

Get early access