example-data.com

flights / #59

Jan
5
Tue

Lufthansa LH6917

6:21 AM – 9:49 AM

CDG → SYD

From AUD500.11

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/59"
)
flight = res.json()
{
  "id": 59,
  "flightNumber": "LH6917",
  "airline": "Lufthansa",
  "departureAirport": "CDG",
  "arrivalAirport": "SYD",
  "departureAt": "2027-01-05T06:21:41.453Z",
  "arrivalAt": "2027-01-05T09:49:41.453Z",
  "durationMinutes": 208,
  "status": "boarding",
  "priceFrom": 500.11,
  "currency": "AUD",
  "createdAt": "2026-12-11T06:21:41.453Z"
}
Draftbit