v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-11-288093493.9 MB
licenses

Get all commonly used licenses

Lists the most commonly used licenses on GitHub. For more information, see "Licensing a repository ."

get/licenses

Query parameters

featuredboolean
per_pageinteger

The number of results per page (max 100).

pageinteger

Page number of the results to fetch.

Response

Response

keystring required
namestring required
urlstring uri nullable required
spdx_idstring nullable required
node_idstring required
html_urlstring uri

Example response

[
  {
    "key": "mit",
    "name": "MIT License",
    "url": "https://api.github.com/licenses/mit",
    "spdx_id": "MIT",
    "node_id": "MDc6TGljZW5zZW1pdA=="
  }
]