Skip to main content

FlightSearchResponse

segments object[]required
  • Array [
  • id int32required
    Example: 1
    departureAirportCode stringrequired
    Example: DXB
    arrivalAirportCode stringrequired
    Example: CAI
    departureTime date-timerequired
    Example: 2025-05-13T16:20:00+04:00
    arrivalTime date-timerequired
    Example: 2025-05-13T19:05:00+03:00
    marketingAirlineCode stringrequired
    Example: MS
    marketingFlightNumber stringrequired
    Example: 913
    operatingAirlineCode string

    Only present if the flight is operated by a different airline than the marketing airline

    Example: SV
    operatingFlightNumber string

    Only present if the flight is operated by a different airline than the marketing airline

    Example: 2468
    aircraftCode string

    IATA aircraft equipment code

    Example: 321
  • ]
  • legs object[]required
  • Array [
  • id int32required
    Example: 1
    segments int32[]required

    Ordered list of segment IDs that compose the leg

    Possible values: >= 1

    Example: [1]
  • ]
  • itineraries object[]required
  • Array [
  • flight objectrequired
    legs int32[]required

    References to items in the global legs list

    Possible values: >= 1

    Example: [1]
    price objectrequired
    currency stringrequired
    Example: AED
    baseAmount stringrequired
    Example: 290.00
    taxAmount stringrequired
    Example: 29.00
    bookingFee stringrequired
    Example: 2.99
    totalAmount stringrequired

    Grand total including base, tax and booking fee

    Example: 321.99
    bookingUrl uri

    Deep link to the booking page

    Example: https://wego.com/book/abc123
  • ]
  • ttlSeconds integerrequired

    Time-to-live for caching the response (seconds)

    Example: 3000
    FlightSearchResponse
    {
    "segments": [
    {
    "id": 1,
    "departureAirportCode": "DXB",
    "arrivalAirportCode": "CAI",
    "departureTime": "2025-05-13T16:20:00+04:00",
    "arrivalTime": "2025-05-13T19:05:00+03:00",
    "marketingAirlineCode": "MS",
    "marketingFlightNumber": "913",
    "operatingAirlineCode": "SV",
    "operatingFlightNumber": "2468",
    "aircraftCode": 321
    }
    ],
    "legs": [
    {
    "id": 1,
    "segments": [
    1
    ]
    }
    ],
    "itineraries": [
    {
    "flight": {
    "legs": [
    1
    ]
    },
    "price": {
    "currency": "AED",
    "baseAmount": "290.00",
    "taxAmount": "29.00",
    "bookingFee": "2.99",
    "totalAmount": "321.99"
    },
    "bookingUrl": "https://wego.com/book/abc123"
    }
    ],
    "ttlSeconds": 3000
    }