Apr
27
Tue
Lufthansa LH4285
3:13 PM – 5:58 PM
NRT → SYD
From SGD 1592.89
Overview
flights / #336
3:13 PM – 5:58 PM
NRT → SYD
From SGD 1592.89
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/336" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/336" ); 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/336"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/336"
)
flight = res.json() Response
{
"id": 336,
"flightNumber": "LH4285",
"airline": "Lufthansa",
"departureAirport": "NRT",
"arrivalAirport": "SYD",
"departureAt": "2027-04-27T15:13:22.995Z",
"arrivalAt": "2027-04-27T17:58:22.995Z",
"durationMinutes": 165,
"status": "delayed",
"priceFrom": 1592.89,
"currency": "SGD",
"createdAt": "2027-02-26T15:13:22.995Z"
}