Aller au contenu
GET /v1/meta

Spec

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/cnb-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/cnb-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cnb-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cnb-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/cnb-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": {
        "source": "Česká národní banka cnbapi (live)",
        "service": "cnb-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/rates": "The CNB daily fixing — all currencies vs CZK (date=YYYY-MM-DD for a past day).",
            "GET /v1/convert": "Convert between any two currencies via CZK (from=USD&to=EUR&amount=100&date=).",
            "GET /v1/history": "A currency's official rate over recent working days (code=USD&days=7).",
            "GET /v1/currency": "One currency's rate (code=USD, date= optional)."
        },
        "description": "Live official Czech foreign-exchange fixing from the Czech National Bank's open API: the whole daily fixing of ~30 world currencies against the koruna (CZK), queryable for any past working day by date; one currency's rate normalised to the koruna value of a single unit; currency conversion between any two currencies crossed through the koruna, on the latest or a historical date; and a currency's official rate over recent working days. Live, no key, nothing stored. Distinct from the ECB, Fed, Bank of Canada, Norges Bank, Bank of England, Brazil and Poland central-bank APIs — this is the koruna and the CNB daily fixing, queryable by date.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:20.660Z",
        "request_id": "4edd7740-6eaa-486f-bb3f-f8e1f7365bba"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}