Search hotels (JSON body)
The same search, with its fields in a JSON body
POST
apiKeyheader
X-API-Key<token>vl_live_... for live prices, vl_test_... for saved samples at no cost. Authorization: Bearer is also read.
application/json- body
Say where in exactly one way: city and country, latitude and longitude, place_id, or hotel_ids.
city?stringcountry?stringlatitude?numberlongitude?numberradius_km?numberplace_id?stringhotel_ids?array<string>Items
items <= 200check_in*stringFormat
datecheck_out*stringFormat
daterooms?array<>Items
1 <= itemsadults?integerchild_ages?array<integer>currency?stringnationality?stringsort?stringValue in
"price""rating"limit?integerRange
1 <= value <= 100cursor?stringresponse_mode?stringValue in
"complete""partial"wait_ms?integermax_age_s?integerThe page asked for.
application/json- response
data*meta*curl -X POST 'https://api.voyagelabs.ai/v1/hotels/search' \ -H 'X-API-Key: ' \ -H 'Content-Type: application/json' \ -d '{ "check_in": "2019-08-24", "check_out": "2019-08-24"}'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" }}