我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

此版本的 GitHub Enterprise 已停止服务 2020-11-12. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

About GitHub's APIs

Learn about GitHub's APIs to extend and customize your GitHub experience.

本文内容

There are two stable versions of the GitHub API: the REST API and the GraphQL API.

When using the REST API, we encourage you to request v3 via the Accept header.

For information on using the GraphQL API, see the v4 docs.

Deprecated versions

测试版

We deprecated the beta API on April 22, 2014.

v2

We removed support for API v2 on June 12, 2012.

v1

We removed support for API v1 on June 12, 2012.