Skip to content

Batch quote

POST /v1/quotes quotes several hotels in a single call. It’s charged per hotel: a batch of 20 costs 20 times what one alone costs — the benefit is latency, not price.

hotels accepts between 1 and 200 elements — the batch’s physical ceiling. Each element is, your choice:

  • an integer (shorthand for {"hotel_id": <integer>}), or
  • an object with hotel_id or hotel_ref or name (plus optional city/lat/lon/country/phone, same as in simple quote).

Your plan may cap how many hotels you can request per call below that ceiling — check your plan. Also, for a client with a 60-second HTTP timeout, the practical recommended range is 25 to 50 hotels per call: speed depends on how fast the sources respond, not on our limit — a bigger batch isn’t faster if the source is already the bottleneck.

Alongside hotels/checkin/checkout/adults, the body accepts the same optional parameters as simple quote:

Parameter Default Description
rooms 1 Rooms.
children — Ages of the minors, as an array of integers (0 to 17 each) — here it IS a JSON array, not a comma-separated string like in GET.
currency USD —
market mx Point of sale.
max_age 300 Acceptable cache age, in seconds.
Ventana de terminal
curl -X POST "https://api.rateshooter.com/v1/quotes" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"hotels": [2008, 13983],
"checkin": "2026-12-10",
"checkout": "2026-12-11",
"adults": 2
}'
200 OK — two hotels by 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
}
}
]
}

An integer and an {hotel_id} object for the same hotel resolve exactly the same way — it’s the short and long form of saying the same thing:

Ventana de terminal
curl -X POST "https://api.rateshooter.com/v1/quotes" \
-H "Authorization: Bearer <your_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 — same hotel, two ways to ask for it
{
"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: the normalized stay, at the root of the response — it is not repeated inside each result.
  • results: one element per hotel requested, in the same order, each with its own status (the whole batch doesn’t fail because one hotel couldn’t be quoted).
  • X-HotelQuotes-Charged in the headers sums the total hotels charged in this 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 invalid
{
"status": "bad_request",
"error": "hotels.1.hotel_id must not be less than 1; hotels.1.hotel_id must be an integer number"
}

The whole request is rejected: an invalid hotel_id anywhere invalidates the entire batch, before quoting anything.