Posted on

by

in

Introducing the new API for OSI Approved Licenses®

The Open Source Initiative (OSI) is excited to announce the availability of a new API service providing access to the canonical list of OSI Approved Licenses®. This launch is part of our broader effort to modernize how we manage and share Open Source license data, making it easier for the community to identify and verify licenses that comply with the Open Source Definition.

The new API

The list of OSI Approved Licenses® is a critical reference point for developers, legal teams, companies, and communities around the world. The OSI Approved Licenses® database is a comprehensive, structured, and up-to-date database of approved licenses and their metadata. This new API service builds directly on that work.

The new API is served directly from our website and reflects the official source of truth for OSI license data. This service is fully public and free to use. You can now access the full list of OSI Approved Licenses® from:

https://opensource.org/api/license

You can fetch detailed metadata on individual licenses, including:

License name and version

SPDX identifier

Approval and submission dates

License steward and submitter

Withdrawal or retirement status

Links to board meeting minutes and evidence of approval

For example, you can access data from the GNU General Public License version 3 at:

https://opensource.org/api/license/gpl-3-0

{
„id”: „gpl-3-0”,
„name”: „GNU General Public License version 3”,
„version”: „3.0”,
„submission_date”: „20070629”,
„submission_url”: „http://lists.opensource.org/pipermail/license-discuss_lists.opensource.org/2007-June/012888.html”,
„submitter_name”: „GNU GENERAL PUBLIC LICENSE”,
„approval_date”: „20070905”,
„license_steward_version”: „”,
„license_steward_url”: „https://www.gnu.org/licenses/gpl-3.0.en.html”,
„board_minutes”: „https://opensource.org/meeting-minutes/minutes20070905/”,
„stewards”: [
„free-software-foundation”
],
„keywords”: [
„popular-strong-community”
],
„_links”: {
„self”: {
„href”: „https://opensource.org/api/license/gpl-3-0”
},
„html”: {
„href”: „https://opensource.org/license/gpl-3-0”
},
„collection”: {
„href”: „https://opensource.org/api/licenses”
}
}
}

It’s also possible to search licenses by name:

https://opensource.org/api/license?name=gpl

Deprecation of legacy service

The new API is not backward compatible with the legacy API service. Users will need to migrate to the new endpoint. If you’re currently using api.opensource.org, please note that the old service is outdated and will be deprecated in the coming months. We recommend beginning your migration now to ensure uninterrupted access.

Feedback welcome

We’re still refining the API and exploring ways to expand its capabilities. If you have a use case, suggestion, or need help transitioning to the new service, please get in touch. We’re especially interested in hearing from developers, legal teams, and tooling providers who rely on accurate license data. We look forward to seeing what the community builds on top of this new API.

We would like to thank Automattic for sponsoring this work and our former intern Giulia Dellanoce for creating a systematic and well-ordered database of all the licenses that have been submitted to OSI for approval since the time of the organization’s founding.

Source: opensource.org