GitHub Search issues API
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.
价格
GitHub Search issues API 价格
试一试
一个请求获取 GitHub Search issues
{
"data": {
"hasMore": true,
"issues": [
{
"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.",
"closedUtc": 12.5,
"comments": 12500,
"createdUtc": 12.5,
"draft": true,
"id": "a1b2c3d4",
"isPullRequest": true,
"labels": [
"Example title"
],
"mergedUtc": 12.5,
"number": 42,
"reactions": 42,
"repo": "example",
"state": "CA",
"title": "Example title",
"updatedUtc": 12.5,
"url": "https://example.com/page"
}
],
"total": 12500
},
"found": true,
"reason": "not_found"
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-29 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- querystring
repo:openai/whisper is:pr
GitHub issue search query with any of GitHub's qualifiers, e.g. "repo:openai/whisper is:pr", "is:issue label:bug author:octocat", "repo:ggml-org/llama.cpp is:pr is:merged created:>2026-01-01".
- limitinteger
Rows per page, 1-100 (GitHub's own page-size limit). Keep it the same while walking pages, because it sets the page size.
- orderenum
Sort direction when sort is set. Defaults to desc.
- pageinteger
1-based page of results. Request page + 1 while hasMore is true.
- sortenum
Sort by number of comments, creation date, last update, or reactions. Omit for best match.
响应
JSON,每个字段一个示例值。
The search results, or null when nothing matched.
- hasMoreboolean
True when another page of results exists; request page + 1 to continue.
- totalinteger
Total number of matches GitHub reports. GitHub serves only the first 1,000 of them, so page times limit can be at most 1,000.
Matching issues and pull requests. Populated whenever the provider has data for the entity.
- authorstring
GitHub login of the person who opened it. Populated whenever the provider has data for the entity.
- authorAssociationstring
The author'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 author.
- authorIdstring
GitHub's numeric user id of the author, as a string.
- authorTypestring
Account type of the author: User, Bot or Organization.
- bodystring
Markdown body as written, or null when empty.
- closedUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Null while open.
- commentsinteger
Number of comments.
- createdUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- draftboolean
Whether a pull request is a draft; null for an issue.
- idstring
GitHub's numeric issue id, as a string.
- isPullRequestboolean
True for a pull request, false for an issue.
- labelsstring[]
Names of the labels applied.
- mergedUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Set only on a merged pull request.
- numberinteger
Issue or pull request number within its repository (the #N shown on GitHub).
- reactionsinteger
Total number of reactions of every kind.
- repostring
Repository the issue belongs to, in owner/name form.
- statestring
open or closed. A merged pull request is closed and has mergedUtc set.
- titlestring
Title of the issue or pull request. Populated whenever the provider has data for the entity.
- updatedUtcnumber
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- urlstring
Canonical GitHub URL of the issue or pull request. Populated whenever the provider has data for the entity.
- foundboolean
Whether the search returned any issue or pull request.
- 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 Search issues API
AnyAPI 的 GitHub Search issues API 只需一次 POST 请求 /v1/run/github.search_issues,就以统一格式的 JSON 返回 GitHub 数据。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.无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$2.40 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub Search issues API 调用中有 99.6% 成功,响应时间中位数为 1.7 秒,共测量 550 次调用。