# GitHub Repo Star History API (https://www.socialcrawl.dev/platforms/github/repo-star-history) > Returns how many stars a public repository gained in each calendar week since it was created, oldest week first, under `data.weeks[]`: `week_start` (the week's first day, a Sunday, as a date), `stars` gained that week, `cumulative_stars` (the running total at the end of that week, so the list is the repository's star curve) and `days`, the stars of each day of that week starting on Sunday. `data.stars` is the total of the history, `data.first_star_week` the week of the first star, and `data.coverage` says how many weeks and pages were read and whether the history is complete. It counts stars only and never says who starred. Week and day boundaries follow GitHub's own, which are not guaranteed to fall on UTC midnight. A repository with no stars answers 404 and is not charged. 1 credit per call, whatever the repository's age. TL;DR: `GET /v1/github/repo/star-history` costs 1 credit per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `url` | yes | GitHub repo URL: `https://github.com/{owner}/{repo}`. | ## Code example ```bash curl -G "https://www.socialcrawl.dev/v1/github/repo/star-history" \ --data-urlencode "url=https://github.com/vercel/next.js" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### What does the GitHub Repo Star History API return? Returns how many stars a repository gained in each week since it was created, oldest week first, with a running total that draws its star curve and a split by day. The response uses the same JSON envelope as every SocialCrawl endpoint, with the data, credits_used and request_id fields. ### When should I use the GitHub Repo Star History endpoint? Use it to see when a project took off, for example around a launch, without rebuilding the curve by hand. It counts stars and never says who starred. ### How much does the GitHub Repo Star History API cost? Each call costs 1 credit, so the 100 free credits every new account gets cover 100 calls. Credits for failed or empty calls are refunded automatically, and there is no subscription. ### What parameters does the GitHub Repo Star History API need? The one required parameter is url (gitHub repo URL: https://github.com/{owner}/{repo}). ### How do I call the GitHub Repo Star History API? Send a GET request to https://www.socialcrawl.dev/v1/github/repo/star-history?url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js with your API key in the x-api-key header. An Authorization: Bearer header works too. See the full GitHub API: https://www.socialcrawl.dev/platforms/github ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - What does the SocialCrawl GitHub Repo Star History API return? - How do I get GitHub Repo Star History data with the SocialCrawl API?