GitHub Repository readme API
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.
价格与服务商
GitHub Repository readme API 价格:一个 API,3 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 GitHub Repository readme
{
"data": {
"content": "A short example description of this item.",
"downloadUrl": "https://example.com/page",
"name": "Example title",
"path": "example",
"sha": "example",
"size": 42,
"url": "https://example.com/page"
},
"found": true,
"reason": "not_found"
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-12-02 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://github.com/openai/whisper
GitHub repository URL, e.g. https://github.com/openai/whisper. The README of the default branch is returned.
- 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 `content` or `size`, 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 README that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
响应
JSON,每个字段一个示例值。
The README, or null when the repository or its README does not exist.
- contentstring可设为必填
The README text exactly as committed, usually Markdown that may include HTML. One source returns it with HTML tags removed; name content in requireFields for the exact file.
- downloadUrlstring可设为必填
Raw download URL of the README file.
- namestring可设为必填
File name of the README, e.g. README.md.
- pathstring可设为必填
Path of the README inside the repository.
- shastring可设为必填
Git blob SHA of the README file.
- sizeinteger可设为必填
Size of the README file in bytes.
- urlstring可设为必填
GitHub URL of the README file.
- foundboolean
Whether the repository was found and has a README.
- 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 Repository readme API
AnyAPI 的 GitHub Repository readme API 只需一次 POST 请求 /v1/run/github.repository_readme,就以统一格式的 JSON 返回 GitHub 数据。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.AnyAPI 会在 3 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 GitHub Repository readme API 调用中有 100.0% 成功,响应时间中位数为 1.1 秒,共测量 401 次调用。