GitHub Issue comments API
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.
价格与服务商
GitHub Issue comments API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 GitHub Issue comments
{
"data": {
"comments": [
{
"author": "Alex Rivera",
"authorAssociation": "Alex Rivera",
"authorAvatarUrl": "https://example.com/image.jpg",
"authorId": "Alex Rivera",
"authorType": "Alex Rivera",
"body": "A short example description of this item.",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"reactions": 42,
"updatedUtc": 12.5,
"url": "https://example.com/page"
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-25 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://github.com/openai/whisper/pull/1838
URL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838.
- cursorstring
上一次响应的 nextCursor 返回的分页游标。
- limitinteger
10
Rows per page, 1-100 (GitHub's own page-size limit). Each call returns one full page of this size; use nextCursor for the next page.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `authorAssociation` or `body`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a comment that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
- sincestring
Only comments updated on or after this date (YYYY-MM-DD).
响应
JSON,每个字段一个示例值。
Comments in the order they were posted. Review comments on pull request code lines are not included. Populated whenever the provider has data for the entity.
- authorstring
GitHub login of the commenter. Populated whenever the provider has data for the entity.
- authorAssociationstring可设为必填
The commenter's relationship to the repository, as GitHub reports it: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER or NONE.
- authorAvatarUrlstring
Avatar image URL of the commenter.
- authorIdstring可设为必填
GitHub's numeric user id of the commenter, as a string.
- authorTypestring可设为必填
Account type of the commenter: User, Bot or Organization.
- bodystring可设为必填
Comment text in Markdown. One source returns it with HTML tags removed; name body in requireFields for the exact Markdown.
- createdUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- idstring
GitHub's numeric comment id, as a string.
- reactionsinteger
Total number of reactions of every kind.
- updatedUtcnumber可设为必填
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- urlstring
Canonical GitHub URL of the comment. Populated whenever the provider has data for the entity.
The page of comments, or null when not found.
- nextCursorstring
Opaque cursor for the next page of comments, or null when there are no more. Pass it back as cursor to continue.
- foundboolean
Whether the issue or pull request was found and has comments.
- 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 Issue comments API
AnyAPI 的 GitHub Issue comments API 只需一次 POST 请求 /v1/run/github.issue_comments,就以统一格式的 JSON 返回 GitHub 数据。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.AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub Issue comments API 调用中有 100.0% 成功,响应时间中位数为 1.1 秒,共测量 92 次调用。