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
GitHub Contributions API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
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
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
scrapecreatorsCurrent GitHub — Contributions · GET · View API reference | $0.00188 / call | 1 | 100.00%successP503.25s |
- 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.
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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
handle | URL query parametersquery | string | No | GitHub handle |
url | URL query parametersquery | string | No | GitHub profile URL |
year | URL query parametersquery | number | No | 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
contributionsobjectdaysobject[]colornullcontribution_countintegerdatestringintensityinteger
total_contributionsintegerusernamestringyearinteger
credits_chargedintegercredits_remainingintegersuccessboolean
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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 }