Apr
23
Thu
Lufthansa LH5022
3:15 PM – 7:01 PM
LHR → ORD
From GBP 763.85
Overview
flights / #26
3:15 PM – 7:01 PM
LHR → ORD
From GBP 763.85
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/26" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/26" ); 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/26"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/26"
)
flight = res.json() Response
{
"id": 26,
"flightNumber": "LH5022",
"airline": "Lufthansa",
"departureAirport": "LHR",
"arrivalAirport": "ORD",
"departureAt": "2026-04-23T15:15:31.779Z",
"arrivalAt": "2026-04-23T19:01:31.779Z",
"durationMinutes": 226,
"status": "delayed",
"priceFrom": 763.85,
"currency": "GBP",
"createdAt": "2026-02-20T15:15:31.779Z"
}