example-data.com
Menu
Browse docs and collections

Overview

flights / #78

Dec
31
Wed

Lufthansa LH4466

2:30 AM – 7:26 AM

YYZ → SYD

From CAD 1973.44

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/78"
);
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/78"
);
const flight = (await res.json()) as Flight;

Python example

import requests

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

Response

{
  "id": 78,
  "flightNumber": "LH4466",
  "airline": "Lufthansa",
  "departureAirport": "YYZ",
  "arrivalAirport": "SYD",
  "departureAt": "2025-12-31T02:30:58.876Z",
  "arrivalAt": "2025-12-31T07:26:58.876Z",
  "durationMinutes": 296,
  "status": "in_air",
  "priceFrom": 1973.44,
  "currency": "CAD",
  "createdAt": "2025-12-17T02:30:58.876Z"
}