Zum Inhalt springen
GET /v1/meta

Service metadata

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "service": "unitcodes-api",
        "endpoints": {
            "GET /v1/code": "Unit by UN/ECE common code (code=, e.g. KGM).",
            "GET /v1/list": "List unit codes (status=active|deprecated, limit, offset).",
            "GET /v1/meta": "This document.",
            "GET /v1/search": "Search by code, name or symbol (q=, e.g. metre).",
            "GET /v1/symbol": "Codes for a unit symbol (symbol=, e.g. kg)."
        },
        "description": "UN/ECE Recommendation 20 units-of-measure codes for trade, invoicing and EDI: 2–3 character common code, name, symbol, description and status. Look up a code, reverse-look-up from a symbol, search, or list. Distinct from unit-api (conversion maths). No key.",
        "total_codes": 2136,
        "active_codes": 1755,
        "deprecated_codes": 381
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:03.896Z",
        "request_id": "a6ef240a-1d6f-40cb-b1c5-b7e612bdd83b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}