Repositories on GitHub Trending for a language and window, with rank, stars, stars gained and description.
1 credit/ call
Never more than 33 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/github.trending_repositories" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"language":"python","since":"daily"}'{
"output": {
"found": true,
"data": {
"since": "daily",
"nextCursor": null,
"repos": [
{
"fullName": "HKUDS/DeepTutor",
"rank": 1,
"stars": 51810,
"forks": 6349, …
}
]
}
},
"credits": 1
}Input and output
2 fields
python.daily.10 fields
Good to know
Trending changes roughly hourly. Cache 30-60 minutes.
Unknown languages return found: false. A miss is an answer, not an error.
More from GitHub. Same key, same credits.
The same key and credits work for every API.