A GitHub user's or organization's public repositories with stars, forks, language and dates, sortable and paged.
1 credit/ call
Never more than 35 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/github.user_repositories" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"octocat","limit":30}'{
"output": {
"found": true,
"data": {
"hasMore": true,
"nextCursor": "2",
"repos": [
{
"name": "Hello-World",
"stars": 3876,
"forks": 7297,
"private": false, …
}
]
}
},
"credits": 1
}Input and output
6 fields
octocat.30.24 fields
Good to know
REST list responses carry no watcher count.
One page per call. Send nextCursor back as cursor to read the next page.
Unknown handle? It comes back as not found, not as an error.
More from GitHub. Same key, same credits.
The same key and credits work for every API.