/v1/history
A currency rate over recent days
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/cnb-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cnb-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cnb-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/cnb-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"base": "CZK",
"code": "USD",
"count": 4,
"source": "Česká národní banka",
"history": [
{
"date": "2026-06-03",
"unit_rate": 20.829
},
{
"date": "2026-06-04",
"unit_rate": 20.81
},
{
"date": "2026-06-05",
"unit_rate": 20.759
},
{
"date": "2026-06-08",
"unit_rate": 21.01
}
]
},
"meta": {
"timestamp": "2026-06-09T11:38:20.388Z",
"request_id": "0f4b171d-0795-4f15-bc97-6e191fedc1db"
},
"status": "ok",
"message": "History retrieved successfully",
"success": true
}