example-data.com

flights / #166

Mar
8
Mon

Lufthansa LH2866

4:33 PM – 4:34 AM

BCN → LHR

From AUD2335.28

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/166"
)
flight = res.json()
{
  "id": 166,
  "flightNumber": "LH2866",
  "airline": "Lufthansa",
  "departureAirport": "BCN",
  "arrivalAirport": "LHR",
  "departureAt": "2027-03-08T16:33:42.483Z",
  "arrivalAt": "2027-03-09T04:34:42.483Z",
  "durationMinutes": 721,
  "status": "delayed",
  "priceFrom": 2335.28,
  "currency": "AUD",
  "createdAt": "2027-01-23T16:33:42.483Z"
}
Draftbit