/v1/sonia
SONIA overnight benchmark
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/boe-api/v1/sonia" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boe-api/v1/sonia", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boe-api/v1/sonia");
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/boe-api/v1/sonia",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"date": "2026-06-05",
"name": "SONIA — Sterling Overnight Index Average",
"source": "Bank of England",
"history": [
{
"date": "2026-05-22",
"rate_pct": 3.7301
},
{
"date": "2026-05-26",
"rate_pct": 3.729
},
{
"date": "2026-05-27",
"rate_pct": 3.729
},
{
"date": "2026-05-28",
"rate_pct": 3.7295
},
{
"date": "2026-05-29",
"rate_pct": 3.7302
},
{
"date": "2026-06-01",
"rate_pct": 3.7291
},
{
"date": "2026-06-02",
"rate_pct": 3.7308
},
{
"date": "2026-06-03",
"rate_pct": 3.7306
},
{
"date": "2026-06-04",
"rate_pct": 3.7308
},
{
"date": "2026-06-05",
"rate_pct": 3.7312
}
],
"rate_pct": 3.7312
},
"meta": {
"timestamp": "2026-06-09T11:38:48.345Z",
"request_id": "f27a2be1-3d38-448b-b7f4-f6947584b372"
},
"status": "ok",
"message": "SONIA retrieved successfully",
"success": true
}