example-data.com

flights / #239

Jan
18
Sun

British Airways BA5979

3:11 PM – 11:43 PM

MEX → DFW

From AUD2195.98

Component variants

curl -sS \
  "https://example-data.com/api/v1/flights/239" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/flights/239"
);
const flight = await res.json();
import type { Flight } from "https://example-data.com/types/flights.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/flights/239"
);
const flight = (await res.json()) as Flight;
import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/239"
)
flight = res.json()
{
  "id": 239,
  "flightNumber": "BA5979",
  "airline": "British Airways",
  "departureAirport": "MEX",
  "arrivalAirport": "DFW",
  "departureAt": "2026-01-18T15:11:54.363Z",
  "arrivalAt": "2026-01-18T23:43:54.363Z",
  "durationMinutes": 512,
  "status": "in_air",
  "priceFrom": 2195.98,
  "currency": "AUD",
  "createdAt": "2025-11-04T15:11:54.363Z"
}
Draftbit