Read a search
The same search again: wait for it, page it, sort it
GET
Never searches again and never counts as a new search. A search is kept for 24 hours.
apiKeyheader
X-API-Key<token>vl_live_... for live prices, vl_test_... for saved samples at no cost. Authorization: Bearer is also read.
search_id*stringA search_id from a search or rates answer.
sort?stringThe order of the hotels: cheapest first, or best rated first.
Default
"price"Value in
"price""rating"limit?integerHotels in this response.
Range
1 <= value <= 100Default
20cursor?stringThe next_cursor of the previous page.
wait_ms?integerExactly how long to wait for a running search.
Range
0 <= value <= 30000The page asked for.
application/json- response
data*meta*curl -X GET 'https://api.voyagelabs.ai/v1/hotels/search/string' \ -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" }}