AllFlights

The All Flights API returns the current status of all flights at that airport, for either arrivals or departures. The response is in the format of an array of flight records. The optional airline parameter returns flights for that airline only.

Format

Method Request
GET https://host/flifo/v3/flights/{airport}/{airline}/{adi}

Path Parameters

Parameter Type Description Required
airport Path The airport IATA code. Yes
airline Path The airline IATA code. No
adi Path Departure or arrival indicator(a/d) Yes
operationDate Query Date of operation for the flight based on date at airport used in search (defaults to current UTC day) No
pastWindow Query number of hours in the past 2 show flights No
futureWindow Query number of hours in future to show flights No
departureOrArrivalAirport Query filters response by airport. If request is for departures (adi=’d’), the response returns only flights arriving at departureOrArrivalAirport. If request is for arrivals (adi=’a’), the response returns only flights departing from departureOrArrivalAirport. No
groupCodeshares Query If true, the response will group all flights which are code sharing with the operating carrier. The default is false No
callback Query Name of callback function (JSONP). No

Description

The All Flights api returns the current status of all flights at that airport, for either arrivals or departures. The response is in the format of an array of flight records. The optional airline parameter returns flights for that airline only.

Payload Example

Request

"https://host/flifo/v3/flights/lax/d/?futureWindow=2

Response


{
    "airportCode": "LAX",
    "airlineCode": "DL",
    "flightDate": "2018-11-20",
    "adi": "D",
    "subscribedForUpdates": false,
    "flightRecord": [
        {
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "1212",
                "airline": "Delta Air Lines"
            },
            "airportCode": "DTW",
            "aircraft": "757",
            "status": "SC",
            "statusText": "Scheduled",
            "scheduled": "2018-11-20T07:20:00-0800",
            "city": "Detroit",
            "marketingCarriers": [
                {
                    "airlineCode": "VA",
                    "flightNumber": "6427",
                    "airline": "Virgin Australia"
                },
                {
                    "airlineCode": "VS",
                    "flightNumber": "5734",
                    "airline": "Virgin Atlantic Airways"
                },
                {
                    "airlineCode": "KL",
                    "flightNumber": "6355",
                    "airline": "KLM Royal Dutch Airlines"
                },
                {
                    "airlineCode": "AM",
                    "flightNumber": "4130",
                    "airline": "AeroMéxico"
                }
            ]
        },
        {
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "333",
                "airline": "Delta Air Lines"
            },
            "airportCode": "ATL",
            "aircraft": "757",
            "status": "SC",
            "statusText": "Scheduled",
            "scheduled": "2018-11-20T07:30:00-0800",
            "city": "Atlanta",
            "marketingCarriers": [
                {
                    "airlineCode": "VS",
                    "flightNumber": "5178",
                    "airline": "Virgin Atlantic Airways"
                },
                {
                    "airlineCode": "AF",
                    "flightNumber": "2845",
                    "airline": "Air France"
                },
                {
                    "airlineCode": "VA",
                    "flightNumber": "6601",
                    "airline": "Virgin Australia"
                },
                {
                    "airlineCode": "KL",
                    "flightNumber": "5015",
                    "airline": "KLM Royal Dutch Airlines"
                },
                {
                    "airlineCode": "9W",
                    "flightNumber": "7643",
                    "airline": "Jet Airways"
                },
                {
                    "airlineCode": "WS",
                    "flightNumber": "6892",
                    "airline": "WestJet"
                },
                {
                    "airlineCode": "G3",
                    "flightNumber": "8027",
                    "airline": "City Connexion Airlines"
                }
            ]
        },
        {
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "937",
                "airline": "Delta Air Lines"
            },
            "airportCode": "CUN",
            "aircraft": "739",
            "status": "SC",
            "statusText": "Scheduled",
            "scheduled": "2018-11-20T07:45:00-0800",
            "city": "Cancun",
            "marketingCarriers": [
                {
                    "airlineCode": "VA",
                    "flightNumber": "6835",
                    "airline": "Virgin Australia"
                },
                {
                    "airlineCode": "AM",
                    "flightNumber": "5284",
                    "airline": "AeroMéxico"
                }
            ]
        },
        {
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "1252",
                "airline": "Delta Air Lines"
            },
            "airportCode": "JFK",
            "aircraft": "332",
            "status": "SC",
            "statusText": "Scheduled",
            "scheduled": "2018-11-20T07:50:00-0800",
            "city": "New York",
            "marketingCarriers": [
                {
                    "airlineCode": "G3",
                    "flightNumber": "8065",
                    "airline": "City Connexion Airlines"
                },
                {
                    "airlineCode": "VA",
                    "flightNumber": "6674",
                    "airline": "Virgin Australia"
                },
                {
                    "airlineCode": "AM",
                    "flightNumber": "3949",
                    "airline": "AeroMéxico"
                },
                {
                    "airlineCode": "UX",
                    "flightNumber": "3342",
                    "airline": "Air Europa"
                },
                {
                    "airlineCode": "KL",
                    "flightNumber": "5167",
                    "airline": "KLM Royal Dutch Airlines"
                },
                {
                    "airlineCode": "VS",
                    "flightNumber": "4748",
                    "airline": "Virgin Atlantic Airways"
                },
                {
                    "airlineCode": "AZ",
                    "flightNumber": "3399",
                    "airline": "Alitalia"
                },
                {
                    "airlineCode": "9W",
                    "flightNumber": "7593",
                    "airline": "Jet Airways"
                }
            ]
        }
    ],
    "success": true
}
  

NOTE: Fields not available in the response will be omitted

NOTE: Above response payload example has been severely truncated. It is possible to receive dozens, or hundreds, of records.

Errors

Description Payload
Response code:404
Reason:No Flight Data

{
  "errors": {
     "error": [
        {
          "description": "No Data available for this request",
          "code": "1001"
        }
     ]
    },
    "success": false
}

Response code:404
Reason:Airport not Found

{
  "errors": {
     "error": [
        {
          "description": “Airport not found",
          "code": "2020"
          "airportCode": "ZZZ"
        }
     ]
    },
    "success": false
}


Response code:404
Reason:Airline not Found

{
  "errors": {
     "error": [
        {
          "description": “Airline not found",
          "code": "2019"
          "airportCode": "XS"
        }
     ]
    },
    "success": false
}


Response code:400
Reason:departure Or ArrivalAirport invalid

{
    "errors": {
        "error": [
            {
                "description": "departureOrArrivalAirport invalid",
                "code": 1008
            }
        ]
    },
    "success": false
}


Response code:404
Reason:Not supported

{
  "errors": {
     "error": [
        {
          "description": API not supported, either for this airport, or generally",
          "code": "1007"
        }
     ]
    },
    "success": false
}
Response code:404
Reason:No Service Available

{
  "errors": {
     "error": [
       {
         "description": "no service available",
         "code": "1003"
       }
      ]
   },
   "success": false
}