/v1/search
Search licenses by id / name + filters
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/licenses-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/licenses-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/licenses-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/licenses-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 3,
"limit": 20,
"query": "apache",
"total": 3,
"offset": 0,
"filters": {
"fsf_libre": null,
"deprecated": null,
"osi_approved": null
},
"results": [
{
"name": "Apache License 1.0",
"licenseId": "Apache-1.0",
"reference": "https://spdx.org/licenses/Apache-1.0.html",
"isFsfLibre": true,
"isOsiApproved": false,
"isDeprecatedLicenseId": false
},
{
"name": "Apache License 1.1",
"licenseId": "Apache-1.1",
"reference": "https://spdx.org/licenses/Apache-1.1.html",
"isFsfLibre": true,
"isOsiApproved": true,
"isDeprecatedLicenseId": false
},
{
"name": "Apache License 2.0",
"licenseId": "Apache-2.0",
"reference": "https://spdx.org/licenses/Apache-2.0.html",
"isFsfLibre": true,
"isOsiApproved": true,
"isDeprecatedLicenseId": false
}
]
},
"meta": {
"timestamp": "2026-05-31T07:16:12.736Z",
"request_id": "d811c80d-6f10-4f9d-94ca-fa8093ba912d"
},
"status": "ok",
"message": "Licenses searched",
"success": true
}