example-data.com

flights / #9

Aug
19
Wed

British Airways BA1412

4:40 AM – 6:45 PM

LHR → NRT

From CAD701.28

Component variants

curl -sS \
  "https://example-data.com/api/v1/flights/9" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/flights/9"
);
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/9"
);
const flight = (await res.json()) as Flight;
import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/9"
)
flight = res.json()
{
  "id": 9,
  "flightNumber": "BA1412",
  "airline": "British Airways",
  "departureAirport": "LHR",
  "arrivalAirport": "NRT",
  "departureAt": "2026-08-19T04:40:48.518Z",
  "arrivalAt": "2026-08-19T18:45:48.518Z",
  "durationMinutes": 845,
  "status": "scheduled",
  "priceFrom": 701.28,
  "currency": "CAD",
  "createdAt": "2026-06-02T04:40:48.518Z"
}
Draftbit