bookachoo

Get Direct Flights

Retrieve a listing detailing to what destination airports, and on which weekdays direct flights can be taken from an origin airport.

null: unconfirmed
true: confirmed direct connection
false: confirmed no direct connection

Request
Query parameters
NameTypeDescription
from required string IATA code of the origin airport, pattern: /^[A-Z]{3}$/
Responses
  • Successful response with a list of destination airport codes with direct flights arriving from origin

    Body
    Property pathTypeDescription
    directFlights optional object

    Container for direct flight information per weekday per airport

    directFlights.^[A-Z]{3}$ optional object

    IATA code of the destination airport mapping to direct flight information

    .^[A-Z]{3}$.airport object

    Destination airport

    .^[A-Z]{3}$.airport.code string

    Most relevant code used to designate this airport

    .^[A-Z]{3}$.airport.name string

    Name of the airport in English

    .^[A-Z]{3}$.airport.metroCode optional string If applicable, optional IATA code of the metropolis the airport is in, pattern: /^[A-Z]{3}$/
    .^[A-Z]{3}$.airport.city string

    Common name, in English, of the city the airport is located in

    .^[A-Z]{3}$.airport.country string

    UK English name of the country the airport is in

    .^[A-Z]{3}$.weekdays array

    List with boolean elements, one for each day of the week

    Example: [false, false, true, null, null, true, true]
    Example
    {
      "directFlights": {
        "HND": {
          "airport": {
            "city": "Tokyo",
            "code": "HND",
            "country": "Japan",
            "metroCode": "TYO",
            "name": "Tokyo Haneda International Airport"
          },
          "weekdays": [
            true,
            null,
            true,
            true,
            null,
            null,
            null
          ]
        },
        "JFK": {
          "airport": {
            "city": "New York City",
            "code": "JFK",
            "country": "United States of America",
            "metroCode": "NYC",
            "name": "John F Kennedy International Airport"
          },
          "weekdays": [
            null,
            true,
            true,
            true,
            true,
            true,
            true
          ]
        }
      }
    }