# GitHub — Contributions

Get GitHub Contributions 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, calendar year, reported contribution total, contribution date, and daily contribution count to render a contribution chart, compare yearly patterns, and enrich a developer profile.

Documentation: https://openany.si/github/github-scrapecreators-contributions/2d5d68d5-ebbe-4d11-aa9e-16f129786072/
API ID: 2d5d68d5-ebbe-4d11-aa9e-16f129786072
Provider: scrapecreators
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/contributions
Page update time: 2026-12-03T02:38:07.845Z
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:06.610Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## GitHub Contributions API

Provide a GitHub handle or profile URL and optionally a year in the query string. contributions contains the returned username, year, total\_contributions and daily records with contribution\_count, date and intensity.

## What You Can Build

- **Render a contribution chart**: Plot daily counts for the returned year.
- **Compare yearly patterns**: Request separate years and retain each result's year.
- **Enrich a developer profile**: Show calendar activity alongside other source context.

## Returned Data

| Field | Meaning |
| --- | --- |
| `contributions.username` | Returned GitHub username |
| `contributions.year` | Calendar year |
| `contributions.total_contributions` | Reported contribution total |
| `contributions.days[].date` | Contribution date |
| `contributions.days[].contribution_count` | Daily contribution count |
| `contributions.days[].intensity` | Calendar intensity value |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GitHub — Contributions 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 profile URL"
        },
        "year": {
          "type": "number",
          "description": "Contribution graph year. Defaults to the current year."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "contributions": {
      "type": "object",
      "properties": {
        "days": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "color": {
                "type": "null"
              },
              "contribution_count": {
                "type": "integer"
              },
              "date": {
                "type": "string"
              },
              "intensity": {
                "type": "integer"
              }
            }
          }
        },
        "total_contributions": {
          "type": "integer"
        },
        "username": {
          "type": "string"
        },
        "year": {
          "type": "integer"
        }
      }
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/contributions?handle=torvalds&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
{
  "contributions": {
    "days": [
      {
        "color": null,
        "contribution_count": 4,
        "date": "2026-01-01",
        "intensity": 1
      }
    ],
    "total_contributions": 1214,
    "username": "torvalds",
    "year": 2026
  },
  "credits_charged": 1,
  "credits_remaining": 49997684481,
  "success": true
}
```

## 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
### Can I select a calendar year?
Yes. Supply year; omitting it uses the current year according to the input description.

### Are these counts a list of commits?
No. They are contribution-calendar values. The response does not provide a complete commit list.

### Does intensity measure developer productivity?
No. It is a calendar-display value, not a measurement of code quality or productivity.

### Can I filter the calendar to one repository?
No repository-filter input is declared for this operation.

### Should I replace missing days with known zero activity?
Keep unavailable data distinct from a returned day whose count is zero.

### Can I request a custom date range?
This operation selects an account using handle or url, with an optional year; arbitrary start and end dates are not declared.

## Available implementations
- scrapecreators: https://openany.si/github/github-scrapecreators-contributions/2d5d68d5-ebbe-4d11-aa9e-16f129786072/

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