Ending the License API preview

In March of 2015, we announced the License API preview to support open source license usage on GitHub.com.

Since then, we've improved the underlying license detection algorithm, added license support to additional endpoints, and made it easier to retrieve a repository's license text.

Today, we're making things official by ending the preview period, and we consider the response payload to be stable going forward. We've also exposed license metadata via the GraphQL API as a repository's licenseInfo property.

Going forward, endpoints that return license metadata will no longer require passing the preview media type. Instead, we recommend that you specify v3 as the version in the Accept header:


Please note, however, GitHub Enterprise versions that do not yet support the License API will still require the custom media type:


For more information, see the License API documentation or drop us a line!