Zum Inhalt springen
GET /v1/facets

Discovery facets for a query

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/eudata-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}