1. Platforms
  2. GitHub Scraper API
  3. GitHub trending repositories API

GitHub trending repositories API

GitHub's public Trending page: ranked repositories with description, language, stars, forks, stars gained in the range and the users who built them.

GET api.socialscrape.dev/v1/github/trending/repositories

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 1 day
Failed requests
0 credits

Part of the GitHub Scraper API: 10 GitHub endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/github/trending/repositories" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'language=python' \4  --data-urlencode 'since=weekly'

Parameters

NameTypeRequiredDescription
languagestringCoding language, e.g. javascript, python, go.
sincestringTrending range.
spoken_language_codestringSpoken language filter, e.g. en.
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 examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_c4fc774b21d57135067b1418",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "repo",13        "platform": "github",14        "id": null,15        "full_name": "AgriciDaniel/claude-seo",16        "name": "claude-seo",17        "url": "https://github.com/AgriciDaniel/claude-seo",18        "owner": {19          "id": null,20          "handle": "AgriciDaniel",21          "name": null,22          "url": "https://github.com/AgriciDaniel",23          "avatar_url": null,24          "verified": null25        },26        "description": "Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Brow...",27        "language": "Python",28        "topics": null,29        "license": null,30        "stars": 24017,31        "forks": 3224,32        "watchers": null,33        "open_issues": null,34        "is_fork": null,35        "is_archived": null,36        "default_branch": null,37        "created_at": null,38        "updated_at": null,39        "pushed_at": null,40        "extra": {41          "built_by": [42            {43              "avatar_url": "https://avatars.githubusercontent.com/u/223140489?s=40&v=4",44              "username": "AgriciDaniel"45            },46            {47              "avatar_url": "https://avatars.githubusercontent.com/u/81847?s=40&v=4",48              "username": "claude"49            },50            {51              "avatar_url": "https://avatars.githubusercontent.com/u/129338099?s=40&v=4",52              "username": "Nordalux"53            }54          ],55          "language_color": "#3572A5",56          "language_filter": "python",57          "rank": 1,58          "since": "weekly",59          "stars_in_range": 411060        }61      },62      {63        "object": "repo",64        "platform": "github",65        "id": null,66        "full_name": "TauricResearch/TradingAgents",67        "name": "TradingAgents",68        "url": "https://github.com/TauricResearch/TradingAgents",69        "owner": {70          "id": null,71          "handle": "TauricResearch",72          "name": null,73          "url": "https://github.com/TauricResearch",74          "avatar_url": null,75          "verified": null76        },77        "description": "TradingAgents: Multi-Agents LLM Financial Trading Framework",78        "language": "Python",79        "topics": null,80        "license": null,81        "stars": 118339,82        "forks": 22634,83        "watchers": null,84        "open_issues": null,85        "is_fork": null,86        "is_archived": null,87        "default_branch": null,88        "created_at": null,89        "updated_at": null,90        "pushed_at": null,91        "extra": {92          "built_by": [93            {94              "avatar_url": "https://avatars.githubusercontent.com/u/48253104?s=40&v=4",95              "username": "Yijia-Xiao"96            },97            {98              "avatar_url": "https://avatars.githubusercontent.com/u/68405458?s=40&v=4",99              "username": "EdwardoSunny"100            },101            {102              "avatar_url": "https://avatars.githubusercontent.com/u/91041827?s=40&v=4",103              "username": "CadeYu"104            }105          ],106          "language_color": "#3572A5",107          "language_filter": "python",108          "rank": 2,109          "since": "weekly",110          "stars_in_range": 5557111        }112      }113    ],114    "cursor": null,115    "has_more": false,116    "parent": null117  },118  "cursor": null,119  "has_more": false120}

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), 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 Python client has client.github.trending_repositories(...) and the TypeScript client client.github.trendingRepositories(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.