Historical flight data by flight number One flight number, one date, one record.

Everything you need to pull what a past flight actually did, and the three mistakes that return the wrong flight.

Guides ·

To get historical data for a flight, send its IATA flight number and its scheduled departure date in UTC to GET /api/v1/flights/status. The response holds scheduled and actual times on both ends, arrival and departure delay in minutes, the aircraft, and a status of delayed, cancelled, diverted or on_time. It covers flights up to about 10 years back.

The request

curl
curl -sG "https://flight-api.dev/api/v1/flights/status" \
  -H "Authorization: Bearer $FLIGHT_API_KEY" \
  --data-urlencode "flightNumber=BA249" \
  --data-urlencode "flightDate=2026-08-14"

You need an API key from the dashboard. Send it as Authorization: Bearer … or x-api-key. Each lookup costs 5 credits.

TypeScript

TypeScript
const params = new URLSearchParams({
  flightNumber: 'BA249',
  flightDate: '2026-08-14',
})

const response = await fetch(`https://flight-api.dev/api/v1/flights/status?${params}`, {
  headers: { Authorization: `Bearer ${process.env.FLIGHT_API_KEY}` },
})

const { success, data, message } = await response.json()
if (!success) throw new Error(message)

// data.selected is the resolved record.
console.log(data.selected?.status, data.selected?.delayMinutes, data.meta.cached)

Python

Python
import os, requests

response = requests.get(
    "https://flight-api.dev/api/v1/flights/status",
    params={"flightNumber": "BA249", "flightDate": "2026-08-14"},
    headers={"Authorization": f"Bearer {os.environ['FLIGHT_API_KEY']}"},
    timeout=60,
)
body = response.json()
if not body["success"]:
    raise RuntimeError(body["message"])

selected = body["data"]["selected"]
print(selected["status"], selected["delayMinutes"], selected["actualArrival"])

What comes back

Response
{
  "success": true,
  "data": {
    "flightNumber": "BA249",
    "flightDate": "2026-08-14",
    "originIata": "LHR",
    "destinationIata": "GRU",
    "selected": {
      "found": true,
      "complete": true,
      "status": "delayed",
      "isDelayed": true,
      "isCancelled": false,
      "isDiverted": false,
      "delayMinutes": 47,
      "departureDelayMinutes": 39,
      "originIata": "LHR",
      "destinationIata": "GRU",
      "scheduledDeparture": "2026-08-14T21:40:00.000Z",
      "scheduledArrival": "2026-08-15T05:05:00.000Z",
      "estimatedDeparture": null,
      "estimatedArrival": null,
      "actualDeparture": "2026-08-14T22:19:00.000Z",
      "actualArrival": "2026-08-15T05:52:00.000Z",
      "airline": {
        "name": "British Airways",
        "iata": "BA",
        "icao": "BAW"
      },
      "aircraft": {
        "registration": "G-ZBKF",
        "iata": "789",
        "icao": "B789",
        "icao24": null,
        "label": "Boeing 787-9"
      },
      "flightIata": "BA249",
      "flightIcao": "BAW249",
      "source": null,
      "statusRaw": "Landed 05:52"
    },
    "flightDelay": {
      "delayMinutes": 47,
      "delayFormatted": "47 min late",
      "statusKind": "landed",
      "disruption": {
        "type": "delay",
        "isCancelled": false,
        "isDiverted": false,
        "neverArrived": false,
        "arrivalDelayMinutes": 47,
        "departureDelayMinutes": 39,
        "confidence": "high",
        "sources": [
          "ata_vs_sta"
        ],
        "rationale": [
          "Actual arrival 47 min after scheduled arrival"
        ]
      }
    },
    "meta": {
      "durationMs": 0,
      "startedAt": "2026-08-24T09:12:04.881Z",
      "finishedAt": "2026-08-24T09:12:04.881Z",
      "source": null,
      "cached": true,
      "persisted": true,
      "recordId": null
    },
    "sources": []
  }
}

data.selected is the flight. selected.delayMinutes is arrival delay and departureDelayMinutes is departure delay, both signed (negative means early). data.flightDelay.disruption.rationale explains which clocks were compared, and confidence says whether actual times or estimates carried the answer.

Three ways to get the wrong flight

1. Sending the local date

flightDate is the scheduled departure date in UTC. A flight leaving Athens at 00:30 local time in January departs at 22:30 UTC the day before. Send the local date and you ask for a flight that, in UTC, never existed. Convert with the departure airport’s time zone first.

2. Ignoring codeshares

The same metal can fly under four flight numbers, and some airlines reuse one number for two legs in a day (out and back, or a multi-stop). Add origin and destination as IATA codes and the match is pinned to the leg you mean.

3. Asking too early

A flight inside the last three UTC days can still change: a late landing time gets corrected, a status flips. We resolve those live on every request. Older disruptions are frozen and come back from storage with meta.cached: true. If you are settling something (a claim, an invoice) wait until the flight is past that window.

When the answer is “not found”

selected: null means no flight matched that number on that date. Check the date conversion first; it is the cause far more often than missing data. Then check the number: a passenger’s boarding pass may show the marketing carrier’s code, not the operating one.

Want to see a record before writing code? The lookup console shows real settled flights in the exact response shape.

Questions

How far back does historical flight data go?
About 10 years, across 1,240 carriers and 9,800 airports.
Can I search by route instead of flight number?
No. The key is the flight number and the date. Origin and destination narrow the match but cannot replace the number.
Is the date the departure or the arrival date?
The scheduled departure date, in UTC.

Check a flight you already know.

The console shows real settled records in the exact shape the API returns. No account needed.