Vai al contenuto
GET /v1/currency

One currency official rate

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/nbkz-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "bank": "National Bank of Kazakhstan",
        "base": "KZT",
        "code": "USD",
        "date": "01.06.2026",
        "name": "US Dollar",
        "rate": 485.95,
        "trend": "flat",
        "change": 0,
        "source": "NBK",
        "nominal": 1,
        "name_local": "ДОЛЛАР США"
    },
    "meta": {
        "timestamp": "2026-06-11T16:46:54.551Z",
        "request_id": "b0caa06e-376a-4ab3-b10f-f934840e0101"
    },
    "status": "ok",
    "message": "Currency retrieved successfully",
    "success": true
}