Open Source Licenses API

GET

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

Open Source Licenses 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, with paid plans adding compatible domain details.

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 2 credits, which works out to about $0.0003 per call or $0.30 per 1,000 lookups on the Starter plan. The Free plan provides 100 checks each month, while Starter covers up to 100,000 checks per month.
Do I get compatible domain details on the Free plan?
Compatible domains are restricted to paid plans. The Free plan returns core license details like OSI approval and SPDX identifiers, but you need any paid plan to receive the list of compatible domains across software, content, and data.
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 300+ APIs.

Explore the catalog

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

Browse all APIs