NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Open Source Licenses API

GET

Check whether any open source license is OSI-approved and active.

Open Source Licenses is a software license API that looks up open source license details by name or identifier. It returns SPDX identifiers, canonical URLs, OSI approval status, legacy IDs, and domain applicability for software, content, or data.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/openlicenses?name=MIT
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "domain_content": false,
    "domain_data": false,
    "domain_software": true,
    "legacy_ids": [
      "mit-license"
    ],
    "license": "MIT",
    "name": "MIT License",
    "license_url": "https://opensource.org/licenses/MIT",
    "license_status": "active",
    "isOsiApproved": true,
    "compatibleDomains": [
      "software"
    ]
  }
}

About the Open Source Licenses API

Pass any license name or identifier to retrieve its official metadata. The API checks the record and returns the full name, canonical URL, SPDX ID, legacy identifiers, and whether it is active, retired, or superseded. It also flags applicability across software, content, or data domains, along with a compatible domains list. Coverage is the full SPDX License List (CC0, refreshed monthly) on top of the Open Knowledge Foundation records, so 0BSD, BlueOak-1.0.0, MIT-0, WTFPL and Unicode-DFS-2016 resolve. Paid plans add obligations: permissions, conditions and limitations for about 45 common licences (from choosealicense.com, MIT), and a copyleft level (none, weak, strong or network).

What people use it for

Dependency Compliance Auditing
CI pipelines check third-party package licenses against OSI approval and active status flags before merging pull requests.
SBOM Metadata Enrichment
Software asset managers match SPDX identifiers and canonical URLs to internal components when assembling software bills of materials.
Package Registry Verification
When developers publish a package, code repositories verify that declared license names map to active SPDX IDs.
Dataset Ingestion Governance
Flag datasets governed by retired licenses or terms not meant for data before ingesting them into analytics environments.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Open Source Licenses

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Open Source Licenses API.

Read the docs →
What license details can I check with a single query?
You can verify OSI approval status, SPDX identifiers, full license names, canonical license text URLs, and legacy identifiers. It also returns whether a license is active, retired, or superseded, along with target domain flags for software, data, and content.
Is it cheap enough to audit licenses for every dependency in a build?
Yes. Each lookup costs 1 credit, which works out to about $0.00015 per call or $0.15 per 1,000 lookups on the Starter plan. The Free plan provides 200 checks each month, while Starter covers up to 200,000 checks per month.
Do I get compatible domain details on the Free plan?
Yes. Every plan returns the full license record, including OSI approval, SPDX identifiers, the software, content and data domain flags, and the compatible domains list built from them. Paid plans differ only in monthly lookup volume.
How does the API handle retired or superseded licenses?
The response includes a dedicated license status field that indicates whether the license is currently active, retired, or superseded. It also returns known legacy identifiers so you can reconcile older license names against current SPDX standards.
Can I use this license data inside a commercial compliance tool?
Yes, commercial use is permitted on any paid plan. You can build license auditing into your CI/CD pipelines, compliance dashboards, or internal tools, provided you do not resell or redistribute the raw license records as a standalone service.

Ready to build with Open Source Licenses? Start with 200 free credits — one key unlocks all 406+ APIs.

Explore the catalog

406+ APIs on the same key and the same response shape.

Browse all APIs