GitHub Has Restricted Access to Star Data
摘要
GitHub 正在限制 stargazers API(返回谁 star 了某个仓库及 star 时间),访问权限被收紧至仅限仓库管理员和协作者。Star History 据此重建项目增长曲线,因此非自有仓库的图表无法构建。受影响情况包括:README 中嵌入的 live star history 图表(全量仓库)、star-history.com 的非自有仓库图表;不受影响的是自有仓库的查看(需提供可读 token)。注意:无 scope 的旧 token 不再工作。当前可操作:自有仓库需补充细粒度 token;自有仓库 README 嵌入可提供 token 加密后发布;非自有仓库图表已无法使用,团队正在探索绕过方案。
荐读理由
使用 fine-grained access token 可查看自己 repo 的 star history 历史曲线,继续重建增长曲线
原文
CompareStar MapHow to use this site
On this page
GitHub Has Restricted Access to Star Data
Tianzhou·Jul 6, 2026
GitHub is restricting its stargazers API — the endpoint that returns who starred a repository and when. As announced on June 30, 2026, access to this data is being limited to a repository's own admins and collaborators.
Star History reconstructs a project's growth curve from exactly this data. So for any repository you don't own or collaborate on, an authenticated request to GitHub now returns "Not Found," and the chart can't be built.
Here is exactly what is and isn't impacted:
Impacted
Live star history charts embedded in README files — for essentially every repository, since our servers fetch the data and aren't a collaborator on your repo either.
Charts on star-history.com for repositories you don't own or collaborate on.
Not impacted
- Viewing a repository you own or collaborate on, on star-history.com, with your own access token that can read it.
One caveat: tokens created with no scopes no longer work — even for your own repositories. See how to add your GitHub access token for the current setup.
What to do now
What to do depends on what you need:
Viewing star history for a repo you own or collaborate on. This still works — add an access token that can read it. Older no-scope tokens no longer work, so regenerate a fine-grained token.
Embedding a live chart for your own repo in a README. Supply a token that can read your repo — it's encrypted, so it's safe to put in a public README. See how to embed the chart in your README.
Charting a repo you don't own or collaborate on. GitHub no longer exposes this star data to anyone but the repo's admins and collaborators, so these charts are broken for now. We're still exploring workarounds and will share updates as we go.
Thank you for being a Star History user.
Bytebase- Database DevSecOps for Postgres, MySQL, Oracle, SQL Server, Mongo, Redis, and more.
这条对你有帮助吗?
