{"openapi":"3.2.0","info":{"title":"Flights Search API","version":"1.0.0","summary":"Search flights and get links that open the airline's own site on the exact flights.","description":"Search flights and get links that open the airline's own site, or Google Flights, on the exact flights. The API only searches: it never holds, verifies or books. Guides: https://docs.voyagelabs.ai/flights"},"servers":[{"url":"https://api.voyagelabs.ai"}],"security":[{"apiKey":[]},{"bearer":[]}],"tags":[{"name":"Search","description":"Search a trip and read it again."},{"name":"Reference","description":"What to expect from the service, and this key's own usage."}],"paths":{"/v1/flights/search":{"get":{"tags":["Search"],"operationId":"searchFlights","summary":"Search a trip","description":"A search changes nothing, so GET is the main form. Trip fields decide which stored search answers; the other fields only shape the answer and never cause a supplier search.","parameters":[{"$ref":"#/components/parameters/origin"},{"$ref":"#/components/parameters/destination"},{"$ref":"#/components/parameters/depart_date"},{"$ref":"#/components/parameters/return_date"},{"$ref":"#/components/parameters/adults"},{"$ref":"#/components/parameters/children"},{"$ref":"#/components/parameters/infants"},{"$ref":"#/components/parameters/cabin"},{"$ref":"#/components/parameters/currency"},{"$ref":"#/components/parameters/max_stops"},{"$ref":"#/components/parameters/airlines"},{"$ref":"#/components/parameters/sort"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/detail"},{"$ref":"#/components/parameters/fares"},{"$ref":"#/components/parameters/wait_ms"},{"$ref":"#/components/parameters/max_age_s"},{"$ref":"#/components/parameters/stream"},{"$ref":"#/components/parameters/debug"},{"$ref":"#/components/parameters/response_mode"}],"responses":{"200":{"description":"The search, complete or partial.","headers":{"X-Request-Id":{"description":"Names this request.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests this key may make a minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the minute starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSuccess"},"examples":{"complete":{"summary":"A finished search, one result shown","value":{"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"}}},"partial":{"summary":"Results still arriving","value":{"data":{"search_id":"srch_8f2c1d0e","status":"partial","retry_after_ms":2000,"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":2,"matched":2,"returned":1},"next_cursor":null,"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"}}},"nothing_found":{"summary":"No flights for that trip","value":{"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":0,"matched":0,"returned":0},"next_cursor":null,"airlines":[],"results":[]},"meta":{"request_id":"req_41ab9c","mode":"live"}}}}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events. `results` events carry the whole answer so far as a SearchSuccess; the stream ends with one `complete` event (a SearchSuccess) or one `error` event (a Failure). A comment line is sent every 15 seconds."},"example":"event: results\ndata: {\"data\":{\"search_id\":\"srch_8f2c1d0e\",\"status\":\"partial\",\"retry_after_ms\":2000,\"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\":2,\"matched\":2,\"returned\":1},\"next_cursor\":null,\"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}}]},\"meta\":{\"request_id\":\"req_41ab9c\",\"mode\":\"live\"}}\n\n: keep-alive\n\nevent: complete\ndata: {\"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}}]},\"meta\":{\"request_id\":\"req_41ab9c\",\"mode\":\"live\"}}\n\n"}}},"400":{"description":"`invalid_parameter`: A field is missing, malformed or out of range. `param` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"invalid_parameter":{"value":{"error":{"code":"invalid_parameter","message":"origin must be a 3-letter airport code such as SFO.","param":"origin","retry":"never","request_id":"req_41ab9c"}}}}}}},"401":{"description":"`unauthenticated`: No key, or a key that is not known.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"unauthenticated":{"value":{"error":{"code":"unauthenticated","message":"Send your key in the X-API-Key header.","retry":"never","request_id":"req_41ab9c"}}}}}}},"403":{"description":"`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).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"forbidden":{"value":{"error":{"code":"forbidden","message":"This key is switched off. Contact us to turn it back on.","retry":"never","request_id":"req_41ab9c"}}}}}}},"429":{"description":"`rate_limited`: This key is over its own limit.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"This key has made its 120 requests for this minute.","retry_after_s":18,"retry":"after","request_id":"req_41ab9c"}}}}}}},"500":{"description":"`internal_error`: A fault in the service. The detail is logged, never sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"internal_error":{"value":{"error":{"code":"internal_error","message":"Something went wrong on our side. Quote the request id if it keeps happening.","retry":"now","request_id":"req_41ab9c"}}}}}}},"502":{"description":"`supplier_error`: The supplier failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_error":{"value":{"error":{"code":"supplier_error","message":"The flight supplier could not complete this search. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}},"503":{"description":"`search_capacity`: New searches are temporarily unavailable. Trips already in memory can still answer.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"search_capacity":{"value":{"error":{"code":"search_capacity","message":"New searches are temporarily unavailable. Trips searched recently can still answer; try this one again shortly.","retry_after_s":20,"retry":"after","request_id":"req_41ab9c"}}},"service_unavailable":{"value":{"error":{"code":"service_unavailable","message":"Authorization or admission services are temporarily unavailable. Try again shortly.","retry_after_s":5,"retry":"after","request_id":"req_41ab9d"}}}}}}},"504":{"description":"`supplier_timeout`: The search did not finish in time: 45 seconds for the first supplier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_timeout":{"value":{"error":{"code":"supplier_timeout","message":"The flight supplier took too long to answer. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}}}},"post":{"tags":["Search"],"operationId":"searchFlightsWithBody","summary":"Search a trip, with the fields in a JSON body","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchBody"},"examples":{"flat":{"value":{"origin":"SFO","destination":"NRT","depart_date":"2027-02-09","return_date":"2027-02-16","adults":2}},"legs":{"value":{"legs":[{"origin":"SFO","destination":"NRT","date":"2027-02-09"},{"origin":"NRT","destination":"SFO","date":"2027-02-16"}],"adults":2,"detail":"full"}}}}}},"responses":{"200":{"description":"The search, complete or partial.","headers":{"X-Request-Id":{"description":"Names this request.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests this key may make a minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the minute starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSuccess"},"examples":{"complete":{"summary":"A finished search, one result shown","value":{"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"}}},"partial":{"summary":"Results still arriving","value":{"data":{"search_id":"srch_8f2c1d0e","status":"partial","retry_after_ms":2000,"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":2,"matched":2,"returned":1},"next_cursor":null,"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"}}},"nothing_found":{"summary":"No flights for that trip","value":{"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":0,"matched":0,"returned":0},"next_cursor":null,"airlines":[],"results":[]},"meta":{"request_id":"req_41ab9c","mode":"live"}}}}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events. `results` events carry the whole answer so far as a SearchSuccess; the stream ends with one `complete` event (a SearchSuccess) or one `error` event (a Failure). A comment line is sent every 15 seconds."},"example":"event: results\ndata: {\"data\":{\"search_id\":\"srch_8f2c1d0e\",\"status\":\"partial\",\"retry_after_ms\":2000,\"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\":2,\"matched\":2,\"returned\":1},\"next_cursor\":null,\"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}}]},\"meta\":{\"request_id\":\"req_41ab9c\",\"mode\":\"live\"}}\n\n: keep-alive\n\nevent: complete\ndata: {\"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}}]},\"meta\":{\"request_id\":\"req_41ab9c\",\"mode\":\"live\"}}\n\n"}}},"400":{"description":"`invalid_parameter`: A field is missing, malformed or out of range. `param` names it. `invalid_body`: A POST body is not a JSON object, or is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"invalid_parameter":{"value":{"error":{"code":"invalid_parameter","message":"origin must be a 3-letter airport code such as SFO.","param":"origin","retry":"never","request_id":"req_41ab9c"}}},"invalid_body":{"value":{"error":{"code":"invalid_body","message":"The request body must be a JSON object.","retry":"never","request_id":"req_41ab9c"}}}}}}},"401":{"description":"`unauthenticated`: No key, or a key that is not known.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"unauthenticated":{"value":{"error":{"code":"unauthenticated","message":"Send your key in the X-API-Key header.","retry":"never","request_id":"req_41ab9c"}}}}}}},"403":{"description":"`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).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"forbidden":{"value":{"error":{"code":"forbidden","message":"This key is switched off. Contact us to turn it back on.","retry":"never","request_id":"req_41ab9c"}}}}}}},"429":{"description":"`rate_limited`: This key is over its own limit.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"This key has made its 120 requests for this minute.","retry_after_s":18,"retry":"after","request_id":"req_41ab9c"}}}}}}},"500":{"description":"`internal_error`: A fault in the service. The detail is logged, never sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"internal_error":{"value":{"error":{"code":"internal_error","message":"Something went wrong on our side. Quote the request id if it keeps happening.","retry":"now","request_id":"req_41ab9c"}}}}}}},"502":{"description":"`supplier_error`: The supplier failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_error":{"value":{"error":{"code":"supplier_error","message":"The flight supplier could not complete this search. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}},"503":{"description":"`search_capacity`: New searches are temporarily unavailable. Trips already in memory can still answer.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"search_capacity":{"value":{"error":{"code":"search_capacity","message":"New searches are temporarily unavailable. Trips searched recently can still answer; try this one again shortly.","retry_after_s":20,"retry":"after","request_id":"req_41ab9c"}}},"service_unavailable":{"value":{"error":{"code":"service_unavailable","message":"Authorization or admission services are temporarily unavailable. Try again shortly.","retry_after_s":5,"retry":"after","request_id":"req_41ab9d"}}}}}}},"504":{"description":"`supplier_timeout`: The search did not finish in time: 45 seconds for the first supplier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_timeout":{"value":{"error":{"code":"supplier_timeout","message":"The flight supplier took too long to answer. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}}}}},"/v1/flights/search/{search_id}":{"get":{"tags":["Search"],"operationId":"getSearch","summary":"The same search again","description":"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.","parameters":[{"name":"search_id","in":"path","required":true,"description":"From a search response.","schema":{"type":"string"}},{"name":"itinerary_id","in":"query","required":false,"description":"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.","schema":{"type":"string","maxLength":512}},{"$ref":"#/components/parameters/max_stops"},{"$ref":"#/components/parameters/airlines"},{"$ref":"#/components/parameters/sort"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/detail"},{"$ref":"#/components/parameters/fares"},{"name":"wait_ms","in":"query","required":false,"description":"Wait up to this long for a search that is still running. Left out: answer at once with what there is.","schema":{"type":"integer","minimum":0,"maximum":30000}},{"$ref":"#/components/parameters/debug"}],"responses":{"200":{"description":"The search as it stands now.","headers":{"X-Request-Id":{"description":"Names this request.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests this key may make a minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the minute starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSuccess"},"examples":{"complete":{"value":{"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"}}}}}}},"400":{"description":"`invalid_parameter`: A field is missing, malformed or out of range. `param` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"invalid_parameter":{"value":{"error":{"code":"invalid_parameter","message":"origin must be a 3-letter airport code such as SFO.","param":"origin","retry":"never","request_id":"req_41ab9c"}}}}}}},"401":{"description":"`unauthenticated`: No key, or a key that is not known.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"unauthenticated":{"value":{"error":{"code":"unauthenticated","message":"Send your key in the X-API-Key header.","retry":"never","request_id":"req_41ab9c"}}}}}}},"403":{"description":"`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).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"forbidden":{"value":{"error":{"code":"forbidden","message":"This key is switched off. Contact us to turn it back on.","retry":"never","request_id":"req_41ab9c"}}}}}}},"404":{"description":"`search_not_found`: No search has that id. Search again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"search_not_found":{"value":{"error":{"code":"search_not_found","message":"No search with that id. Searches are kept for at least 30 minutes; run the search again.","retry":"never","request_id":"req_41ab9c"}}}}}}},"429":{"description":"`rate_limited`: This key is over its own limit.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"This key has made its 120 requests for this minute.","retry_after_s":18,"retry":"after","request_id":"req_41ab9c"}}}}}}},"500":{"description":"`internal_error`: A fault in the service. The detail is logged, never sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"internal_error":{"value":{"error":{"code":"internal_error","message":"Something went wrong on our side. Quote the request id if it keeps happening.","retry":"now","request_id":"req_41ab9c"}}}}}}},"502":{"description":"`supplier_error`: The supplier failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_error":{"value":{"error":{"code":"supplier_error","message":"The flight supplier could not complete this search. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}},"503":{"description":"`search_capacity`: New searches are temporarily unavailable. Trips already in memory can still answer.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"search_capacity":{"value":{"error":{"code":"search_capacity","message":"New searches are temporarily unavailable. Trips searched recently can still answer; try this one again shortly.","retry_after_s":20,"retry":"after","request_id":"req_41ab9c"}}},"service_unavailable":{"value":{"error":{"code":"service_unavailable","message":"Authorization or admission services are temporarily unavailable. Try again shortly.","retry_after_s":5,"retry":"after","request_id":"req_41ab9d"}}}}}}},"504":{"description":"`supplier_timeout`: The search did not finish in time: 45 seconds for the first supplier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_timeout":{"value":{"error":{"code":"supplier_timeout","message":"The flight supplier took too long to answer. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}}}}},"/v1/flights/usage":{"get":{"tags":["Reference"],"operationId":"getUsage","summary":"This key's limits and how much of them is used","responses":{"200":{"description":"A key sees only its own numbers.","headers":{"X-Request-Id":{"description":"Names this request.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests this key may make a minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the minute starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSuccess"},"examples":{"now":{"value":{"data":{"key":{"id":"key_3fa1","name":"Atlas agent","mode":"live"},"limits":{"requests_per_minute":120,"new_trips_per_minute":6},"this_minute":{"requests":14,"new_trips":1},"today":{"requests":2310,"answered_from_memory":1975,"new_trips":335,"errors":4}},"meta":{"request_id":"req_1b88f0","mode":"live"}}}}}}},"401":{"description":"`unauthenticated`: No key, or a key that is not known.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"unauthenticated":{"value":{"error":{"code":"unauthenticated","message":"Send your key in the X-API-Key header.","retry":"never","request_id":"req_41ab9c"}}}}}}},"403":{"description":"`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).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"forbidden":{"value":{"error":{"code":"forbidden","message":"This key is switched off. Contact us to turn it back on.","retry":"never","request_id":"req_41ab9c"}}}}}}},"429":{"description":"`rate_limited`: This key is over its own limit.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"rate_limited":{"value":{"error":{"code":"rate_limited","message":"This key has made its 120 requests for this minute.","retry_after_s":18,"retry":"after","request_id":"req_41ab9c"}}}}}}},"500":{"description":"`internal_error`: A fault in the service. The detail is logged, never sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"internal_error":{"value":{"error":{"code":"internal_error","message":"Something went wrong on our side. Quote the request id if it keeps happening.","retry":"now","request_id":"req_41ab9c"}}}}}}}}}},"/logos/{code}.png":{"get":{"tags":["Reference"],"operationId":"getLogo","summary":"An airline's logo","security":[],"description":"The address a result's logo fields carry. It needs no key, so a page can use it in an image. The image is small and can be kept for a day.","parameters":[{"name":"code","in":"path","required":true,"description":"The airline's 2-character code, in capitals and digits.","schema":{"type":"string","minLength":2,"maxLength":2}}],"responses":{"200":{"description":"The image. Content-Type says whether it is a PNG, JPEG, WebP or GIF.","headers":{"Cache-Control":{"description":"public, max-age=86400","schema":{"type":"string"}}},"content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"`not_found`: No such route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"There is nothing at this address.","retry":"never","request_id":"req_41ab9c"}}}}}}},"500":{"description":"`internal_error`: A fault in the service. The detail is logged, never sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"internal_error":{"value":{"error":{"code":"internal_error","message":"Something went wrong on our side. Quote the request id if it keeps happening.","retry":"now","request_id":"req_41ab9c"}}}}}}},"502":{"description":"`supplier_error`: The supplier failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"supplier_error":{"value":{"error":{"code":"supplier_error","message":"The flight supplier could not complete this search. Trying again usually works.","retry":"now","request_id":"req_41ab9c"}}}}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"vl_live_… for live prices, vl_test_… for saved sample data. Older keys start fs_live_… and fs_test_…, and still work."},"bearer":{"type":"http","scheme":"bearer","description":"The same key, as Authorization: Bearer."}},"parameters":{"origin":{"name":"origin","in":"query","required":true,"description":"3-letter airport code.","schema":{"type":"string","minLength":3,"maxLength":3}},"destination":{"name":"destination","in":"query","required":true,"description":"3-letter airport code, different from origin.","schema":{"type":"string","minLength":3,"maxLength":3}},"depart_date":{"name":"depart_date","in":"query","required":true,"description":"YYYY-MM-DD, not in the past, at most 11 months ahead. `depart` is accepted as an older name.","schema":{"type":"string","format":"date"}},"return_date":{"name":"return_date","in":"query","required":false,"description":"YYYY-MM-DD, on or after depart_date. Leave out for one-way. `return` is accepted as an older name.","schema":{"type":"string","format":"date"}},"adults":{"name":"adults","in":"query","required":false,"description":"Travellers aged 12 and over.","schema":{"type":"integer","minimum":1,"maximum":9,"default":1}},"children":{"name":"children","in":"query","required":false,"description":"Adults plus children at most 9.","schema":{"type":"integer","minimum":0,"maximum":8,"default":0}},"infants":{"name":"infants","in":"query","required":false,"description":"At most one per adult.","schema":{"type":"integer","minimum":0,"maximum":4,"default":0}},"cabin":{"name":"cabin","in":"query","required":false,"description":"The cabin to search.","schema":{"type":"string","enum":["economy","premium_economy","business","first"],"default":"economy"}},"currency":{"name":"currency","in":"query","required":false,"description":"3-letter code.","schema":{"type":"string","minLength":3,"maxLength":3,"default":"USD"}},"max_stops":{"name":"max_stops","in":"query","required":false,"description":"Keep itineraries with at most this many stops in each direction.","schema":{"type":"integer","minimum":0,"maximum":3}},"airlines":{"name":"airlines","in":"query","required":false,"description":"2-character codes, comma separated. Keeps trips sold entirely by these airlines.","schema":{"type":"string"}},"sort":{"name":"sort","in":"query","required":false,"description":"How to order results.","schema":{"type":"string","enum":["best","price","duration"],"default":"best"}},"limit":{"name":"limit","in":"query","required":false,"description":"Results in this response.","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},"cursor":{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page.","schema":{"type":"string"}},"detail":{"name":"detail","in":"query","required":false,"description":"How much of each result to send.","schema":{"type":"string","enum":["summary","full"],"default":"summary"}},"fares":{"name":"fares","in":"query","required":false,"description":"Fares per result. Only read when detail is full. `offers` is accepted as an older name.","schema":{"type":"integer","minimum":1,"maximum":10,"default":3}},"wait_ms":{"name":"wait_ms","in":"query","required":false,"description":"Answer with whatever has arrived by then, in milliseconds. Left out: 8000, so a new trip is answered when its search finishes or after 8 seconds with what has arrived (status partial); read the rest by search_id. Left out, an answer is never sent empty while the search runs: it waits on for the first itineraries, up to 30 seconds.","schema":{"type":"integer","minimum":0,"maximum":30000}},"max_age_s":{"name":"max_age_s","in":"query","required":false,"description":"The oldest price the caller accepts, in seconds. A stored answer older than this is searched again before the reply.","schema":{"type":"integer","minimum":0,"maximum":86400}},"stream":{"name":"stream","in":"query","required":false,"description":"Answer as server-sent events. The same as sending Accept: text/event-stream.","schema":{"type":"string","enum":["1"]}},"debug":{"name":"debug","in":"query","required":false,"description":"Also say how the answer was produced, in meta.debug. For diagnosis; its shape may change within v1.","schema":{"type":"string","enum":["1"]}},"response_mode":{"name":"response_mode","in":"query","description":"Delivery mode for partner searches: complete (default JSON — waits up to 30s for full results), stream (Server-Sent Events), or partial (fast return with search_id to poll).","schema":{"type":"string","enum":["complete","stream","partial"],"default":"complete"}}},"schemas":{"Meta":{"type":"object","properties":{"request_id":{"type":"string","description":"Names this request. Also in the X-Request-Id header."},"mode":{"type":"string","description":"live for live prices, test for saved sample data.","enum":["live","test"]},"debug":{"$ref":"#/components/schemas/Debug"}},"required":["request_id","mode"]},"Debug":{"type":"object","description":"How an answer was produced. Sent only when asked for with debug=1. For diagnosis; its shape may change within v1.","properties":{"cache":{"type":"string","description":"miss: a new search. joined: a search already running for another caller. hit, stale: from memory.","enum":["miss","joined","hit","stale"]},"served_ms":{"type":"integer","description":"How long this caller waited."},"supplier":{"type":"object","properties":{"first_result_ms":{"oneOf":[{"type":"integer","description":"When the first itinerary arrived."},{"type":"null"}]},"complete_ms":{"oneOf":[{"type":"integer","description":"When the search finished."},{"type":"null"}]},"bytes":{"type":"integer","description":"Read from the supplier."},"batches":{"type":"array","items":{"type":"object","properties":{"at_ms":{"type":"integer","description":"When it arrived."},"itineraries":{"type":"integer","description":"How many it carried."},"bytes":{"type":"integer","description":"Its size."}},"required":["at_ms","itineraries","bytes"]}}},"required":["first_result_ms","complete_ms","bytes","batches"]}},"required":["cache","served_ms","supplier"]},"Failure":{"type":"object","description":"Every failed request answers with this.","properties":{"error":{"$ref":"#/components/schemas/Error"}},"required":["error"]},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Stable. Branch on this. New codes can be added within v1.","enum":["invalid_parameter","invalid_body","unauthenticated","forbidden","not_found","search_not_found","itinerary_not_found","method_not_allowed","rate_limited","supplier_error","search_capacity","service_unavailable","supplier_timeout","internal_error"]},"message":{"type":"string","description":"One sentence, safe to show a person. The wording can change."},"param":{"type":"string","description":"The field at fault, when one is."},"retry":{"type":"string","description":"never: the same request will fail again. now: an immediate retry can succeed. after: wait retry_after_s.","enum":["never","now","after"]},"retry_after_s":{"type":"integer","description":"Seconds to wait, when retry is after. Also the Retry-After header."},"request_id":{"type":"string","description":"Quote it when asking for help."},"supplier_code":{"type":"string","description":"Sometimes present on a supplier failure, for our support. Do not depend on it."}},"required":["code","message","retry","request_id"]},"Query":{"type":"object","description":"The trip as the service understood it.","properties":{"origin":{"type":"string","description":"3-letter airport code."},"destination":{"type":"string","description":"3-letter airport code."},"depart_date":{"type":"string","description":"YYYY-MM-DD.","format":"date"},"return_date":{"oneOf":[{"type":"string","description":"YYYY-MM-DD. null for one-way.","format":"date"},{"type":"null"}]},"adults":{"type":"integer","description":"1 to 9."},"children":{"type":"integer","description":"0 to 8."},"infants":{"type":"integer","description":"0 to 4."},"cabin":{"type":"string","description":"The cabin searched.","enum":["economy","premium_economy","business","first"]},"currency":{"type":"string","description":"3-letter code."}},"required":["origin","destination","depart_date","return_date","adults","children","infants","cabin","currency"]},"Pricing":{"type":"object","properties":{"priced_at":{"type":"string","description":"When the supplier priced this answer, in UTC.","format":"date-time"},"age_s":{"type":"integer","description":"How long ago that was, in seconds. Over 240, search the trip again before showing a price or link: a supplier's fares run out about five minutes after a search."},"refreshing":{"type":"boolean","description":"true when the answer came from memory and a new search is running behind it."}},"required":["priced_at","age_s","refreshing"]},"Counts":{"type":"object","properties":{"found":{"type":"integer","description":"Itineraries in the whole answer."},"matched":{"type":"integer","description":"After max_stops and airlines."},"returned":{"type":"integer","description":"In this response."}},"required":["found","matched","returned"]},"AirlineSummary":{"type":"object","properties":{"code":{"type":"string","description":"2-character airline code."},"name":{"type":"string","description":"The airline's name."},"results":{"type":"integer","description":"Itineraries listed under it: those whose first flight it sells."},"from":{"type":"number","description":"Its cheapest total."},"best_link":{"type":"string","description":"The best link its cheapest result gets.","enum":["cart","passenger_details","flights_selected","itinerary","search_results"]},"logo":{"oneOf":[{"type":"string","description":"detail=full: an image address."},{"type":"null"}]}},"required":["code","name","results","from","best_link"]},"Link":{"type":"object","properties":{"url":{"type":"string","description":"Opaque. Hand it to the traveller as it is."},"opens":{"type":"string","description":"Whose site it opens.","enum":["airline","google_flights"]},"lands_on":{"type":"string","description":"Where the traveller arrives.","enum":["cart","passenger_details","flights_selected","itinerary","search_results"]},"verified":{"type":"boolean","description":"true when this kind of trip was opened in a browser and landed as claimed."},"airline":{"oneOf":[{"type":"string","description":"detail=full: the code of the airline it opens. null for Google Flights."},{"type":"null"}]},"checked":{"oneOf":[{"type":"string","description":"detail=full: the date of that check.","format":"date"},{"type":"null"}]},"note":{"oneOf":[{"type":"string","description":"detail=full: one sentence on what the traveller will see."},{"type":"null"}]}},"required":["url","opens","lands_on","verified"]},"Price":{"type":"object","properties":{"total":{"type":"number","description":"For all travellers."},"per_adult":{"oneOf":[{"type":"number","description":"For one adult."},{"type":"null"}]},"currency":{"type":"string","description":"3-letter code."}},"required":["total","per_adult","currency"]},"Airline":{"type":"object","properties":{"code":{"type":"string","description":"2-character airline code."},"name":{"type":"string","description":"The airline's name."},"logo":{"oneOf":[{"type":"string","description":"detail=full: the address of its logo on this service (/logos/{code}.png), or null when there is none."},{"type":"null"}]}},"required":["code","name"]},"Slice":{"type":"object","properties":{"direction":{"type":"string","description":"Which way.","enum":["outbound","return"]},"origin":{"type":"string","description":"Airport code."},"destination":{"type":"string","description":"Airport code."},"depart":{"type":"string","description":"Local time at the origin, no zone, as the airline prints it."},"depart_utc":{"oneOf":[{"type":"string","description":"The same instant in UTC.","format":"date-time"},{"type":"null"}]},"arrive":{"type":"string","description":"Local time at the destination, no zone."},"arrive_utc":{"oneOf":[{"type":"string","description":"The same instant in UTC.","format":"date-time"},{"type":"null"}]},"duration_min":{"oneOf":[{"type":"integer","description":"Minutes from departure to arrival."},{"type":"null"}]},"stops":{"type":"integer","description":"Stops in this direction."},"flights":{"type":"array","items":{"type":"string"},"description":"Flight numbers in flying order."},"overnight":{"type":"boolean","description":"detail=full: the flight runs through the night."},"arrives_days_later":{"type":"integer","description":"detail=full: calendar days between departure and arrival."},"segments":{"type":"array","items":{"$ref":"#/components/schemas/Segment"},"description":"detail=full: one per flight."},"layovers":{"type":"array","items":{"$ref":"#/components/schemas/Layover"},"description":"detail=full: one between each pair of flights."}},"required":["direction","origin","destination","depart","depart_utc","arrive","arrive_utc","duration_min","stops","flights"]},"Segment":{"type":"object","properties":{"flight":{"type":"string","description":"The flight number as sold."},"marketing_airline":{"type":"string","description":"Code of the airline selling it."},"marketing_airline_name":{"oneOf":[{"type":"string","description":"Its name."},{"type":"null"}]},"marketing_logo":{"oneOf":[{"type":"string","description":"Its logo: an address on this service, or null."},{"type":"null"}]},"operating_airline":{"type":"string","description":"Code of the airline flying it."},"operating_airline_name":{"oneOf":[{"type":"string","description":"Its name."},{"type":"null"}]},"operating_logo":{"oneOf":[{"type":"string","description":"Its logo: an address on this service, or null."},{"type":"null"}]},"operating_flight":{"type":"string","description":"The number the operating airline flies it under."},"origin":{"type":"string","description":"Airport code."},"origin_name":{"oneOf":[{"type":"string","description":"Airport name."},{"type":"null"}]},"destination":{"type":"string","description":"Airport code."},"destination_name":{"oneOf":[{"type":"string","description":"Airport name."},{"type":"null"}]},"depart":{"type":"string","description":"Local time."},"depart_utc":{"oneOf":[{"type":"string","description":"UTC.","format":"date-time"},{"type":"null"}]},"arrive":{"type":"string","description":"Local time."},"arrive_utc":{"oneOf":[{"type":"string","description":"UTC.","format":"date-time"},{"type":"null"}]},"duration_min":{"oneOf":[{"type":"integer","description":"Minutes."},{"type":"null"}]},"aircraft":{"oneOf":[{"type":"string","description":"Aircraft code."},{"type":"null"}]},"aircraft_name":{"oneOf":[{"type":"string","description":"Aircraft name."},{"type":"null"}]},"technical_stops":{"type":"integer","description":"Landings on the way where travellers stay on the same flight number."}},"required":["flight","marketing_airline","marketing_airline_name","marketing_logo","operating_airline","operating_airline_name","operating_logo","operating_flight","origin","origin_name","destination","destination_name","depart","depart_utc","arrive","arrive_utc","duration_min","aircraft","aircraft_name","technical_stops"]},"Layover":{"type":"object","properties":{"airport":{"type":"string","description":"Airport code."},"airport_name":{"oneOf":[{"type":"string","description":"Airport name."},{"type":"null"}]},"minutes":{"oneOf":[{"type":"integer","description":"The wait. null when the next flight leaves from another airport."},{"type":"null"}]},"overnight":{"type":"boolean","description":"The next flight leaves on a later day."},"changes_airport":{"type":"boolean","description":"The next flight leaves from another airport."},"changes_airline":{"type":"boolean","description":"The next flight is sold by another airline."}},"required":["airport","airport_name","minutes","overnight","changes_airport","changes_airline"]},"FareSummary":{"type":"object","description":"What the cheapest fare includes.","properties":{"family":{"oneOf":[{"type":"string","description":"The airline's name for the fare."},{"type":"null"}]},"cabins":{"type":"array","items":{"type":"string"}},"refundable":{"oneOf":[{"type":"boolean","description":"Whether it can be refunded."},{"type":"null"}]},"changeable":{"oneOf":[{"type":"boolean","description":"Whether it can be changed."},{"type":"null"}]},"carry_on_included":{"oneOf":[{"type":"boolean","description":"A carry-on is included."},{"type":"null"}]},"checked_bag_included":{"oneOf":[{"type":"boolean","description":"A checked bag is included."},{"type":"null"}]},"seats_left":{"oneOf":[{"type":"integer","description":"Seats left at this price. null when the supplier did not say."},{"type":"null"}]}},"required":["family","cabins","refundable","changeable","carry_on_included","checked_bag_included","seats_left"]},"Bag":{"type":"object","properties":{"type":{"type":"string","description":"checked, cabin or personal."},"description":{"oneOf":[{"type":"string","description":"The supplier's words."},{"type":"null"}]},"pieces":{"oneOf":[{"type":"integer","description":"How many."},{"type":"null"}]},"weight_kg":{"oneOf":[{"type":"number","description":"Weight limit."},{"type":"null"}]},"size":{"oneOf":[{"type":"string","description":"Size limit, as the supplier wrote it."},{"type":"null"}]},"price":{"oneOf":[{"type":"number","description":"null for an included bag."},{"type":"null"}]}},"required":["type","description","pieces","weight_kg","size","price"]},"Status":{"type":"object","properties":{"status":{"type":"string","description":"included, chargeable or not-offered.","enum":["included","chargeable","not-offered"]},"description":{"oneOf":[{"type":"string","description":"The supplier's sentence."},{"type":"null"}]}},"required":["status","description"]},"OnBoard":{"type":"object","properties":{"flight":{"type":"string","description":"Flight number."},"seats_left":{"oneOf":[{"type":"integer","description":"Seats left on this flight at this fare."},{"type":"null"}]},"legroom":{"oneOf":[{"type":"string","description":"For example: Standard Legroom, 31\" pitch."},{"type":"null"}]},"meal":{"oneOf":[{"type":"string","description":"included, chargeable or not-offered.","enum":["included","chargeable","not-offered"]},{"type":"null"}]},"wifi":{"oneOf":[{"type":"string","description":"As meal.","enum":["included","chargeable","not-offered"]},{"type":"null"}]},"entertainment":{"oneOf":[{"type":"string","description":"As meal.","enum":["included","chargeable","not-offered"]},{"type":"null"}]},"seat_selection":{"oneOf":[{"type":"string","description":"As meal.","enum":["included","chargeable","not-offered"]},{"type":"null"}]}},"required":["flight","seats_left","legroom","meal","wifi","entertainment","seat_selection"]},"Fare":{"type":"object","description":"detail=full: one fare in full.","properties":{"family":{"oneOf":[{"type":"string","description":"The airline's name for the fare."},{"type":"null"}]},"cabins":{"type":"array","items":{"type":"string"}},"total":{"type":"number","description":"For all travellers."},"base_fare":{"oneOf":[{"type":"number","description":"Before taxes and fees."},{"type":"null"}]},"taxes":{"oneOf":[{"type":"number","description":"Taxes."},{"type":"null"}]},"fees":{"oneOf":[{"type":"number","description":"Fees."},{"type":"null"}]},"per_adult":{"oneOf":[{"type":"number","description":"For one adult."},{"type":"null"}]},"currency":{"type":"string","description":"3-letter code."},"booking_classes":{"type":"array","items":{"type":"string"},"description":"One per flight."},"fare_basis":{"type":"array","items":{"type":"string"},"description":"One per flight."},"refundable":{"oneOf":[{"type":"boolean","description":"Whether it can be refunded."},{"type":"null"}]},"changeable":{"oneOf":[{"type":"boolean","description":"Whether it can be changed."},{"type":"null"}]},"change_fee":{"oneOf":[{"type":"number","description":"The fee to change it."},{"type":"null"}]},"carry_on_included":{"oneOf":[{"type":"boolean","description":"A carry-on is included."},{"type":"null"}]},"checked_bag_included":{"oneOf":[{"type":"boolean","description":"A checked bag is included."},{"type":"null"}]},"bags_included":{"type":"array","items":{"$ref":"#/components/schemas/Bag"}},"bags_for_purchase":{"type":"array","items":{"$ref":"#/components/schemas/Bag"}},"seats_left":{"oneOf":[{"type":"integer","description":"Seats left at this price."},{"type":"null"}]},"seat_selection":{"oneOf":[{"$ref":"#/components/schemas/Status"},{"type":"null"}]},"extra_legroom_seats":{"oneOf":[{"$ref":"#/components/schemas/Status"},{"type":"null"}]},"conditions":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","description":"success, info, warning or danger."},"message":{"type":"string","description":"The rule in plain words."}},"required":["level","message"]}},"extras":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"For example priority_boarding or lounge."},"status":{"type":"string","description":"included, chargeable or not-offered."},"description":{"oneOf":[{"type":"string","description":"The supplier's sentence."},{"type":"null"}]}},"required":["type","status","description"]}},"earns_miles":{"oneOf":[{"type":"boolean","description":"Whether it earns miles."},{"type":"null"}]},"mixed_cabin":{"oneOf":[{"type":"boolean","description":"Whether cabins differ between flights."},{"type":"null"}]},"on_board":{"type":"array","items":{"$ref":"#/components/schemas/OnBoard"},"description":"One per flight, in flying order."},"link":{"oneOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}]}},"required":["family","cabins","total","currency"]},"Result":{"type":"object","properties":{"id":{"type":"string","description":"Names these flights on this trip. Opaque, and the same for the same flights on the same trip at any time."},"airlines":{"type":"array","items":{"$ref":"#/components/schemas/Airline"},"description":"The airlines selling the flights, in flying order."},"price":{"$ref":"#/components/schemas/Price"},"stops":{"type":"integer","description":"The most stops in any direction."},"total_duration_min":{"oneOf":[{"type":"integer","description":"Both directions together."},{"type":"null"}]},"slices":{"type":"array","items":{"$ref":"#/components/schemas/Slice"},"description":"One per direction."},"fare":{"$ref":"#/components/schemas/FareSummary"},"link":{"$ref":"#/components/schemas/Link"},"fares":{"type":"array","items":{"$ref":"#/components/schemas/Fare"},"description":"detail=full, in place of fare: cheapest first."},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"},"description":"detail=full: every booking link, best first."},"booking_links":{"$ref":"#/components/schemas/BookingLinks"}},"required":["id","airlines","price","stops","total_duration_min","slices"]},"SearchData":{"type":"object","properties":{"search_id":{"type":"string","description":"Names this search for GET /v1/flights/search/{search_id}."},"status":{"type":"string","description":"partial when more results are still arriving.","enum":["complete","partial"]},"retry_after_ms":{"type":"integer","description":"Present when status is partial: when to ask again."},"query":{"$ref":"#/components/schemas/Query"},"pricing":{"$ref":"#/components/schemas/Pricing"},"counts":{"$ref":"#/components/schemas/Counts"},"next_cursor":{"oneOf":[{"type":"string","description":"Pass as cursor for the next page. null on the last page."},{"type":"null"}]},"airlines":{"type":"array","items":{"$ref":"#/components/schemas/AirlineSummary"},"description":"Every airline in the whole answer, cheapest first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Result"}}},"required":["search_id","status","query","pricing","counts","next_cursor","airlines","results"]},"SearchSuccess":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SearchData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"UsageSuccess":{"type":"object","properties":{"data":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","description":"Names the key. Never the key itself."},"name":{"type":"string","description":"Who it was issued to."},"mode":{"type":"string","description":"live or test.","enum":["live","test"]}},"required":["id","name","mode"]},"limits":{"type":"object","properties":{"requests_per_minute":{"type":"integer","description":"Requests a minute."},"new_trips_per_minute":{"type":"integer","description":"New supplier searches a minute."}},"required":["requests_per_minute","new_trips_per_minute"]},"this_minute":{"type":"object","properties":{"requests":{"type":"integer","description":"So far."},"new_trips":{"type":"integer","description":"So far."}},"required":["requests","new_trips"]},"today":{"type":"object","properties":{"requests":{"type":"integer","description":"Since midnight UTC."},"answered_from_memory":{"type":"integer","description":"Of those, answered with no supplier search."},"new_trips":{"type":"integer","description":"Supplier searches started."},"errors":{"type":"integer","description":"Requests that failed."}},"required":["requests","answered_from_memory","new_trips","errors"]}},"required":["key","limits","this_minute","today"]},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Leg":{"type":"object","properties":{"origin":{"type":"string","description":"3-letter airport code."},"destination":{"type":"string","description":"3-letter airport code."},"date":{"type":"string","description":"YYYY-MM-DD.","format":"date"}},"required":["origin","destination","date"]},"SearchBody":{"type":"object","description":"The fields of GET /v1/flights/search, as a JSON object of up to 16 KB. Name the trip either with origin, destination, depart_date and return_date, or with legs.","properties":{"origin":{"type":"string","description":"3-letter airport code."},"destination":{"type":"string","description":"3-letter airport code."},"depart_date":{"type":"string","description":"YYYY-MM-DD.","format":"date"},"return_date":{"type":"string","description":"YYYY-MM-DD.","format":"date"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"One entry per direction flown: one for one-way, two that return to the start for a round trip.","minItems":1,"maxItems":2},"adults":{"type":"integer","description":"1 to 9.","minimum":1,"maximum":9,"default":1},"children":{"type":"integer","description":"0 to 8.","minimum":0,"maximum":8,"default":0},"infants":{"type":"integer","description":"0 to 4.","minimum":0,"maximum":4,"default":0},"cabin":{"type":"string","description":"The cabin to search.","enum":["economy","premium_economy","business","first"],"default":"economy"},"currency":{"type":"string","description":"3-letter code.","default":"USD"},"max_stops":{"type":"integer","description":"0 to 3.","minimum":0,"maximum":3},"airlines":{"type":"string","description":"2-character codes, comma separated."},"sort":{"type":"string","description":"How to order results.","enum":["best","price","duration"],"default":"best"},"limit":{"type":"integer","description":"Results in this response.","minimum":1,"maximum":50,"default":10},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"detail":{"type":"string","description":"How much of each result to send.","enum":["summary","full"],"default":"summary"},"fares":{"type":"integer","description":"Fares per result when detail is full.","minimum":1,"maximum":10,"default":3},"wait_ms":{"type":"integer","description":"Answer with whatever has arrived by then, in milliseconds. Left out: 8000, as for the query parameter.","minimum":0,"maximum":30000},"max_age_s":{"type":"integer","description":"The oldest price the caller accepts.","minimum":0,"maximum":86400},"departure_date":{"type":"string","description":"YYYY-MM-DD (canonical alias for depart_date).","format":"date"},"passengers":{"$ref":"#/components/schemas/Passengers"},"response_mode":{"type":"string","description":"complete (default JSON), stream (SSE), or partial (fast return + poll).","enum":["complete","stream","partial"],"default":"complete"}}},"BookingLinkSlot":{"type":"object","description":"One Atlas-wrapped booking destination behind an opaque AES-256-GCM /r/al_<token> URL.","properties":{"url":{"oneOf":[{"type":"string","description":"Opaque https://<host>/r/al_... URL to open in the traveller's browser."},{"type":"null"}]},"available":{"type":"boolean","description":"true when a booking link is available for this slot."},"lands_on":{"oneOf":[{"type":"string","enum":["checkout","cart","passenger_details","flights_selected","itinerary","search_results","booking_page"]},{"type":"null"}]}},"required":["url","available","lands_on"]},"AirlineBookingLinkSlot":{"type":"object","description":"Direct airline booking slot behind an opaque /r/al_<token> URL.","properties":{"url":{"oneOf":[{"type":"string","description":"Opaque https://<host>/r/al_... URL opening the airline's site."},{"type":"null"}]},"available":{"type":"boolean","description":"true when a direct airline link is available for this itinerary."},"lands_on":{"oneOf":[{"type":"string","enum":["cart","passenger_details","flights_selected","search_results","booking_page"]},{"type":"null"}]},"airline":{"oneOf":[{"type":"string","description":"2-character IATA carrier code for the destination airline."},{"type":"null"}]}},"required":["url","available","lands_on","airline"]},"BookingLinks":{"type":"object","description":"The three Atlas-wrapped booking link slots returned on every partner search result.","properties":{"supplier":{"$ref":"#/components/schemas/BookingLinkSlot"},"airline":{"$ref":"#/components/schemas/AirlineBookingLinkSlot"},"google_flights":{"$ref":"#/components/schemas/BookingLinkSlot"}},"required":["supplier","airline","google_flights"]},"Passengers":{"type":"object","description":"Passenger counts (canonical partner object alternative to flat adults/children/infants).","properties":{"adults":{"type":"integer","minimum":1,"maximum":9,"default":1},"children":{"type":"integer","minimum":0,"maximum":8,"default":0},"infants":{"type":"integer","minimum":0,"maximum":4,"default":0}}}}}}