{"uid":"cap_6_9lKAc8GRIIjB2oZf5hR","slug":"github-contribution-graph-by-year-0d9cefe8","name":"GitHub Contribution Graph by Year","description":"Get the contribution graph for a GitHub profile for a given year.","url":"https://api.socialfetch.dev/v1/github/profiles/:handle/contributions","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["handle"],"properties":{"handle":{"type":"string","maxLength":39,"minLength":1,"description":"GitHub username to look up, with or without a leading @."}}},"queryParams":{"type":"object","properties":{"year":{"type":"integer","maximum":2100,"minimum":2007,"description":"Calendar year for the contribution graph. Default: current calendar year."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w3s72wOif_Ptti-8SM_CY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the contribution graph (activity heatmap data) for a specified GitHub user profile for a given calendar year.","exampleAgentPrompt":"Can you pull the GitHub contribution graph for the user 'torvalds' for the year 2023 — I want to see how active they were?","exampleUseCases":null,"resultDescription":"Returns structured contribution graph data for the specified GitHub user and year, equivalent to the green activity heatmap shown on GitHub profile pages — including contribution counts per day or week across the calendar year.","failureModes":["GitHub handle not found or does not exist — returns an error or empty result","Year out of range or before account creation — may return empty data","Rate limiting or upstream GitHub access issues — may return a timeout or 5xx error","Missing required handle parameter — returns a validation error","Invalid year format — returns a schema validation error"],"whenToPreferThis":"Use this endpoint when you need structured contribution/activity data for a specific GitHub user for a given year, especially in automated workflows, developer analytics, or profile enrichment pipelines. Prefer this over scraping GitHub directly since it handles the data fetching and parsing for you via a simple paid API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:43.396Z","isFirstParty":false}