Zum Inhalt springen
GET /v1/history

Daily time series of a currency official rate

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "to": "2026-05-31",
        "base": "UAH",
        "from": "2026-05-01",
        "name": "US Dollar",
        "count": 31,
        "source": "National Bank of Ukraine",
        "currency": "USD",
        "observations": [
            {
                "date": "2026-05-31",
                "uah_per_unit": 44.2653
            },
            {
                "date": "2026-05-30",
                "uah_per_unit": 44.2653
            },
            {
                "date": "2026-05-29",
                "uah_per_unit": 44.2653
            },
            {
                "date": "2026-05-28",
                "uah_per_unit": 44.2996
            },
            {
                "date": "2026-05-27",
                "uah_per_unit": 44.2767
            },
            {
                "date": "2026-05-26",
                "uah_per_unit": 44.2447
            },
            {
                "date": "2026-05-25",
                "uah_per_unit": 44.2619
            },
            {
                "date": "2026-05-24",
                "uah_per_unit": 44.2341
            },
            {
                "date": "2026-05-23",
                "uah_per_unit": 44.2341
            },
            {
                "date": "2026-05-22",
                "uah_per_unit": 44.2341
            },
            {
                "date": "2026-05-21",
                "uah_per_unit": 44.2271
            },
            {
                "date": "2026-05-20",
                "uah_per_unit": 44.153
            },
            {
                "date": "2026-05-19",
                "uah_per_unit": 44.1591
            },
            {
                "date": "2026-05-18",
                "uah_per_unit": 44.0724
            },
            {
                "date": "2026-05-17",
                "uah_per_unit": 43.9569
            },
            {
                "date": "2026-05-16",
                "uah_per_unit": 43.9569
            },
            {
                "date": "2026-05-15",
                "uah_per_unit": 43.9569
            },
            {
                "date": "2026-05-14",
                "uah_per_unit": 43.9694
            },
            {
                "date": "2026-05-13",
                "uah_per_unit": 43.9709
            },
            {
                "date": "2026-05-12",
                "uah_per_unit": 43.9584
            },
            {
                "date": "2026-05-11",
                "uah_per_unit": 43.855
            },
            {
                "date": "2026-05-10",
                "uah_per_unit": 43.8033
            },
            {
                "date": "2026-05-09",
                "uah_per_unit": 43.8033
            },
            {
                "date": "2026-05-08",
                "uah_per_unit": 43.8033
            },
            {
                "date": "2026-05-07",
                "uah_per_unit": 43.8528
            },
            {
                "date": "2026-05-06",
                "uah_per_unit
…