Naar de inhoud
GET /v1/facets

Discovery facets for a query

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/eudata-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/eudata-api/v1/facets" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/eudata-api/v1/facets", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/eudata-api/v1/facets");
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/eudata-api/v1/facets",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "query": "energy",
        "total": 27611,
        "formats": [
            {
                "count": 8093,
                "value": "CSV"
            },
            {
                "count": 2901,
                "value": "WMS_SRVC"
            },
            {
                "count": 2585,
                "value": "HTML"
            },
            {
                "count": 1939,
                "value": "ZIP"
            },
            {
                "count": 1858,
                "value": "JSON"
            },
            {
                "count": 1761,
                "value": "XML"
            },
            {
                "count": 1621,
                "value": "PDF"
            },
            {
                "count": 1505,
                "value": "XLSX"
            },
            {
                "count": 1368,
                "value": "WFS_SRVC"
            },
            {
                "count": 929,
                "value": "KML"
            }
        ],
        "countries": [
            {
                "count": 9445,
                "value": "de"
            },
            {
                "count": 3881,
                "value": "eu"
            },
            {
                "count": 2322,
                "value": "es"
            },
            {
                "count": 1877,
                "value": "fr"
            },
            {
                "count": 1374,
                "value": "gb"
            },
            {
                "count": 1271,
                "value": "nl"
            },
            {
                "count": 967,
                "value": "se"
            },
            {
                "count": 943,
                "value": "ie"
            },
            {
                "count": 844,
                "value": "at"
            },
            {
                "count": 749,
                "value": "it"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-01T08:13:19.763Z",
        "request_id": "62759f5e-8781-47c5-8c10-6a57168f106a"
    },
    "status": "ok",
    "message": "Facets retrieved",
    "success": true
}