spdx / fsf-api

FSF License Metadata API
MIT License
5 stars 2 forks source link

FSF License Metadata API

The FSF is interested in having the SPDX expose some of its metadata in the SPDX license list. The cleanest way to do that is to have the FSF provide their annotated license list in a format that is more convenient for automated tools. For example, the OSI provides an API which, while currently non-canonical, provides convenient access to OSI license annotations.

This repository scrapes the FSF list and provides the scraped data in a JSON API for others to consume. Ideally we'll hand this repository over to the FSF once they're ready to maintain it, or we'll deprecate this repository if they decide to provide a different API.

Endpoints

You can pull an array of identifiers from https://spdx.github.io/fsf-api/licenses.json.

You can pull an object with all the license data https://spdx.github.io/fsf-api/licenses-full.json.

You can pull an individual license from a few places:

License properties

Licenses have the following properties:

Caveats

There are currently some hacks in the pulling script:

Until these hacks are addressed, license IDs and the tags and identifiers fields should be taken with a grain of salt.

Credits

The original implementation of the fsf-api was provided by @wking. This repository is now being maintained by the SPDX community.

Contributing

Contributions are welcome!