example-data.com

flights / #51

Sep
17
Thu

United Airlines UA1628

1:35 PM – 8:38 PM

YYZ → BCN

From AUD1714.25

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/51"
)
flight = res.json()
{
  "id": 51,
  "flightNumber": "UA1628",
  "airline": "United Airlines",
  "departureAirport": "YYZ",
  "arrivalAirport": "BCN",
  "departureAt": "2026-09-17T13:35:37.561Z",
  "arrivalAt": "2026-09-17T20:38:37.561Z",
  "durationMinutes": 423,
  "status": "boarding",
  "priceFrom": 1714.25,
  "currency": "AUD",
  "createdAt": "2026-07-15T13:35:37.561Z"
}
Draftbit