/v1/history
A currency official rate on a specific past date
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/hnb-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hnb-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hnb-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/hnb-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"base": "EUR",
"date": "2026-05-15",
"source": "Croatian National Bank",
"currency": "USD",
"buy_per_eur": 1.172,
"mid_per_eur": 1.1702,
"eur_per_unit": 0.85455478,
"sell_per_eur": 1.1684
},
"meta": {
"timestamp": "2026-06-10T14:01:42.177Z",
"request_id": "75ddb5db-be7a-4135-ac19-2c85b8203387"
},
"status": "ok",
"message": "History retrieved successfully",
"success": true
}