Skip to main content
GitHub Docs
All products
REST API
概览
Resources in the REST API
媒体类型
Other authentication methods
疑难解答
库
OpenAPI 描述
GitHub 应用程序启用的端点
GitHub 应用程序权限
指南
Get started - REST API
Basics of authentication
为用户发现资源
交付部署
将数据渲染为图形
处理注释
使用分页遍历
构建 CI 服务器
综合最佳实践
开始 - Git 数据库 API
Get started - Checks API
REST API 参考
Actions
构件
缓存
权限
密码
自托管运行器组
自托管运行器
工作流程作业
工作流程运行
工作流程
活动
Events
馈送
通知
标星
关注
应用
GitHub 应用程序
安装设施
Marketplace
OAuth 应用程序
Web 挂钩
计费
分支
分支
受保护分支
检查
检查运行
检查套件
行为准则
代码扫描
Codespaces
Codespaces
机器
存储库机密
用户机密
协作者
协作者
邀请
提交
提交
提交注释
提交状态
Dependabot
密码
依赖关系图
依赖项审查
部署密钥
部署
部署
环境
部署状态
表情符号
Enterprise administration
管理统计
审核日志
计费
SCIM
Gist
Gist
评论
Git 数据库
Blob
提交
引用
标记
树
Gitignore
互动
组织
仓库
用户
议题
议题
受理人
评论
事件
标签
里程碑
时间表
许可
Markdown
元数据
Metrics
社区
统计
流量
迁移
组织
源导入
用户
OAuth 授权
组织
组织
阻止用户
自定义存储库角色
成员
外部协作者
Web 挂钩
Packages
页面
项目
板
卡
协作者
列
拉取
拉取
审查评论
审查请求
审查
速率限制
反应
版本发布
版本发布
发布资产
仓库
仓库
自动链接
内容
复刻
Git LFS
标记
SCIM
搜索
秘密扫描
团队
团队
讨论评论
Discussions
外部组
成员
团队同步
用户
用户
阻止用户
Emails
关注者
GPG 密钥
Git SSH 密钥
Web 挂钩
存储库 web 挂钩配置
存储库 web 挂钩交付
仓库 web 挂钩
我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问
英文文档
。如果此页面上的翻译有问题,请
告诉我们
。
REST API
/
用户
Enterprise Cloud
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
所有 Enterprise Server 版本
关于版本
简体中文
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
注册
搜索 GitHub 文档
GitHub Docs
REST API
/
用户
REST API
Get started
Account and profile
Authentication
Repositories
GitHub
Enterprise administrators
Billing and payments
Site policy
Organizations
Code security
Pull requests
GitHub Issues
GitHub Actions
GitHub Codespaces
GitHub Packages
Search on GitHub
Developers
REST API
GraphQL API
GitHub CLI
GitHub Discussions
GitHub Sponsors
Building communities
GitHub Pages
Education
GitHub Desktop
GitHub Support
Atom
Electron
CodeQL
npm
Enterprise Cloud
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
所有 Enterprise Server 版本
关于版本
简体中文
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
注册
搜索 GitHub 文档
用户
用户 API 允许获取有关经过验证的用户的公共和私人信息。
用户
Get the authenticated user
Update the authenticated user
List users
Get a user
Get contextual information for a user
阻止用户
List users blocked by the authenticated user
Check if a user is blocked by the authenticated user
Block a user
Unblock a user
Emails
Set primary email visibility for the authenticated user
List email addresses for the authenticated user
Add an email address for the authenticated user
Delete an email address for the authenticated user
List public email addresses for the authenticated user
关注者
List followers of the authenticated user
List the people the authenticated user follows
Check if a person is followed by the authenticated user
Follow a user
Unfollow a user
List followers of a user
List the people a user follows
Check if a user follows another user
GPG 密钥
List GPG keys for the authenticated user
Create a GPG key for the authenticated user
Get a GPG key for the authenticated user
Delete a GPG key for the authenticated user
List GPG keys for a user
Git SSH 密钥
List public SSH keys for the authenticated user
Create a public SSH key for the authenticated user
Get a public SSH key for the authenticated user
Delete a public SSH key for the authenticated user
List public keys for a user