Naar de inhoud
GET /v1/rates

HNB official rate for every currency vs the euro

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/hnb-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "base": "EUR",
        "date": "2026-06-10",
        "note": "units of the listed currency per 1 EUR",
        "count": 13,
        "rates": [
            {
                "buy": 1.6416,
                "mid": 1.6391,
                "date": "2026-06-10",
                "sell": 1.6366,
                "country": "Australija",
                "currency": "AUD",
                "country_iso": "AUS",
                "code_numeric": 36
            },
            {
                "buy": 1.95876,
                "mid": 1.95583,
                "date": "2026-06-10",
                "sell": 1.9529,
                "country": "Bosna i Hercegovina",
                "currency": "BAM",
                "country_iso": "BIH",
                "code_numeric": 977
            },
            {
                "buy": 1.6135,
                "mid": 1.6111,
                "date": "2026-06-10",
                "sell": 1.6087,
                "country": "Kanada",
                "currency": "CAD",
                "country_iso": "CAN",
                "code_numeric": 124
            },
            {
                "buy": 0.922,
                "mid": 0.9206,
                "date": "2026-06-10",
                "sell": 0.9192,
                "country": "Švicarska",
                "currency": "CHF",
                "country_iso": "CHE",
                "code_numeric": 756
            },
            {
                "buy": 24.204,
                "mid": 24.168,
                "date": "2026-06-10",
                "sell": 24.132,
                "country": "Češka",
                "currency": "CZK",
                "country_iso": "CZE",
                "code_numeric": 203
            },
            {
                "buy": 7.4854,
                "mid": 7.4742,
                "date": "2026-06-10",
                "sell": 7.463,
                "country": "Danska",
                "currency": "DKK",
                "country_iso": "DNK",
                "code_numeric": 208
            },
            {
                "buy": 0.8647,
                "mid": 0.8634,
                "date": "2026-06-10",
                "sell": 0.8621,
                "country": "Velika Britanija",
                "currency": "GBP",
                "country_iso": "GBR",
                "code_numeric": 826
            },
            {
                "buy": 355.86,
                "mid": 355.33,
                "date": "2026-06-10",
                "sell": 354.8,
                "country": "Mađarska",
                "currency": "HUF",
                "country_iso": "HUN",
                "code_numeric": 348
            },
            {
                "buy": 185.63,
                "mid": 185.35,
                "date": "2026-06-10",
                "sell": 185.07,
                "country": "Japan",
                "currency": "JPY",
                "country_iso": "JPN",
                "code_numeric": 392
            },
            {
                "buy": 10.95
…