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

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

Path Parameters

Key Description Required
airport The airport IATA code. Yes
airline The airline IATA code. No
adi Departure or Arrival Indicator: 'A' or 'a' Departure Indicator: 'D' or 'd' Yes

Request Query Parameters

Key Description Required
operationDate Date of operation for the flight (default to current day). No
pastWindow Number of hours in the past 2 show flights. No
futureWindow Number of hours in future to show flights. No
departureOrArrivalAirport 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 If true, the response will group all flights which are code sharing with the operating carrier. The default is false. No
callback Name of callback function (JSONP). No

Payload Example

Request

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

Response


{
    "airportCode": "lax",
    "airlineCode": "dl",
    "flightDate": "2014-11-12T19:05:12.756Z",
    "adi": "a",
    "flightRecord": [
        {
            "aircraft": "330",
            "status": "DL",
            "statusText": "Delayed",
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "34"
            },
            "scheduled": "2014-11-11T23:45:00",
            "estimated": "2014-11-12T00:24:00",
            "cityCode": "OGG",
            "city": "Kahalui Maui",
            "tailNumber": "N380HA"
        },
        {
            "aircraft": "767",
            “terminal”: “T”,
     "claim":"8",
            "gate": "68B",
            "status": "AR",
            "statusText": "Arrived",
            "operatingCarrier": {
                "airlineCode": "DL",
                "flightNumber": "427"
            },
            "scheduled": "2014-11-12T00:30:00",
            "estimated": "2014-11-12T00:01:00",
            "cityCode": "JFK",
            "city": "New York-JFK",
            "tailNumber": "N188DN",
            "marketingCarriers": {                {
                    "airlineCode": "KL",
                    "flightNumber": "5620"
                }
            ]
        }
    ],
    "success": true
}
  

NOTE 1: Fields not available in the response will be omitted

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

Errors

HTTP Code Reason Payload
400 Auth failed

{
 "errors":
   {"error":[
     {"description":"authentication failed",
       "code":"9998"
     }
   ]
  },
  "success":false
}

404 No Flight Data

{
  "errors": {
     "error": [
        {
          "description": "No Flight Data",
          "code": "1001"
        }
     ]
    },
    "success": false
}

404 Airport not Found

{
  "errors": {
     "error": [
        {
          "description": airport not found",
          "code": "2020"
        }
     ]
    },
    "success": false
}

404 Airline not Found

{
  "errors": {
     "error": [
        {
          "description": airline not found",
          "code": "2019"
        }
     ]
    },
    "success": false
}

400 Departure or Arrival Airport invalid

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

404 Not Supported

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

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

500 System Error

{
  "errors": {
     "error": [
       {
         "A system error occurred. Contact Support",
         "code": "9999"
       }
      ]
   },
   "success": false
}