Naar de inhoud
GET /v1/latest

Latest official BAM rates (all or selected)

Probeer het live

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

Aangepaste headers (optioneel)
api.oanor.com/bosnia-fx-api

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "base": "BAM",
        "date": "2026-06-13",
        "count": 3,
        "rates": [
            {
                "buy": 1.95583,
                "iso": "EUR",
                "sell": 1.95583,
                "units": 1,
                "middle": 1.95583,
                "country": "EMU",
                "per_unit_bam": 1.95583
            },
            {
                "buy": 2.260519,
                "iso": "GBP",
                "sell": 2.271849,
                "units": 1,
                "middle": 2.266184,
                "country": "G.Britain",
                "per_unit_bam": 2.266184
            },
            {
                "buy": 1.686644,
                "iso": "USD",
                "sell": 1.695098,
                "units": 1,
                "middle": 1.690871,
                "country": "USA",
                "per_unit_bam": 1.690871
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:32.002Z",
        "request_id": "34ec0637-f76d-45e8-b5f8-a59cb6166c7a"
    },
    "status": "ok",
    "message": "Latest rates retrieved successfully",
    "success": true
}