Aller au contenu
GET /v1/meta

Service metadata

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/unitcodes-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}