Rooms and rates
One hotel's every room and rate for a stay
apiKeyX-API-Key<token>vl_live_... for live prices, vl_test_... for saved samples at no cost. Authorization: Bearer is also read.
hotel_id*stringA hotel's id from a search, such as lp19b5e.
check_in*stringFirst night, YYYY-MM-DD. Not before yesterday, at most 500 days ahead.
datecheck_out*stringDeparture day, YYYY-MM-DD. 1 to 30 nights after check_in.
dateadults?integerAdults in the one room. Use rooms for more than one room.
1 <= value <= 82child_ages?stringEach child's age in the one room, comma-separated, such as 7,4.
rooms?stringMore than one room: a JSON list such as [{"adults":2,"child_ages":[7]},{"adults":1}]. Not with adults or child_ages.
currency?string3-letter currency of the prices.
"USD"nationality?stringThe guests' 2-letter country code. Some rates depend on it.
"US"response_mode?stringcomplete waits for the supplier. partial answers at once; read the rest by search_id.
"complete""complete""partial"wait_ms?integerExactly how long to wait for a running search.
0 <= value <= 30000max_age_s?integerThe 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.
0 <= value <= 86400The hotel with all its offers, cheapest first. hotels is empty when it has no rooms for the stay.
application/json- response
data*meta*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: '{ "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" }}