License-API API
Overview
License-API is an unofficial REST wrapper around choosealicense.com that lets you fetch structured data about open-source licenses by their SPDX identifier. You can retrieve full license text, permissions, conditions, and limitations without scraping the website. It is a handy tool for code-hosting platforms, CLI tools, or IDEs that need to display or suggest licenses to developers.
Beginner Tip
No authentication is needed — just call the endpoint with a license ID such as "mit" or "apache-2.0". The base URL is https://choosealicense.com/licenses/ and License-API mirrors that structure as JSON. Start with GET /licenses to list all available licenses before fetching an individual one.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from License-API",
"description": "Unofficial REST API for choosealicense.com",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
key The SPDX identifier for the license, e.g. "mit" or "apache-2.0". name Human-readable name of the license, e.g. "MIT License". body Full text of the license. permissions List of what the license allows, such as commercial use, modification, or distribution. conditions Requirements the user must follow, such as license-and-copyright-notice. limitations Things the license does not permit, such as liability or warranty. Implementation Example
const url = "https://github.com/cmccandless/license-api/blob/master/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →24 Pull Requests
⭐ Beginner's Pick24 Pull Requests is a community initiative that runs every December to encourage developers to contribute to open source projects.
Agify.io
⭐ Beginner's PickAgify.io is a free API that predicts the likely age of a person based solely on their first name, using a database of over 350 million historical records.
API Grátis
API Grátis is a Brazilian API aggregator that bundles multiple free utility services including CEP (postal code) lookup, CNPJ (company registry) data, vehicle plate information, and more — all under a single authentication token.
ApicAgent
⭐ Beginner's PickApicAgent parses User-Agent strings into structured device and browser information, returning details like browser name, version, OS, device type, and whether the client is a bot.
APIs.guru
⭐ Beginner's PickAPIs.guru maintains a crowd-sourced directory of OpenAPI (Swagger) specification files for hundreds of public web APIs, all normalized to OpenAPI 3.0 format.