example-data.com

flights / #76

Mar
6
Fri

British Airways BA4073

4:49 PM – 9:40 PM

DFW → LAX

From AUD1040.05

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/76"
)
flight = res.json()
{
  "id": 76,
  "flightNumber": "BA4073",
  "airline": "British Airways",
  "departureAirport": "DFW",
  "arrivalAirport": "LAX",
  "departureAt": "2026-03-06T16:49:06.006Z",
  "arrivalAt": "2026-03-06T21:40:06.006Z",
  "durationMinutes": 291,
  "status": "cancelled",
  "priceFrom": 1040.05,
  "currency": "AUD",
  "createdAt": "2026-02-27T16:49:06.006Z"
}
Draftbit