OpenAny
Get API keyAPI Key
APIDataDeveloper

github logo
GitHub Contributions API

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.

Selected price
$0.00188 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

GitHub Contributions API

Prepare your request, then continue with your agent.

Selected price

$0.00188 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
GitHub Contributions API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Query: provide handle or url. Optional year, defaulting to the current year.
Selected implementation scrapecreators · GitHub — Contributions
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/contributions \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode handle=torvalds \
  --data-urlencode year=2026

Request and Response Examples

The request is a calling template, while reference output illustrates the response structure and can refer to different records. Check returned identities against your query.

Published GitHub Contributions API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
GitHub handle
GitHub profile URL
Contribution graph year. Defaults to the current year.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
GitHub — Contributions · GET · View API reference$0.00188 / call1
100.00%successP503.25s
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · scrapecreatorsUSD / call
Unit price
$0.00188

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.

calls

Total $0.188

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/github/user/contributions
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
handleURL query parametersquerystringNo

GitHub handle

urlURL query parametersquerystringNo

GitHub profile URL

yearURL query parametersquerynumberNo

Contribution graph year. Defaults to the current year.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • contributionsobject
    • daysobject[]
      • colornull
      • contribution_countinteger
      • datestring
      • intensityinteger
    • total_contributionsinteger
    • usernamestring
    • yearinteger
  • credits_chargedinteger
  • credits_remaininginteger
  • successboolean

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 3

    Review these request fields before running. Keep the published provider and request method unchanged.

    handle
    GitHub handle
    url
    GitHub profile URL
    year
    Contribution graph year. Defaults to the current year.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
    }

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.

Use GitHub Contributions API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.