API — Cotizaciones
Acceso gratuito a los datos de Precio Blue · JSON · cuando hay operatoria, con latencia de hasta 5 minutos
Cotizaciones actuales
Devuelve la cotización actual del dólar blue, oficial y euro en pesos argentinos. Sin autenticación. Sin rate limit declarado — por favor hacé uso responsable.
Respuesta actual de /api/cotizaciones (no es un ejemplo histórico).
{
"blue": {
"value_avg": 1531,
"value_sell": 1548,
"value_buy": 1514
},
"oficial": {
"value_avg": 1508.5,
"value_sell": 1535,
"value_buy": 1482
},
"oficial_euro": {
"value_avg": 1640,
"value_sell": 1669,
"value_buy": 1611
},
"blue_euro": {
"value_avg": 1664,
"value_sell": 1682,
"value_buy": 1646
},
"mep": {
"value_buy": 1536.9,
"value_sell": 1536.9
},
"ccl": {
"value_buy": 1620.5,
"value_sell": 1620.5
},
"tarjeta": {
"value_sell": 1996
},
"last_update": "2026-10-15T11:45:57.277853-03:00"
}Histórico de cotizaciones
Devuelve la serie histórica de cotizaciones para un tipo de cambio en un período.
| Parámetro | Valores | Descripción |
|---|---|---|
| historico | blue · oficial · euro | Tipo de cotización a consultar |
| dias | 7 (default) · 30 · 90… | Cantidad de días hacia atrás |
Ejemplo ilustrativo de forma (no es una serie histórica real).
[
{
"venta": 1540,
"fecha": "2026-09-11T10:00:00.000Z"
},
{
"venta": 1545,
"fecha": "2026-09-11T18:00:00.000Z"
},
{
"venta": 1538,
"fecha": "2026-09-10T18:00:00.000Z"
}
]Campos — cotizaciones actuales
| Campo | Tipo | Descripción |
|---|---|---|
| blue.value_buy | number | Precio de compra del dólar blue (ARS) |
| blue.value_sell | number | Precio de venta del dólar blue (ARS) |
| oficial.value_buy | number | Precio de compra del dólar oficial BCRA (ARS) |
| oficial.value_sell | number | Precio de venta del dólar oficial BCRA (ARS) |
| oficial_euro.value_buy | number | Precio de compra del euro oficial BCRA (ARS) |
| oficial_euro.value_sell | number | Precio de venta del euro oficial BCRA (ARS) |
| blue_euro.value_buy | number | Precio de compra del euro blue (ARS) |
| blue_euro.value_sell | number | Precio de venta del euro blue (ARS) |
| mep.value_sell | number|null | Precio de venta del dólar MEP (ARS) |
| ccl.value_sell | number|null | Precio de venta del dólar CCL (ARS) |
| tarjeta.value_sell | number | Dólar tarjeta (oficial × 1,30) |
| last_update | string | Fecha y hora de última actualización (UTC, ISO 8601) |
Ejemplos de uso
JavaScript / fetch
const res = await fetch('https://precioblue.com/api/cotizaciones')
const data = await res.json()
console.log('Dólar blue venta:', data.blue.value_sell)
// Histórico últimos 30 días
const hist = await fetch('https://precioblue.com/api/cotizaciones?historico=blue&dias=30')
const serie = await hist.json() // [{ venta, fecha }, ...]Python / requests
import requests
r = requests.get('https://precioblue.com/api/cotizaciones')
data = r.json()
print('Dólar blue venta:', data['blue']['value_sell'])
# Histórico
hist = requests.get('https://precioblue.com/api/cotizaciones', params={'historico': 'blue', 'dias': 30})
serie = hist.json() # [{'venta': ..., 'fecha': ...}, ...]cURL
curl https://precioblue.com/api/cotizaciones curl "https://precioblue.com/api/cotizaciones?historico=blue&dias=7"
Widget embebible
Insertá el precio del dólar blue en cualquier página web. Hay tema claro/oscuro y tres formatos. El widget se actualiza cada 60 segundos. Generar código en el constructor.
<iframe src="https://precioblue.com/embed" title="Dólar blue — Precio Blue" loading="lazy" style="width:320px;height:176px;border:0;border-radius:12px"></iframe>
Alternativa con script (ajusta la altura solo): <script src="https://precioblue.com/widget.js" async></script>
Feed RSS
Suscribite al feed RSS para recibir el resumen diario del dólar blue en tu lector de noticias o para integrarlo en tu aplicación.
Fuente de datos
Los datos provienen de Bluelytics, un agregador público de cotizaciones del mercado cambiario argentino. Consultamos la fuente con un intervalo de 5 minutos; si no hay operatoria, last_update queda en el último tick. Los datos son informativos y no constituyen asesoramiento financiero.
La API es gratuita y está pensada para proyectos personales o de bajo volumen. Para consultas escribinos a través de precioblue.com.