# Read a search (/api-reference/flights/read-a-search)

`GET https://api.voyagelabs.ai/v1/flights/search/{search_id}`

**The same search again**

Poll a partial answer, filter, sort and page a finished one differently, or read one result again by itinerary_id. Only the shape fields are read. Reading a search again never refreshes it: its pricing.age_s keeps growing, so search the trip again before showing a price or link more than 240 seconds old. The search must belong to the inventory scope assigned to your key.

Needs a key: `X-API-Key: vl_live_...` (or `vl_test_...`), or `Authorization: Bearer <key>`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `search_id` | path | string | yes | From a search response. |
| `itinerary_id` | query | string | no | A result's id (data.results[].id), exactly as an answer gave it. Keeps only that result, wherever it would sort or page, to read it again with detail full. An id this search does not hold answers with no results, not an error: search the trip again for those flights. max_stops and airlines still apply; cursor is refused with it. |
| `max_stops` | query | integer | no | Keep itineraries with at most this many stops in each direction. |
| `airlines` | query | string | no | 2-character codes, comma separated. Keeps trips sold entirely by these airlines. |
| `sort` | query | `best` \| `price` \| `duration` | no | How to order results. |
| `limit` | query | integer | no | Results in this response. |
| `cursor` | query | string | no | The next_cursor of the previous page. |
| `detail` | query | `summary` \| `full` | no | How much of each result to send. |
| `fares` | query | integer | no | Fares per result. Only read when detail is full. `offers` is accepted as an older name. |
| `wait_ms` | query | integer | no | Wait up to this long for a search that is still running. Left out: answer at once with what there is. |
| `debug` | query | `1` | no | Also say how the answer was produced, in meta.debug. For diagnosis; its shape may change within v1. |

## Responses

- `200`: The search as it stands now.
- `400`: `invalid_parameter`: A field is missing, malformed or out of range. `param` names it.
- `401`: `unauthenticated`: No key, or a key that is not known.
- `403`: `forbidden`: The key is switched off, may not use this route, or was used from outside its partner's listed networks, by the address our load balancer saw (never an address the caller wrote in X-Forwarded-For).
- `404`: `search_not_found`: No search has that id. Search again.
- `429`: `rate_limited`: This key is over its own limit.
- `500`: `internal_error`: A fault in the service. The detail is logged, never sent.
- `502`: `supplier_error`: The supplier failed.
- `503`: `search_capacity`: New searches are temporarily unavailable. Trips already in memory can still answer.
- `504`: `supplier_timeout`: The search did not finish in time: 45 seconds for the first supplier.