Skip to content

User Repositories

GET/v1/github/user/repositories1 credit

Returns a page of a user's public repositories, each with its description, language, stars, forks, topics, license and dates.

01Query parameters

NameTypeDescription
handleoptionalstringGitHub username, e.g. `torvalds` (a leading `@` is ignored). One of `handle`, `username` or `url` is required.
usernameoptionalstringSame as `handle`, accepted under this name too. One of `handle`, `username` or `url` is required.
urloptionalstringGitHub profile URL, e.g. `https://github.com/torvalds`. One of `handle`, `username` or `url` is required.
typeoptionalstringWhich repositories to list: `owner` (owned by the user), `member` (where the user is a collaborator) or `all`.Accepted values:allownermember
sortoptionalstringSort field. Without it, repositories come most recently updated first.Accepted values:createdupdatedpushedfull_name
directionoptionalstringSort direction.Accepted values:ascdesc
cursoroptionalstringPage number to fetch, starting at 1. Pass the `cursor` value of the previous answer to get the next page.Default: 1

02Request

curl "https://api.scrapesocial.ai/v1/github/user/repositories?handle=torvalds" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/github/user/repositories?handle=torvalds

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "repositories": [
    {
      "id": 2325298,
      "node_id": "MDEwOlJlcG9zaXRvcnkyMzI1Mjk4",
      "name": "linux",
      "full_name": "torvalds/linux",
      "owner": {
        "id": 1024025,
        "login": "torvalds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
        "url": "https://github.com/torvalds",
        "type": "User"
      },
      "private": false,
      "url": "https://github.com/torvalds/linux",
      "description": "Linux kernel source tree",
      "fork": false,
      "homepage": "",
      "language": "C",
      "forks_count": 67502,
      "stars_count": 253443,
      "watchers_count": 253443,
      "size": 6447116,
      "default_branch": "master",
      "open_issues_count": 3,
      "topics": [],
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION"
      },
      "archived": false,
      "disabled": false,
      "visibility": "public",
      "pushed_at": "2026-10-25T06:15:09Z",
      "created_at": "2011-09-04T22:48:12Z",
      "updated_at": "2026-10-25T17:06:17Z"
    },
    {
      "id": 113099837,
      "node_id": "MDEwOlJlcG9zaXRvcnkxMTMwOTk4Mzc=",
      "name": "pesconvert",
      "full_name": "torvalds/pesconvert",
      "owner": {
        "id": 1024025,
        "login": "torvalds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
        "url": "https://github.com/torvalds",
        "type": "User"
      },
      "private": false,
      "url": "https://github.com/torvalds/pesconvert",
      "description": "Brother PES file converter",
      "fork": false,
      "homepage": null,
      "language": "C",
      "forks_count": 76,
      "stars_count": 591,
      "watchers_count": 591,
      "size": 17,
      "default_branch": "master",
      "open_issues_count": 7,
      "topics": [],
      "license": null,
      "archived": false,
      "disabled": false,
      "visibility": "public",
      "pushed_at": "2022-12-22T10:46:37Z",
      "created_at": "2017-12-04T21:58:56Z",
      "updated_at": "2026-10-25T16:05:40Z"
    }
  ],
  "cursor": null,
  "has_more": false
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

30 repositories per page. The answer's `cursor` is the next page number and `has_more` says whether one exists; on the last page `cursor` is null. Stars are in `stars_count`. A page with no repositories is a 200 with an empty `repositories` list and costs 0 credits. An unknown user is a free 404; a value that is not a GitHub username or profile URL is a free 400.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.