# GitHub Licenses API

**Canonical:** https://apis.io/apis/github/github-licenses-api/  
**Provider:** GitHub — https://apis.io/providers/github/  
**Base URL:** https://api.github.com/  
**Documentation:** https://docs.github.com/en/rest/licenses?apiVersion=2022-11-28

GitHub Licenses API is one of 350 APIs that [GitHub](https://apis.io/providers/github/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Licenses. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

The GitHub Licenses API lets you programmatically discover and retrieve open source license information across GitHub. It provides endpoints to list the common licenses GitHub supports, get detailed metadata and the canonical text for a specific license (by its SPDX identifier), and fetch the detected license for a given repository.

## Machine-readable artifacts (2)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-licenses-api-openapi.yml
- **Documentation** — https://docs.github.com/en/rest/licenses

## Other GitHub APIs (12)

- [GitHub Events API](https://apis.io/apis/github/github-events-api/)
- [GitHub Feeds API](https://apis.io/apis/github/github-feeds-api/)
- [GitHub Gists API](https://apis.io/apis/github/github-gists-api/)
- [GitHub Issues API](https://apis.io/apis/github/github-issues-api/)
- [GitHub Markdown API](https://apis.io/apis/github/github-markdown-api/)
- [GitHub Meta API](https://apis.io/apis/github/github-meta-api/)
- [GitHub Notifications API](https://apis.io/apis/github/github-notifications-api/)
- [GitHub Octocat API](https://apis.io/apis/github/github-octocat-api/)
- [GitHub Projects API](https://apis.io/apis/github/github-projects-api/)
- [GitHub Repos API](https://apis.io/apis/github/github-repos-api/)
- [GitHub Search API](https://apis.io/apis/github/github-search-api/)
- [GitHub User API](https://apis.io/apis/github/github-user-api/)

## Tags

Licenses

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/github/github-licenses-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/github/.
