GitHub 用户动态 API
通过用户名列出 GitHub 用户在指定年份的公开贡献动态(按月汇总的提交、Pull Request 和 Issue,附仓库链接)。
US$1.20/千次请求,按请求付费,无需订阅。
mira-devbuilds
Contribution activity
September 2026
Created 2 repositories
mira-devbuilds/gridline-cli
mira-devbuilds/edge-notes
Opened 14 pull requests in 3 repositories
Reviewed 21 pull requests in 2 repositories
{"summary": "Created 2 repositories","items": [...]}
价格
GitHub 用户动态 API 价格
试一试
一个请求获取 GitHub 用户动态
这个示例展示了 14 个字段中的 13 个。查看全部字段
{
"found": true,
"data": {
"username": "mira-devbuilds",
"year": 2026,
"month": "September 2026",
"noActivity": false,
"nextCursor": "eyJtb250aCI6IjIwMjYtMDgifQ==",
"activity": [
{
"summary": "Created 2 repositories",
"items": [
{
"text": "mira-devbuilds/gridline-cli",
"repo": "mira-devbuilds/gridline-cli",
"url": "https://github.com/mira-devbuilds/gridline-cli"
},
{
"text": "mira-devbuilds/edge-notes",
"repo": "mira-devbuilds/edge-notes",
"url": "https://github.com/mira-devbuilds/edge-notes"
}
]
},
{
"summary": "Opened 14 pull requests in 3 repositories",
"items": [
{
"text": "opengridlabs/gridline-core 9 pull requests",
"repo": "opengridlabs/gridline-core",
"url": "https://github.com/opengridlabs/gridline-core"
},
{
"text": "vercel/next.js 3 pull requests",
"repo": "vercel/next.js",
"url": "https://github.com/vercel/next.js"
},
{
"text": "mira-devbuilds/edge-notes 2 pull requests",
"repo": "mira-devbuilds/edge-notes",
"url": "https://github.com/mira-devbuilds/edge-notes"
}
]
},
{
"summary": "Reviewed 21 pull requests in 2 repositories",
"items": [
{
"text": "opengridlabs/gridline-core 18 pull requests",
"repo": "opengridlabs/gridline-core",
"url": "https://github.com/opengridlabs/gridline-core"
},
{
"text": "opengridlabs/gridline-docs 3 pull requests",
"repo": "opengridlabs/gridline-docs",
"url": "https://github.com/opengridlabs/gridline-docs"
}
]
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- handlestring
mira-devbuilds
GitHub 用户名。
- cursorstring
上一次响应返回的分页游标(按月向前翻页)。
- yearstring
2026
要返回贡献动态的年份(默认当前年份)。
响应
JSON,每个字段一个示例值。
The individual entries behind this activity summary. Empty when the upstream published no breakdown.
- repostring
mira-devbuilds/gridline-cli
Full repository name in owner/name form for this entry.
- textstring
mira-devbuilds/gridline-cli
The entry as GitHub renders it, e.g. "owner/repo 353 commits".
- urlstring
https://github.com/mira-devbuilds/gridline-cli
Canonical URL of the repository for this entry.
Populated whenever the provider has data for the entity.
- summarystring
Created 2 repositories
Populated whenever the provider has data for the entity.
- monthstring
September 2026
Populated whenever the provider has data for the entity.
- nextCursorstring
eyJtb250aCI6IjIwMjYtMDgifQ==
Opaque cursor for the next page of activity, or null when this lane has no more. Pass it back as cursor to continue.
- noActivityboolean
false
- usernamestring
mira-devbuilds
Populated whenever the provider has data for the entity.
- yearinteger
2026
- 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_activity,就以统一格式的 JSON 返回 GitHub 数据。通过用户名列出 GitHub 用户在指定年份的公开贡献动态(按月汇总的提交、Pull Request 和 Issue,附仓库链接)。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub 用户动态 API 调用中有 100.0% 成功,响应时间中位数为 5.3 秒,共测量 18 次调用。