GitHub License

Display the license type for any GitHub repository.

Show which open source license a repository uses.

GET/github/license/:owner/:repo.svg

Path Parameters

required
required
![badge](https://shieldcn.dev/github/license/vercel/next.js.svg)
badge preview

URL format

/github/license/{owner}/{repo}.svg
/github/{owner}/{repo}/license.svg

Examples

![Next.js license](https://shieldcn.dev/github/license/vercel/next.js.svg)
![React license](https://shieldcn.dev/github/license/facebook/react.svg)
![Linux license](https://shieldcn.dev/github/license/torvalds/linux.svg)

Styling examples

<!-- Violet theme -->
![license](https://shieldcn.dev/github/license/vercel/next.js.svg?theme=violet)

<!-- Secondary variant -->
![license](https://shieldcn.dev/github/license/vercel/next.js.svg?variant=secondary)

<!-- Custom label -->
![license](https://shieldcn.dev/github/license/vercel/next.js.svg?label=open%20source)

Response format

Shows the SPDX license identifier (e.g., MIT, Apache-2.0, GPL-3.0). If the repository has no detected license, shows none.