Ir al contenido
GET /v1/history

A currency's official daily peso rate over a date range

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/bcra-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/bcra-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bcra-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bcra-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/bcra-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-06-09",
        "base": "ARS",
        "from": "2026-06-01",
        "count": 7,
        "source": "Banco Central de la República Argentina",
        "history": [
            {
                "date": "2026-06-01",
                "usd_parity": 0,
                "ars_per_unit": 1426
            },
            {
                "date": "2026-06-02",
                "usd_parity": 0,
                "ars_per_unit": 1427
            },
            {
                "date": "2026-06-03",
                "usd_parity": 0,
                "ars_per_unit": 1438.5
            },
            {
                "date": "2026-06-04",
                "usd_parity": 0,
                "ars_per_unit": 1436.5
            },
            {
                "date": "2026-06-05",
                "usd_parity": 0,
                "ars_per_unit": 1440.5
            },
            {
                "date": "2026-06-08",
                "usd_parity": 0,
                "ars_per_unit": 1446.5
            },
            {
                "date": "2026-06-09",
                "usd_parity": 0,
                "ars_per_unit": 1441
            }
        ],
        "currency": "USD"
    },
    "meta": {
        "timestamp": "2026-06-10T13:59:39.323Z",
        "request_id": "d1a5d843-2500-41a1-9e8b-81fce524831f"
    },
    "status": "ok",
    "message": "History retrieved successfully",
    "success": true
}