POST
用户
最常用/v1/run/github.usergithub.user
通过用户名获取 GitHub 用户的公开主页(姓名、简介、公司、所在地、粉丝数和仓库数)。
14,329 /月
▲190.4%
100.00%
1010ms p50
3
起价US$1.20/千次请求
Quokka
POST
用户仓库
/v1/run/github.user_repositoriesgithub.user_repositories
列出 GitHub 用户的公开仓库(名称、描述、语言、星标数和 Fork 数),支持排序和游标分页。
3,013 /月
▲24.9%
100.00%
1397ms p50
1
价格US$1.20/千次请求
Giraffe
POST
仓库
/v1/run/github.repositorygithub.repository
通过 URL 获取 GitHub 仓库的元数据(星标、Fork、语言、主题、许可证和时间戳)。
1,705 /月
▲170.6%
99.76%
1000ms p50
2
起价US$1.20/千次请求
Quokka
POST
Search issues
/v1/run/github.search_issuesgithub.search_issues
Search issues and pull requests across GitHub with GitHub's own search syntax (repo:, is:pr, is:issue, author:, label:, created:...), with each result's author, state, labels, counts and body. Use it to find who opens issues and pull requests on a repository.
786 /月
▲1178.9%
99.74%
2080ms p50
1
价格US$2.40/千次请求
Chameleon
POST
Issue comments
/v1/run/github.issue_commentsgithub.issue_comments
List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text.
572 /月
▲157.5%
100.00%
1046ms p50
2
起价US$1.20/千次请求
Chameleon
POST
Repository contributors
/v1/run/github.repository_contributorsgithub.repository_contributors
List the people who have committed to a GitHub repository by repository URL, ordered by number of commits, with each contributor's login, profile URL and commit count. Look each one up with github.user for their profile, website and socials.
373 /月
▲756.4%
99.20%
1164ms p50
1
价格US$1.20/千次请求
Chameleon
POST
Repository readme
/v1/run/github.repository_readmegithub.repository_readme
Get a GitHub repository's README by repository URL, as the Markdown text the maintainers wrote, with its file name, path and size. Use it to learn what a project does, which models and tools it uses, and how to reach its authors.
304 /月
▲579.5%
100.00%
1126ms p50
3
起价US$1.20/千次请求
Quokka
POST
Repository issues
/v1/run/github.repository_issuesgithub.repository_issues
List a GitHub repository's issues and pull requests by repository URL (GitHub lists pull requests as issues), with each one's author, state, labels, counts and body. Filter by state, sort and update date.
274 /月
▲521.1%
100.00%
1786ms p50
1
价格US$1.20/千次请求
Chameleon
POST
Repository forks
/v1/run/github.repository_forksgithub.repository_forks
List the forks of a GitHub repository by repository URL, with each fork's owner, description, stars, language and last push. Sort by newest, oldest or most starred.
215 /月
▲365.8%
99.53%
3027ms p50
1
价格US$1.20/千次请求
Chameleon
POST
用户关注列表
/v1/run/github.user_followinggithub.user_following
通过用户名列出指定用户关注的 GitHub 用户(每个账号的 login、类型、头像和主页 URL),支持分页。
65 /月
▲3050%
100.00%
1115ms p50
2
起价US$1.20/千次请求
Quokka
POST
热门仓库
/v1/run/github.trending_repositoriesgithub.trending_repositories
列出 GitHub Trending 仓库(排名、星标数、今日新增星标、语言和描述),可按语言和时间窗口筛选。
52 /月
▲571.4%
100.00%
2674ms p50
2
起价US$1.20/千次请求
Quokka
POST
用户粉丝
/v1/run/github.user_followersgithub.user_followers
通过用户名列出 GitHub 用户的粉丝(每位粉丝的 login、类型、头像和主页 URL),支持分页。
21 /月
▲1900%
100.00%
1110ms p50
2
起价US$1.20/千次请求
Quokka
POST
热门开发者
/v1/run/github.trending_developersgithub.trending_developers
列出 GitHub 热门开发者(排名、用户名、姓名、头像及其最受欢迎的仓库),可按编程语言和时间范围筛选。
19 /月
100.00%
6498ms p50
1
价格US$1.20/千次请求
Giraffe
POST
用户贡献
/v1/run/github.user_contributionsgithub.user_contributions
获取 GitHub 用户某一年的贡献图(贡献总数,以及每日计数和热力图强度)。
19 /月
100.00%
4572ms p50
1
价格US$1.20/千次请求
Giraffe
POST
用户动态
/v1/run/github.user_activitygithub.user_activity
通过用户名列出 GitHub 用户在指定年份的公开贡献动态(按月汇总的提交、Pull Request 和 Issue,附仓库链接)。
18 /月
100.00%
5260ms p50
1
价格US$1.20/千次请求
Giraffe
POST
用户 Pull Request
/v1/run/github.user_pull_requestsgithub.user_pull_requests
通过用户名列出 GitHub 用户的公开 Pull Request(标题、仓库、状态、创建日期和 URL),支持可选的日期筛选和分页。
18 /月
100.00%
1638ms p50
1
价格US$1.20/千次请求
Giraffe
关于 GitHub API
每个服务商对每个接口单独定价,所以表格显示的是每个接口的最低价。打开任一接口即可比较所有服务商。
调用 GitHub API
基础 URL
https://api.getanyapi.com认证请求头
Authorization: Bearer $ANYAPI_KEY示例请求:用户
curl -X POST https://api.getanyapi.com/v1/run/github.user \ -H "Authorization: Bearer $ANYAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"handle":"torvalds"}'
实测性能
GitHub API 的真实表现
过去 30 天经由 AnyAPI 的每一次调用,都在这里如实统计,而不是空口承诺。
100.0%
的调用成功(21,690 次调用)
首选线路成功 90.5%自动切换后恢复 9.5%失败 0.0%
响应时间估算(21,680 次调用,跨接口汇总)
- p50 加权估算
- 1.2s
- 各接口 p50 按请求量加权的平均值,并非合并计算的请求百分位数
- p99 加权估算
- 9.7s
- 各接口 p99 按请求量加权的平均值,并非合并计算的请求百分位数
常见问题
关于 GitHub API
AnyAPI 的 GitHub API 以统一格式的 JSON 返回 GitHub 数据,共 16 个接口:issue comments、仓库、repository contributors、repository forks、repository issues、repository readme、search issues、热门开发者、热门仓库、用户、用户动态、用户贡献、用户粉丝、用户关注列表、用户 pull request和用户仓库。每项任务调用一个接口,只需一个密钥,AnyAPI 会在 4 个数据源之间路由每个请求,某个数据源失败时自动切换。价格以美元计,每千次请求 US$1.20 起(最便宜的接口),无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub API 调用中有 100.0% 成功,按请求加权的响应时间中位数为 1.2 秒,共测量 21,690 次调用。
价格以美元计,每千次请求 US$1.20 起(最便宜的接口),无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。
16 个接口:issue comments、仓库、repository contributors、repository forks、repository issues、repository readme、search issues、热门开发者、热门仓库、用户、用户动态、用户贡献、用户粉丝、用户关注列表、用户 pull request和用户仓库。每个接口使用相同的认证方式,返回相同的统一响应结构,所以调用另一个 GitHub 接口只需换一个 URL,别的都不用改。
过去 30 天,通过 AnyAPI 发起的 GitHub API 调用中有 100.0% 成功,按请求加权的响应时间中位数为 1.2 秒,共测量 21,690 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。