Zum Inhalt springen
GET /v1/history

A currency official rate on a specific past date

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "base": "TJS",
        "date": "2026-05-15",
        "name": "US Dollar",
        "source": "National Bank of Tajikistan",
        "nominal": 1,
        "currency": "USD",
        "tjs_per_unit": 9.352,
        "unit_per_tjs": 0.106929
    },
    "meta": {
        "timestamp": "2026-06-10T13:59:54.915Z",
        "request_id": "1b6910df-f8fe-4895-92ac-635455f03132"
    },
    "status": "ok",
    "message": "History retrieved successfully",
    "success": true
}