# GitHub API：16 个接口，覆盖仓库、用户、issue 与 PR | Anysite

> 仓库、用户、组织、issue、pull request、commit，全部返回扁平 JSON。不用倒腾 token，不用管调用限额。7 天免费试用。

URL: https://anysite.io/zh/sources/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 API， 仓库和 issue，不用倒腾 token

仓库、贡献者、issue、PR、发布和 commit，是竞品情报、招聘和依赖监控的原料。平常这些数据藏在调用限额、OAuth 和层层嵌套的响应后面。传仓库名、用户名或一句查询，回来都是扁平干净的 JSON。

[免费开始](https://app.anysite.io/register?lang=zh) 7 天免费试用

## 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 详情：提交信息、作者、日期、改动文件

## 适合这些活儿

[竞品分析](https://anysite.io/zh/use-cases/competitor-analysis/) [招聘与人力](https://anysite.io/zh/use-cases/hr-recruiting/) [尽职调查](https://anysite.io/zh/use-cases/due-diligence/)

## 开始拉取 GitHub 数据

任意公开仓库、用户或组织，回来都是干净 JSON。900+ 个数据源共用一把 key，每月 $30 起，7 天免费试用。

[免费开始](https://app.anysite.io/register?lang=zh)

## 常见问题

需要 GitHub token 或 OAuth 配置吗？

不需要。只要 Anysite API key，不走 GitHub OAuth，不用管 personal access token，也不用在你这边处理限额响应头。

能取到哪些 GitHub 数据？

公开仓库（详情、commit、贡献者、issue、PR、发布、搜索）、用户资料、组织资料及其仓库、单条 issue 和 pull request、commit 详情，16 个接口全部返回干净 JSON。

数据有多新？

每次请求都实时取数。star 数、issue 列表、贡献者数、提交历史，都是你调用那一刻 GitHub 上的状态。