GITHUB API

Activity

Retrieve activity from GitHub with a single API request.

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

Request parameters

Up to 1 credit

GitHub handle

GitHub user URL, e.g. https://github.com/kentcdodds.

When provided, returns profile contribution activity for that year. Defaults to the current year.

Cursor from the previous response. Pages backward by month through the selected year.

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/activity?handle=kentcdodds' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "username": "kentcdodds",
  "year": 2026,
  "month": "May 2026",
  "activity": [
    {
      "summary": "Created 186 commits in 13 repositories",
      "details": [
        {
          "text": "kentcdodds/kody 144 commits",
          "repository": {
            "text": "kentcdodds/kody",
            "url": "https://github.com/kentcdodds/kody"
          },
          "links": [
            {
              "text": "kentcdodds/kody",
              "url": "https://github.com/kentcdodds/kody"
            }
          ],
          "language": null,
          "date_text": null,
          "date_description": null
        }
      ]
    }
  ],
  "no_activity": false,
  "message": null,
  "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"
    },
    "username": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    },
    "month": {
      "type": "string"
    },
    "activity": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "repository": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                },
                "links": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    }
                  }
                },
                "language": {
                  "type": [
                    "string",
                    "object",
                    "array",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "date_text": {
                  "type": [
                    "string",
                    "object",
                    "array",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "date_description": {
                  "type": [
                    "string",
                    "object",
                    "array",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "no_activity": {
      "type": "boolean"
    },
    "message": {
      "type": [
        "string",
        "object",
        "array",
        "number",
        "boolean",
        "null"
      ]
    },
    "cursor": {
      "type": "integer"
    }
  }
}