Trending Repositories
GET/v1/github/trending/repositories1 credit
Returns the repositories currently on GitHub's trending list, with rank, description, language, stars, forks, stars gained in the period and top contributors.
01Query parameters
| Name | Type | Description |
|---|---|---|
| languageoptional | string | Programming language to filter by, e.g. `go` or `typescript`. |
| sinceoptional | string | Trending period.Default: dailyAccepted values:dailyweeklymonthly |
| spoken_language_codeoptional | string | Two-letter code of the spoken language of the repositories, e.g. `en`. |
02Request
curl "https://api.scrapesocial.ai/v1/github/trending/repositories?language=go&since=weekly" \ -H "x-api-key: $SCRAPESOCIAL_KEY"
03Responses
Real answers from the API. Lists are shortened to 2 items.
GET /v1/github/trending/repositories?language=go&since=weekly
{
"success": true,
"credits_remaining": 4980,
"credits_charged": 1,
"since": "weekly",
"language": "go",
"spoken_language_code": null,
"repositories": [
{
"rank": 1,
"owner": "Asymptote-Labs",
"repo": "agent-beacon",
"full_name": "Asymptote-Labs/agent-beacon",
"url": "https://github.com/Asymptote-Labs/agent-beacon",
"description": "The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu",
"language": "Go",
"language_color": "#00ADD8",
"stars_count": 2802,
"forks_count": 255,
"stars_today": 920,
"stars_today_text": "920 stars this week",
"built_by": [
{
"username": "claude",
"avatar_url": "https://avatars.githubusercontent.com/u/81847?s=40&v=4"
},
{
"username": "jqdsouza",
"avatar_url": "https://avatars.githubusercontent.com/u/13512741?s=40&v=4"
}
]
},
{
"rank": 2,
"owner": "slavakurilyak",
"repo": "awesome-ai-agents",
"full_name": "slavakurilyak/awesome-ai-agents",
"url": "https://github.com/slavakurilyak/awesome-ai-agents",
"description": "Awesome list of 300+ agentic AI resources",
"language": "Go",
"language_color": "#00ADD8",
"stars_count": 2696,
"forks_count": 702,
"stars_today": 193,
"stars_today_text": "193 stars this week",
"built_by": [
{
"username": "slavakurilyak",
"avatar_url": "https://avatars.githubusercontent.com/u/6625584?s=40&v=4"
},
{
"username": "claude",
"avatar_url": "https://avatars.githubusercontent.com/u/81847?s=40&v=4"
}
]
}
]
}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
The answer echoes the filters (`since`, `language`, `spoken_language_code`; null when not given) next to `repositories`. The whole list comes in one answer, with no further pages. An empty list is a 200 for 0 credits. A `since` outside the listed values 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.