example-data.com
Menu
Browse docs and collections

Overview

flights / #168

Oct
17
Sat

Lufthansa LH4829

12:30 AM – 6:07 AM

SYD → ORD

From EUR 328.83

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flights/168" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/168"
);
const flight = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/flights.d.ts https://example-data.com/types/flights.d.ts
import type { Flight } from "./types/flights";

const res = await fetch(
  "https://example-data.com/api/v1/flights/168"
);
const flight = (await res.json()) as Flight;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/168"
)
flight = res.json()

Response

{
  "id": 168,
  "flightNumber": "LH4829",
  "airline": "Lufthansa",
  "departureAirport": "SYD",
  "arrivalAirport": "ORD",
  "departureAt": "2026-10-17T00:30:33.082Z",
  "arrivalAt": "2026-10-17T06:07:33.082Z",
  "durationMinutes": 337,
  "status": "scheduled",
  "priceFrom": 328.83,
  "currency": "EUR",
  "createdAt": "2026-07-22T00:30:33.082Z"
}