Skip to Content

Rooms and rates

One hotel's every room and rate for a stay

GET
/v1/hotels/rates/{hotel_id}

Authorization

apiKey
headerX-API-Key<token>

vl_live_... for live prices, vl_test_... for saved samples at no cost. Authorization: Bearer is also read.

Path Parameters

hotel_id*string

A hotel's id from a search, such as lp19b5e.

Query Parameters

check_in*string

First night, YYYY-MM-DD. Not before yesterday, at most 500 days ahead.

Formatdate
check_out*string

Departure day, YYYY-MM-DD. 1 to 30 nights after check_in.

Formatdate
adults?integer

Adults in the one room. Use rooms for more than one room.

Range1 <= value <= 8
Default2
child_ages?string

Each child's age in the one room, comma-separated, such as 7,4.

rooms?string

More than one room: a JSON list such as [{"adults":2,"child_ages":[7]},{"adults":1}]. Not with adults or child_ages.

currency?string

3-letter currency of the prices.

Default"USD"
nationality?string

The guests' 2-letter country code. Some rates depend on it.

Default"US"
response_mode?string

complete waits for the supplier. partial answers at once; read the rest by search_id.

Default"complete"
Value in"complete""partial"
wait_ms?integer

Exactly how long to wait for a running search.

Range0 <= value <= 30000
max_age_s?integer

The oldest stored answer to accept, in seconds. 0 forces a new search. A stored answer is never reused past 900 seconds, so a larger value is read as 900.

Range0 <= value <= 86400

Response Body

The hotel with all its offers, cheapest first. hotels is empty when it has no rooms for the stay.

application/json
  1. response
data*
meta*
Example Request
curl -X GET 'https://api.voyagelabs.ai/v1/hotels/rates/string?check_in=2019-08-24&check_out=2019-08-24' \  -H 'X-API-Key: '
Example Response
{  "data": {    "search_id": "string",    "status": "complete",    "retry_after_ms": 0,    "query": {},    "pricing": {      "priced_at": "2019-08-24T14:15:22Z",      "age_s": 0    },    "counts": {      "found": 0,      "returned": 0    },    "next_cursor": "string",    "hotels": [      {        "hotel": {          "id": "string",          "name": "string",          "stars": 0,          "rating": 0,          "review_count": 0,          "address": "string",          "city": "string",          "country": "string",          "latitude": 0,          "longitude": 0,          "photo": "string"        },        "offers": [          {            "rooms": [              {                "name": "string",                "room_id": 0,                "adults": 0,                "child_ages": [                  0                ]              }            ],            "board_code": "string",            "board": "string",            "total": 0,            "currency": "string",            "per_night": 0,            "taxes_included": 0,            "due_at_property": [              {                "description": "string",                "amount": 0,                "currency": "string"              }            ],            "refundable": true,            "free_cancellation_until": "string",            "cancellation": [              {                "from": "string",                "charge": {                  "amount": 0,                  "currency": "string"                }              }            ]          }        ],        "booking_links": [          {            "site": "hotels_com",            "name": "string",            "url": "string",            "lands_on": "property",            "found_by": "id",            "verified": true,            "checked": "string",            "note": "string"          }        ]      }    ]  },  "meta": {    "request_id": "string",    "mode": "live"  }}