example-data.com

flights / #219

Feb
11
Thu

British Airways BA3389

5:11 PM – 11:05 PM

FRA → LHR

From CAD1073.66

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/219"
)
flight = res.json()
{
  "id": 219,
  "flightNumber": "BA3389",
  "airline": "British Airways",
  "departureAirport": "FRA",
  "arrivalAirport": "LHR",
  "departureAt": "2027-02-11T17:11:18.331Z",
  "arrivalAt": "2027-02-11T23:05:18.331Z",
  "durationMinutes": 354,
  "status": "delayed",
  "priceFrom": 1073.66,
  "currency": "CAD",
  "createdAt": "2026-12-24T17:11:18.331Z"
}
Draftbit