# GitHub — Activity

Get GitHub User Activity data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by ScrapeCreators, pass parameters such as handle, year, and retrieve structured data including returned GitHub username, activity year, activity month label, no activity, and grouped activity summary to build a profile timeline, review an activity period, and connect summaries to projects.

Documentation: https://openany.si/github/github-scrapecreators-activity/432fa7ef-9cb8-428e-93c3-cebf6e3e68a6/
API ID: 432fa7ef-9cb8-428e-93c3-cebf6e3e68a6
Provider: scrapecreators
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/activity
Page update time: 2026-12-03T02:38:48.697Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:38:08.779Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## GitHub User Activity API

Provide handle or url, an optional year and a returned numeric cursor. Each response covers a month, with activity summaries, detail records and a cursor that pages backward through the selected year.

## What You Can Build

- **Build a profile timeline**: Show grouped monthly activity with its source links.
- **Review an activity period**: Use the year selection and backward month navigation.
- **Connect summaries to projects**: Open linked repositories in a separate inspection workflow.

## Returned Data

| Field | Meaning |
| --- | --- |
| `username` | Returned GitHub username |
| `year` | Activity year |
| `month` | Activity month label |
| `no_activity` | No-activity indicator for the returned period |
| `activity[].summary` | Grouped activity summary |
| `activity[].details[].repository.url` | Associated repository URL |
| `cursor` | Earlier-month continuation cursor |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitHub — Activity request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "handle": {
          "type": "string",
          "description": "GitHub handle"
        },
        "url": {
          "type": "string",
          "description": "GitHub user URL, e.g. https://github.com/kentcdodds."
        },
        "year": {
          "type": "number",
          "description": "When provided, returns profile contribution activity for that year. Defaults to the current year."
        },
        "cursor": {
          "type": "number",
          "description": "Cursor from the previous response. Pages backward by month through the selected year."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "activity": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date_description": {
                  "type": "null"
                },
                "date_text": {
                  "type": "null"
                },
                "language": {
                  "type": "null"
                },
                "links": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    }
                  }
                },
                "repository": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "summary": {
            "type": "string"
          }
        }
      }
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "cursor": {
      "type": "integer"
    },
    "message": {
      "type": "null"
    },
    "month": {
      "type": "string"
    },
    "no_activity": {
      "type": "boolean"
    },
    "success": {
      "type": "boolean"
    },
    "username": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/activity?handle=kentcdodds&year=2026.0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "activity": [
    {
      "details": [
        {
          "date_description": null,
          "date_text": null,
          "language": null,
          "links": [
            {
              "text": "kentcdodds/kody",
              "url": "https://github.com/kentcdodds/kody"
            }
          ],
          "repository": {
            "text": "kentcdodds/kody",
            "url": "https://github.com/kentcdodds/kody"
          },
          "text": "kentcdodds/kody 144 commits"
        }
      ],
      "summary": "Created 186 commits in 13 repositories"
    }
  ],
  "credits_charged": 1,
  "credits_remaining": 49997684632,
  "cursor": 2,
  "message": null,
  "month": "May 2026",
  "no_activity": false,
  "success": true,
  "username": "kentcdodds",
  "year": 2026
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is this a raw GitHub events feed?
No. The documented response contains grouped activity summaries and linked items, not a complete raw event log.

### How does pagination advance?
Pass the returned numeric cursor in the next query. It moves backward by month through the selected year.

### Can I select a year?
Yes. year is optional and defaults to the current year according to the input description.

### Does no_activity mean the account does not exist?
No. It describes the returned activity period; check the response status and account identity separately.

### Can I retrieve patch text from an activity item?
The documented item contains a repository reference and link; patch content requires separate retrieval.

### Can I query an exact start and end date?
This contract exposes year and month-oriented cursor navigation, not arbitrary date bounds.

## Available implementations
- scrapecreators: https://openany.si/github/github-scrapecreators-activity/432fa7ef-9cb8-428e-93c3-cebf6e3e68a6/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
