# API reference (/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](/test-mode).

## Flights Search API [#flights-search-api]

| Endpoint | What it does |
| --- | --- |
| [`GET /v1/flights/search`](/api-reference/flights/search) | Search a trip. |
| [`POST /v1/flights/search`](/api-reference/flights/search-with-a-body) | Search a trip, with the fields in a JSON body. |
| [`GET /v1/flights/search/{search_id}`](/api-reference/flights/read-a-search) | Read a search again: wait for it, page it, sort or filter it. |
| [`GET /v1/flights/usage`](/api-reference/flights/usage) | Your limits and what you have used. |
| [`GET /logos/{code}.png`](/api-reference/flights/airline-logo) | An airline's logo, to show beside its results. |

## Hotels Search API [#hotels-search-api]

| Endpoint | What it does |
| --- | --- |
| [`GET /v1/hotels/search`](/api-reference/hotels/search) | Hotels for a place and a stay, with one price each. |
| [`POST /v1/hotels/search`](/api-reference/hotels/search-with-a-body) | The same search, with the fields in a JSON body. |
| [`GET /v1/hotels/search/{search_id}`](/api-reference/hotels/read-a-search) | Read a search again: wait for it, page it, sort it. |
| [`GET /v1/hotels/rates/{hotel_id}`](/api-reference/hotels/rooms-and-rates) | Every room and rate of one hotel for a stay. |
| [`GET /v1/hotels/usage`](/api-reference/hotels/usage) | Your limits and what you have used. |

## As files [#as-files]

The reference is generated from each API's OpenAPI document. Download the documents as shown here: [flights](/openapi/flights.json) and [hotels](/openapi/hotels.json).

For guides to the concepts behind these endpoints, start with [How flight search works](/flights) or [How hotel search works](/hotels).