example-data.com

flights / #26

Apr
23
Thu

Lufthansa LH5022

3:15 PM – 7:01 PM

LHR → ORD

From GBP763.85

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/26"
)
flight = res.json()
{
  "id": 26,
  "flightNumber": "LH5022",
  "airline": "Lufthansa",
  "departureAirport": "LHR",
  "arrivalAirport": "ORD",
  "departureAt": "2026-04-23T15:15:31.779Z",
  "arrivalAt": "2026-04-23T19:01:31.779Z",
  "durationMinutes": 226,
  "status": "delayed",
  "priceFrom": 763.85,
  "currency": "GBP",
  "createdAt": "2026-02-20T15:15:31.779Z"
}
Draftbit