/v1/history
Daily time series of a currency official rate
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/nbu-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nbu-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nbu-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/nbu-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"to": "2026-05-31",
"base": "UAH",
"from": "2026-05-01",
"name": "US Dollar",
"count": 31,
"source": "National Bank of Ukraine",
"currency": "USD",
"observations": [
{
"date": "2026-05-31",
"uah_per_unit": 44.2653
},
{
"date": "2026-05-30",
"uah_per_unit": 44.2653
},
{
"date": "2026-05-29",
"uah_per_unit": 44.2653
},
{
"date": "2026-05-28",
"uah_per_unit": 44.2996
},
{
"date": "2026-05-27",
"uah_per_unit": 44.2767
},
{
"date": "2026-05-26",
"uah_per_unit": 44.2447
},
{
"date": "2026-05-25",
"uah_per_unit": 44.2619
},
{
"date": "2026-05-24",
"uah_per_unit": 44.2341
},
{
"date": "2026-05-23",
"uah_per_unit": 44.2341
},
{
"date": "2026-05-22",
"uah_per_unit": 44.2341
},
{
"date": "2026-05-21",
"uah_per_unit": 44.2271
},
{
"date": "2026-05-20",
"uah_per_unit": 44.153
},
{
"date": "2026-05-19",
"uah_per_unit": 44.1591
},
{
"date": "2026-05-18",
"uah_per_unit": 44.0724
},
{
"date": "2026-05-17",
"uah_per_unit": 43.9569
},
{
"date": "2026-05-16",
"uah_per_unit": 43.9569
},
{
"date": "2026-05-15",
"uah_per_unit": 43.9569
},
{
"date": "2026-05-14",
"uah_per_unit": 43.9694
},
{
"date": "2026-05-13",
"uah_per_unit": 43.9709
},
{
"date": "2026-05-12",
"uah_per_unit": 43.9584
},
{
"date": "2026-05-11",
"uah_per_unit": 43.855
},
{
"date": "2026-05-10",
"uah_per_unit": 43.8033
},
{
"date": "2026-05-09",
"uah_per_unit": 43.8033
},
{
"date": "2026-05-08",
"uah_per_unit": 43.8033
},
{
"date": "2026-05-07",
"uah_per_unit": 43.8528
},
{
"date": "2026-05-06",
"uah_per_unit
…