# GitHub 接口参考：16 个接口

> GitHub 全部 16 个长期维护接口的参考清单，以及各自返回什么。完整介绍、示例响应和常见问题在 GitHub 数据源页面。

URL: https://anysite.io/zh/endpoints/github/
Canonical: https://anysite.io/zh/sources/github/
Language: zh-Hans
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// 接口 · GitHub

# GitHub 接口参考

16 个长期维护的接口，以及各自返回什么。想看 GitHub 的完整介绍——示例响应、常见问题和使用场景——请去数据源页面。

[关于 GitHub 这个数据源](https://anysite.io/zh/sources/github/)

/api/github/repos 仓库详情：名称、描述、语言、star、fork、topic、许可证、拥有者

/api/github/repos/commits 按 owner/name 或 URL 列出仓库的 commit

/api/github/repos/contributors 贡献者列表：用户名、提交数、主页链接

/api/github/repos/issues 仓库的 issue 列表

/api/github/repos/pulls 仓库的 pull request 列表

/api/github/repos/releases 发布记录：tag、名称、发布日期、附件、release notes

/api/github/repos/search 按查询语句搜索仓库，可排序

/api/github/users 用户或组织资料：login、简介、粉丝、关注、公开仓库、地点

/api/github/users/repos GitHub 用户名下的公开仓库

/api/github/users/search 按查询语句搜索用户，支持限定符（地点、语言、粉丝数）

/api/github/orgs 组织主页：名称、描述、地点、成员数、公开仓库数

/api/github/orgs/repos GitHub 组织名下的公开仓库

/api/github/issues issue 详情：标题、正文、标签、指派人、里程碑、状态、评论数

/api/github/issues/search 按查询语句和限定符搜索 issue 与 PR

/api/github/pulls PR 详情：标题、正文、状态、评审人、标签、合并状态、diff 统计

/api/github/commits 按 sha、分支或 tag 取 commit 详情：提交信息、作者、日期、改动文件