GET
/licensesList commonly used licenses
Lists commonly used licenses available on GitHub. Use featured to filter the results to featured licenses, and use page and per_page to paginate the results.
featuredbooleanoptional
Whether to filter the results to featured licenses.
per_pageintegeroptional
Number of results per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
Page number of results to retrieve. Defaults to 1 when omitted.
200Returns an array of commonly used license objects, including each license's key, name, URL, SPDX identifier, and node ID.
keystringrequired
namestringrequired
urlstringrequired
spdx_idstringrequired
node_idstringrequired
html_urlstringoptional
304Returned when the response has not changed.
Error handling
featured accepts a boolean value. per_page can be at most 100; page defaults to 1 and per_page defaults to 30 when omitted.