Jun
5
Fri
Lufthansa LH6756
2:29 PM – 9:33 PM
LAX → YYZ
From USD 955.56
Overview
flights / #129
2:29 PM – 9:33 PM
LAX → YYZ
From USD 955.56
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/129" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/129" ); 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/129"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/129"
)
flight = res.json() Response
{
"id": 129,
"flightNumber": "LH6756",
"airline": "Lufthansa",
"departureAirport": "LAX",
"arrivalAirport": "YYZ",
"departureAt": "2026-06-05T14:29:35.208Z",
"arrivalAt": "2026-06-05T21:33:35.208Z",
"durationMinutes": 424,
"status": "landed",
"priceFrom": 955.56,
"currency": "USD",
"createdAt": "2026-04-28T14:29:35.208Z"
}