- 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'1import os2import requests34params = {5 "language": "python",6 "since": "weekly",7}8res = requests.get(9 "https://api.socialscrape.dev/v1/github/trending/repositories",10 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},11 params=params,12 timeout=60,13)14body = res.json()1516if body["ok"]:17 print(body["data"])18else:19 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/github/trending/repositories");2url.search = new URLSearchParams({3 language: "python",4 since: "weekly",5}).toString();6const res = await fetch(url, {7 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },8});9const body = await res.json();1011if (body.ok) {12 console.log(body.data);13} else {14 console.error(body.error.code, body.error.message);15}1{2 "nodes": [3 {4 "name": "SocialScrape GitHub trending repositories",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/github/trending/repositories",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "language",19 "value": "python"20 },21 {22 "name": "since",23 "value": "weekly"24 }25 ]26 },27 "sendHeaders": true,28 "headerParameters": {29 "parameters": [30 {31 "name": "x-api-key",32 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"33 }34 ]35 }36 }37 }38 ],39 "connections": {}40}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
language | string | Coding language, e.g. javascript, python, go. | |
since | string | Trending range. | |
spoken_language_code | string | Spoken language filter, e.g. en. | |
cursor | string | Opaque 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.
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.
| 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), 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.