API reference
Every endpoint of both APIs, with its parameters, answers and errors. Call any of them from the page with your own key.
Each page shows one endpoint: its parameters, every answer it can give, and samples in several languages. Open the playground on a page, paste a key, and send a real request.
All endpoints live on https://api.voyagelabs.ai and need a key in the X-API-Key header. A vl_test_ key returns saved samples at no cost. See Test mode.
Flights Search API
| Endpoint | What it does |
|---|---|
GET /v1/flights/search | Search a trip. |
POST /v1/flights/search | Search a trip, with the fields in a JSON body. |
GET /v1/flights/search/{search_id} | Read a search again: wait for it, page it, sort or filter it. |
GET /v1/flights/usage | Your limits and what you have used. |
GET /logos/{code}.png | An airline's logo, to show beside its results. |
Hotels Search API
| Endpoint | What it does |
|---|---|
GET /v1/hotels/search | Hotels for a place and a stay, with one price each. |
POST /v1/hotels/search | The same search, with the fields in a JSON body. |
GET /v1/hotels/search/{search_id} | Read a search again: wait for it, page it, sort it. |
GET /v1/hotels/rates/{hotel_id} | Every room and rate of one hotel for a stay. |
GET /v1/hotels/usage | Your limits and what you have used. |
As files
The reference is generated from each API's OpenAPI document. Download the documents as shown here: flights and hotels.
For guides to the concepts behind these endpoints, start with How flight search works or How hotel search works.