GitHub 用户关注列表 API
通过用户名列出指定用户关注的 GitHub 用户(每个账号的 login、类型、头像和主页 URL),支持分页。
US$1.20/千次请求,按请求付费,无需订阅。
kentcdodds
Followfollowers ·following
Following
sindresorhus
gridline-labsOrganization
tobias-mq
{"id": 810438,"login": "sindresorhus","type": "User","avatarUrl": "https://avatars.githubusercontent.com/u/810438","url": "https://github.com/sindresorhus","siteAdmin": false}
价格与服务商
GitHub 用户关注列表 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 GitHub 用户关注列表
这个示例展示了 11 个字段中的 10 个。查看全部字段
{
"found": true,
"data": {
"nextCursor": "2",
"following": [
{
"id": 810438,
"login": "sindresorhus",
"type": "User",
"avatarUrl": "https://avatars.githubusercontent.com/u/810438",
"url": "https://github.com/sindresorhus",
"siteAdmin": false
},
{
"id": 6764957,
"login": "gridline-labs",
"type": "Organization",
"avatarUrl": "https://avatars.githubusercontent.com/u/6764957",
"url": "https://github.com/gridline-labs",
"siteAdmin": false
},
{
"id": 2903318,
"login": "tobias-mq",
"type": "User",
"avatarUrl": "https://avatars.githubusercontent.com/u/2903318",
"url": "https://github.com/tobias-mq",
"siteAdmin": false
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- handlestring
kentcdodds
GitHub 用户名。
- cursorstring
上一次响应返回的分页游标(页码,默认 1)。
响应
JSON,每个字段一个示例值。
Populated whenever the provider has data for the entity.
- avatarUrlstring
https://avatars.githubusercontent.com/u/810438
Populated whenever the provider has data for the entity.
- idinteger
810438
- loginstring
sindresorhus
Populated whenever the provider has data for the entity.
- siteAdminboolean
false
- typestring
User
Populated whenever the provider has data for the entity.
- urlstring
https://github.com/sindresorhus
Populated whenever the provider has data for the entity.
- nextCursorstring
2
Opaque cursor for the next page of followed accounts, or null when this lane has no more. Pass it back as cursor to continue.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 GitHub 用户关注列表 API
AnyAPI 的 GitHub 用户关注列表 API 只需一次 POST 请求 /v1/run/github.user_following,就以统一格式的 JSON 返回 GitHub 数据。通过用户名列出指定用户关注的 GitHub 用户(每个账号的 login、类型、头像和主页 URL),支持分页。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub 用户关注列表 API 调用中有 100.0% 成功,响应时间中位数为 1.1 秒,共测量 65 次调用。