Public profile of a GitHub user or organization: name, bio, company, location, followers and repository counts.
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.user" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"octocat"}'{
"output": {
"found": true,
"data": {
"login": "octocat",
"name": "The Octocat",
"followers": 24844,
"publicRepos": 8, …
}
},
"credits": 1
}Input and output
1 field
octocat.16 fields
Good to know
Email addresses are never returned (GitHub AUP forbids selling personal information).
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.