Metadata of one public GitHub repository: stars, forks, watchers, language, license, topics and timestamps.
1 credit/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/github.repository" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://github.com/octocat/Hello-World"}'{
"output": {
"found": true,
"data": {
"name": "Hello-World",
"stars": 3876,
"forks": 7297,
"private": false, …
}
},
"credits": 1
}Input and output
1 field
https://github.com/octocat/Hello-World.24 fields
Good to know
Private repositories are never returned. And the API never returns email addresses.
Unknown URL? 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.