GITHUB API

Following

Retrieve following from GitHub with a single API request.

GET/api/data/v1/github/user/following
1credit base cost

Request parameters

Up to 1 credit

GitHub handle

GitHub profile URL

Cursor from the previous response. Defaults to 1.

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/github/user/following?handle=kentcdodds' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "following": [
    {
      "id": 4303,
      "node_id": "MDQ6VXNlcjQzMDM=",
      "login": "jdalton",
      "avatar_url": "https://avatars.githubusercontent.com/u/4303?v=4",
      "url": "https://github.com/jdalton",
      "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"
    },
    "following": {
      "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"
    }
  }
}