GITHUB API
Followers
Retrieve followers from GitHub with a single API request.
GET
/api/data/v1/github/user/followers1credit base cost
Request parameters
Up to 1 creditGitHub username/handle of the user you want the followers for
GitHub user URL, e.g. https://github.com/torvalds.
Cursor from the previous response. Defaults to 1.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/github/user/followers?handle=torvalds' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"followers": [
{
"id": 206,
"node_id": "MDQ6VXNlcjIwNg==",
"login": "sprsquish",
"avatar_url": "https://avatars.githubusercontent.com/u/206?v=4",
"url": "https://github.com/sprsquish",
"type": "User",
"site_admin": false
}
],
"cursor": 2
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"followers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"node_id": {
"type": "string"
},
"login": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"site_admin": {
"type": "boolean"
}
}
}
},
"cursor": {
"type": "integer"
}
}
}