{"uid":"cap_7cbe1kTb7rPP6tutbJreQ","slug":"x402-deployer-x402-deployer-workers-dev-e19be2a9","name":"GitHub Stars History API","description":"GitHub stars history / star growth chart / repo popularity over time / trending tracker. Current star count plus a sampled cumulative-stars-vs-date series for any public GitHub repo. Walks 1-10 evenly-spaced pages of /stargazers using application/vnd.github.star+json so each sample carries a starred_at timestamp. Free public API, no auth (subject to GitHub's 60 req/h unauthenticated limit).","url":"https://x402-deployer.x402-deployer.workers.dev/github-stars-history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["repo"],"properties":{"repo":{"type":"string","description":"Repository in 'owner/name' form."},"pages":{"type":"number","description":"How many sample pages to walk. Range [1, 10]. Default 5."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"note":{"type":"string"},"repo":{"type":"string"},"forks":{"type":"integer"},"source":{"type":"string"},"history":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"cumulative_stars":{"type":"integer"}}}},"pushed_at":{"type":"string"},"created_at":{"type":"string"},"current_stars":{"type":"integer"},"sampled_pages":{"type":"array","items":{"type":"integer"}}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"repo":"torvalds/linux","pages":5},"type":"http","method":"POST","bodyType":"json"}},"response":{"note":"history is a sampled approximation: each entry shows cumulative star count at that page boundary","repo":"torvalds/linux","forks":62757,"source":"github","history":[{"date":"2015-11-17","cumulative_stars":23600}],"pushed_at":"2026-06-17T19:39:08Z","created_at":"2011-09-04T22:48:12Z","current_stars":236795,"sampled_pages":[236,710,1184,1657,2131]}},"exampleRequest":{"repo":"torvalds/linux","pages":5},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_85pugGEAuHYeOH9q1EVVu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current star count and a time-series of cumulative stars vs. date for any public GitHub repository, sampled across up to 10 pages of stargazers.","exampleAgentPrompt":"Can you pull the GitHub stars history for the repo 'owner=vercel, name=next.js' using 10 sampled pages, so I can see how its popularity has grown over time?","exampleUseCases":null,"resultDescription":"Returns the repository's current total star count plus a chronological array of {date, cumulative_stars} data points sampled evenly across up to 10 pages of stargazers, each derived from the starred_at timestamp in the GitHub API response.","failureModes":["Repository not found or private — returns 404 or empty result","GitHub unauthenticated rate limit exceeded (60 req/h) — returns 429 or error","Invalid owner/repo format — returns validation error","pages parameter out of range (not 1-10) — returns error","GitHub API unavailable — propagates upstream error"],"whenToPreferThis":"Use this endpoint when you need historical star growth data or a popularity timeline for a public GitHub repository, not just the current star count. It is ideal for trend analysis, charting repo growth, or comparing how quickly different projects gained traction. Prefer this over scraping GitHub directly or calling the GitHub API yourself, as it handles pagination and timestamp extraction automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:13.672Z","isFirstParty":false}