Skip to Content

Read a search

The same search again

GET
/v1/flights/search/{search_id}

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.

Authorization

headerX-API-Key<token>

vl_live_… for live prices, vl_test_… for saved sample data. Older keys start fs_live_… and fs_test_…, and still work.

Path Parameters

search_id*string

From a search response.

Query Parameters

itinerary_id?string

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.

Lengthlength <= 512
max_stops?integer

Keep itineraries with at most this many stops in each direction.

Range0 <= value <= 3
airlines?string

2-character codes, comma separated. Keeps trips sold entirely by these airlines.

sort?string

How to order results.

Default"best"
Value in"best""price""duration"
limit?integer

Results in this response.

Range1 <= value <= 50
Default10
cursor?string

The next_cursor of the previous page.

detail?string

How much of each result to send.

Default"summary"
Value in"summary""full"
fares?integer

Fares per result. Only read when detail is full. offers is accepted as an older name.

Range1 <= value <= 10
Default3
wait_ms?integer

Wait up to this long for a search that is still running. Left out: answer at once with what there is.

Range0 <= value <= 30000
debug?"1"

Also say how the answer was produced, in meta.debug. For diagnosis; its shape may change within v1.

Value in"1"

Response Body

The search as it stands now.

application/json
  1. response
data*
meta*
Example Request
curl -X GET 'https://api.voyagelabs.ai/v1/flights/search/string' \  -H 'X-API-Key: '
Example Response
{  "data": {    "search_id": "srch_8f2c1d0e",    "status": "complete",    "query": {      "origin": "SFO",      "destination": "NRT",      "depart_date": "2027-02-09",      "return_date": "2027-02-16",      "adults": 2,      "children": 0,      "infants": 0,      "cabin": "economy",      "currency": "USD"    },    "pricing": {      "priced_at": "2026-12-02T00:20:11Z",      "age_s": 42,      "refreshing": false    },    "counts": {      "found": 6,      "matched": 6,      "returned": 1    },    "next_cursor": "c_eyJvIjoxfQ",    "airlines": [      {        "code": "ZG",        "name": "ZIPAIR",        "results": 1,        "from": 1445.02,        "best_link": "itinerary"      },      {        "code": "NH",        "name": "ANA",        "results": 1,        "from": 2823.38,        "best_link": "flights_selected"      }    ],    "results": [      {        "id": "it_U0ZPLk5SVC4yMDI3MDIwOS4yMDI3MDIxNi4yLjAuMC5ZLlVTRHxOSDcwMTNAMDIwOSxOSDhAMDIxNg",        "airlines": [          {            "code": "NH",            "name": "ANA"          }        ],        "price": {          "total": 2823.38,          "per_adult": 1411.69,          "currency": "USD"        },        "stops": 0,        "total_duration_min": 1240,        "slices": [          {            "direction": "outbound",            "origin": "SFO",            "destination": "NRT",            "depart": "2027-02-09T10:45:00",            "depart_utc": "2027-02-09T18:45:00Z",            "arrive": "2027-02-10T15:05:00",            "arrive_utc": "2027-02-10T06:05:00Z",            "duration_min": 680,            "stops": 0,            "flights": [              "NH7013"            ]          },          {            "direction": "return",            "origin": "NRT",            "destination": "SFO",            "depart": "2027-02-16T17:00:00",            "depart_utc": "2027-02-16T08:00:00Z",            "arrive": "2027-02-16T09:20:00",            "arrive_utc": "2027-02-16T17:20:00Z",            "duration_min": 560,            "stops": 0,            "flights": [              "NH8"            ]          }        ],        "fare": {          "family": "Eco I Basic 1N",          "cabins": [            "Economy"          ],          "refundable": false,          "changeable": false,          "carry_on_included": true,          "checked_bag_included": true,          "seats_left": 9        },        "link": {          "url": "https://flights.example/go?airline=NH&origin=SFO&destination=NRT&depart=2027-02-09&return=2027-02-16&adults=2&children=0&infants=0&cabin=economy&tansel=VjJ8Tkg3MDEz&exp=1796256000&sig=3q2-7w",          "opens": "airline",          "lands_on": "flights_selected",          "verified": true        },        "booking_links": {          "supplier": {            "url": null,            "available": false,            "lands_on": null          },          "airline": {            "url": "https://api.voyagelabs.ai/r/al_example_airline_token",            "available": true,            "lands_on": "flights_selected",            "airline": "NH"          },          "google_flights": {            "url": "https://api.voyagelabs.ai/r/al_example_google_flights_token",            "available": true,            "lands_on": "itinerary"          }        }      }    ]  },  "meta": {    "request_id": "req_41ab9c",    "mode": "live"  }}