Skip to Content

Read a search

The same search again: wait for it, page it, sort it

GET
/v1/hotels/search/{search_id}

Never searches again and never counts as a new search. A search is kept for 24 hours.

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

search_id*string

A search_id from a search or rates answer.

Query Parameters

sort?string

The order of the hotels: cheapest first, or best rated first.

Default"price"
Value in"price""rating"
limit?integer

Hotels in this response.

Range1 <= value <= 100
Default20
cursor?string

The next_cursor of the previous page.

wait_ms?integer

Exactly how long to wait for a running search.

Range0 <= value <= 30000

Response Body

The page asked for.

application/json
  1. response
data*
meta*
Example Request
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"  }}