Ir al contenido

Cotización múltiple

POST /v1/quotes cotiza varios hoteles en una sola llamada. Se cobra por hotel: un lote de 20 cuesta 20 veces lo que cuesta uno solo — el beneficio es la latencia, no el precio.

hotels acepta entre 1 y 200 elementos — el techo físico del lote. Cada elemento es, a tu elección:

  • un entero (abreviatura de {"hotel_id": <entero>}), o
  • un objeto con hotel_id o hotel_ref o name (más city/lat/lon/country/phone opcionales, igual que en cotización simple).

Tu plan puede limitar cuántos hoteles puedes pedir por llamada por debajo de ese techo — consulta tu plan. Además, para un cliente con timeout HTTP de 60 segundos, el rango práctico recomendado es de 25 a 50 hoteles por llamada: la velocidad depende de qué tan rápido respondan las fuentes, no de nuestro límite — un lote más grande no es más rápido si la fuente ya es el cuello de botella.

Junto a hotels/checkin/checkout/adults, el cuerpo acepta los mismos parámetros opcionales que cotización simple:

Parámetro Por defecto Descripción
rooms 1 Habitaciones.
children — Edades de los menores, como arreglo de enteros (0 a 17 cada uno) — aquí SÍ es un arreglo JSON, no una cadena separada por comas como en GET.
currency USD —
market mx Punto de venta.
max_age 300 Antigüedad de caché aceptable, en segundos.
Ventana de terminal
curl -X POST "https://api.rateshooter.com/v1/quotes" \
-H "Authorization: Bearer <tu_api_key>" \
-H "Content-Type: application/json" \
-d '{
"hotels": [2008, 13983],
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"adults": 2
}'
200 OK — dos hoteles por id
{
"stay": {
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"nights": 1,
"adults": 2,
"rooms": 1,
"children": [],
"currency": "USD"
},
"results": [
{
"status": "ok",
"hotel": {
"resolved_name": "Grand Oasis Cancun",
"hotel_id": 2008
},
"offers": [
{
"vendor": "The Grand Oasis Cancun - All Inclusive",
"price_per_night": 244.62436,
"total_price": 244.62436,
"taxes_included": true
},
{
"vendor": "Super.com",
"price_per_night": 185.50781,
"total_price": 185.50781,
"taxes_included": true
},
{
"vendor": "trivago DEALS",
"price_per_night": 194.74443,
"total_price": 194.74443,
"taxes_included": true
},
{
"vendor": "klook",
"price_per_night": 189.70154,
"total_price": 189.70154,
"taxes_included": true
},
{
"vendor": "Traveluro",
"price_per_night": 192.82333,
"total_price": 192.82333,
"taxes_included": true
},
{
"vendor": "goseek.com",
"price_per_night": 203.48438,
"total_price": 203.48438,
"taxes_included": true
},
{
"vendor": "Billabook.com",
"price_per_night": 210,
"total_price": 210,
"taxes_included": true
},
{
"vendor": "Expedia.mx",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Despegar",
"price_per_night": 301.375,
"total_price": 301.375,
"taxes_included": true
},
{
"vendor": "Priceline",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Booking.com",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Evendo",
"price_per_night": 230.56097,
"total_price": 230.56097,
"taxes_included": true
},
{
"vendor": "Hoteles.com",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Agoda",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Qantas Hotels",
"price_per_night": 302.14362,
"total_price": 302.14362,
"taxes_included": true
},
{
"vendor": "Central de Reservas",
"price_per_night": 245.76666,
"total_price": 245.76666,
"taxes_included": true
},
{
"vendor": "Hotel prive",
"price_per_night": 292.5,
"total_price": 292.5,
"taxes_included": true
},
{
"vendor": "HomeToGo",
"price_per_night": 254.875,
"total_price": 254.875,
"taxes_included": true
},
{
"vendor": "Trip.com",
"price_per_night": 310.22986,
"total_price": 310.22986,
"taxes_included": true
},
{
"vendor": "Closest Hotel",
"price_per_night": 302.875,
"total_price": 302.875,
"taxes_included": true
}
],
"meta": {
"offers_count": 20,
"billable": true
}
},
{
"status": "ok",
"hotel": {
"resolved_name": "Iberostar Selection Cancún",
"hotel_id": 13983
},
"offers": [
{
"vendor": "Iberostar Selection Cancún",
"price_per_night": 346.34998,
"total_price": 346.34998,
"taxes_included": true
},
{
"vendor": "Super.com",
"price_per_night": 285.87473,
"total_price": 285.87473,
"taxes_included": true
},
{
"vendor": "Billabook.com",
"price_per_night": 293,
"total_price": 293,
"taxes_included": true
},
{
"vendor": "trivago DEALS",
"price_per_night": 314.18182,
"total_price": 314.18182,
"taxes_included": true
},
{
"vendor": "Despegar",
"price_per_night": 328.42,
"total_price": 328.42,
"taxes_included": true
},
{
"vendor": "Central de Reservas",
"price_per_night": 314.3688,
"total_price": 314.3688,
"taxes_included": true
},
{
"vendor": "Evendo",
"price_per_night": 308.90814,
"total_price": 308.90814,
"taxes_included": true
},
{
"vendor": "Stayforlong.com",
"price_per_night": 310.8007,
"total_price": 310.8007,
"taxes_included": true
},
{
"vendor": "Expedia.mx",
"price_per_night": 371.79117,
"total_price": 371.79117,
"taxes_included": true
},
{
"vendor": "Booking.com",
"price_per_night": 384.34,
"total_price": 384.34,
"taxes_included": true
},
{
"vendor": "Clicktrip.com",
"price_per_night": 319.06705,
"total_price": 319.06705,
"taxes_included": true
},
{
"vendor": "Priceline",
"price_per_night": 384.34,
"total_price": 384.34,
"taxes_included": true
},
{
"vendor": "goseek.com",
"price_per_night": 324.334,
"total_price": 324.334,
"taxes_included": true
},
{
"vendor": "Hoteles.com",
"price_per_night": 371.79117,
"total_price": 371.79117,
"taxes_included": true
},
{
"vendor": "Bluepillow.mx",
"price_per_night": 325.93347,
"total_price": 325.93347,
"taxes_included": true
},
{
"vendor": "ZenHotels.com",
"price_per_night": 338.0803,
"total_price": 338.0803,
"taxes_included": true
},
{
"vendor": "Agoda",
"price_per_night": 609,
"total_price": 609,
"taxes_included": true
},
{
"vendor": "Etrip.net",
"price_per_night": 324.3351,
"total_price": 324.3351,
"taxes_included": true
},
{
"vendor": "Tripening Hotels",
"price_per_night": 444.02,
"total_price": 444.02,
"taxes_included": true
},
{
"vendor": "Amimir.com",
"price_per_night": 370.63593,
"total_price": 370.63593,
"taxes_included": true
},
{
"vendor": "HomeToGo",
"price_per_night": 328.57812,
"total_price": 328.57812,
"taxes_included": true
},
{
"vendor": "BusinessHotels.com",
"price_per_night": 387.64062,
"total_price": 387.64062,
"taxes_included": true
},
{
"vendor": "Closest Hotel",
"price_per_night": 372.93,
"total_price": 372.93,
"taxes_included": true
}
],
"meta": {
"offers_count": 23,
"billable": true
}
}
]
}

Un entero y un objeto {hotel_id} para el mismo hotel resuelven exactamente igual — es la misma forma corta y larga de decir lo mismo:

Ventana de terminal
curl -X POST "https://api.rateshooter.com/v1/quotes" \
-H "Authorization: Bearer <tu_api_key>" \
-H "Content-Type: application/json" \
-d '{
"hotels": [2008, {"hotel_id": 2008}],
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"adults": 2
}'
200 OK — mismo hotel, dos formas de pedirlo
{
"stay": {
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"nights": 1,
"adults": 2,
"rooms": 1,
"children": [],
"currency": "USD"
},
"results": [
{
"status": "ok",
"hotel": {
"resolved_name": "Grand Oasis Cancun",
"hotel_id": 2008
},
"offers": [
{
"vendor": "The Grand Oasis Cancun - All Inclusive",
"price_per_night": 244.62436,
"total_price": 244.62436,
"taxes_included": true
},
{
"vendor": "Super.com",
"price_per_night": 185.50781,
"total_price": 185.50781,
"taxes_included": true
},
{
"vendor": "trivago DEALS",
"price_per_night": 194.74443,
"total_price": 194.74443,
"taxes_included": true
},
{
"vendor": "klook",
"price_per_night": 189.70154,
"total_price": 189.70154,
"taxes_included": true
},
{
"vendor": "Traveluro",
"price_per_night": 192.82333,
"total_price": 192.82333,
"taxes_included": true
},
{
"vendor": "goseek.com",
"price_per_night": 203.48438,
"total_price": 203.48438,
"taxes_included": true
},
{
"vendor": "Billabook.com",
"price_per_night": 210,
"total_price": 210,
"taxes_included": true
},
{
"vendor": "Expedia.mx",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Despegar",
"price_per_night": 301.375,
"total_price": 301.375,
"taxes_included": true
},
{
"vendor": "Priceline",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Booking.com",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Evendo",
"price_per_night": 230.56097,
"total_price": 230.56097,
"taxes_included": true
},
{
"vendor": "Hoteles.com",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Agoda",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Qantas Hotels",
"price_per_night": 302.14362,
"total_price": 302.14362,
"taxes_included": true
},
{
"vendor": "Central de Reservas",
"price_per_night": 245.76666,
"total_price": 245.76666,
"taxes_included": true
},
{
"vendor": "Hotel prive",
"price_per_night": 292.5,
"total_price": 292.5,
"taxes_included": true
},
{
"vendor": "HomeToGo",
"price_per_night": 254.875,
"total_price": 254.875,
"taxes_included": true
},
{
"vendor": "Trip.com",
"price_per_night": 310.22986,
"total_price": 310.22986,
"taxes_included": true
},
{
"vendor": "Closest Hotel",
"price_per_night": 302.875,
"total_price": 302.875,
"taxes_included": true
}
],
"meta": {
"offers_count": 20,
"billable": true
}
},
{
"status": "ok",
"hotel": {
"resolved_name": "Grand Oasis Cancun",
"hotel_id": 2008
},
"offers": [
{
"vendor": "The Grand Oasis Cancun - All Inclusive",
"price_per_night": 244.62436,
"total_price": 244.62436,
"taxes_included": true
},
{
"vendor": "Super.com",
"price_per_night": 185.50781,
"total_price": 185.50781,
"taxes_included": true
},
{
"vendor": "trivago DEALS",
"price_per_night": 194.74443,
"total_price": 194.74443,
"taxes_included": true
},
{
"vendor": "klook",
"price_per_night": 189.70154,
"total_price": 189.70154,
"taxes_included": true
},
{
"vendor": "Traveluro",
"price_per_night": 192.82333,
"total_price": 192.82333,
"taxes_included": true
},
{
"vendor": "goseek.com",
"price_per_night": 203.48438,
"total_price": 203.48438,
"taxes_included": true
},
{
"vendor": "Billabook.com",
"price_per_night": 210,
"total_price": 210,
"taxes_included": true
},
{
"vendor": "Expedia.mx",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Despegar",
"price_per_night": 301.375,
"total_price": 301.375,
"taxes_included": true
},
{
"vendor": "Priceline",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Booking.com",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Evendo",
"price_per_night": 230.56097,
"total_price": 230.56097,
"taxes_included": true
},
{
"vendor": "Hoteles.com",
"price_per_night": 301.96912,
"total_price": 301.96912,
"taxes_included": true
},
{
"vendor": "Agoda",
"price_per_night": 297.90625,
"total_price": 297.90625,
"taxes_included": true
},
{
"vendor": "Qantas Hotels",
"price_per_night": 302.14362,
"total_price": 302.14362,
"taxes_included": true
},
{
"vendor": "Central de Reservas",
"price_per_night": 245.76666,
"total_price": 245.76666,
"taxes_included": true
},
{
"vendor": "Hotel prive",
"price_per_night": 292.5,
"total_price": 292.5,
"taxes_included": true
},
{
"vendor": "HomeToGo",
"price_per_night": 254.875,
"total_price": 254.875,
"taxes_included": true
},
{
"vendor": "Trip.com",
"price_per_night": 310.22986,
"total_price": 310.22986,
"taxes_included": true
},
{
"vendor": "Closest Hotel",
"price_per_night": 302.875,
"total_price": 302.875,
"taxes_included": true
}
],
"meta": {
"offers_count": 20,
"billable": true
}
}
]
}
  • stay: la estancia normalizada, en la raíz de la respuesta — no se repite dentro de cada resultado.
  • results: un elemento por hotel pedido, en el mismo orden, cada uno con su propio status (no todo el lote falla porque un hotel no se pudo cotizar).
  • X-HotelQuotes-Charged en los headers suma el total de hoteles cobrados en este request.
400 Bad Request
{ "hotels": [2008, { "hotel_id": 0.5 }], "checkin": "2026-12-10", "checkout": "2026-12-11", "adults": 2 }
400 — hotels[1].hotel_id inválido
{
"status": "bad_request",
"error": "hotels.1.hotel_id must not be less than 1; hotels.1.hotel_id must be an integer number"
}

Todo el request se rechaza: un hotel_id inválido en cualquier posición invalida el lote completo, antes de cotizar nada.