Oct
4
Sat
Lufthansa LH828
11:39 PM – 4:56 AM
SIN → YYZ
From GBP 264.04
Overview
flights / #340
11:39 PM – 4:56 AM
SIN → YYZ
From GBP 264.04
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/340" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/340" ); 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/340"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/340"
)
flight = res.json() Response
{
"id": 340,
"flightNumber": "LH828",
"airline": "Lufthansa",
"departureAirport": "SIN",
"arrivalAirport": "YYZ",
"departureAt": "2025-10-04T23:39:53.244Z",
"arrivalAt": "2025-10-05T04:56:53.244Z",
"durationMinutes": 317,
"status": "delayed",
"priceFrom": 264.04,
"currency": "GBP",
"createdAt": "2025-08-09T23:39:53.244Z"
}