Aug
19
Wed
British Airways BA1412
4:40 AM – 6:45 PM
LHR → NRT
From CAD 701.28
Overview
flights / #9
4:40 AM – 6:45 PM
LHR → NRT
From CAD 701.28
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/9" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/9" ); 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/9"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/9"
)
flight = res.json() Response
{
"id": 9,
"flightNumber": "BA1412",
"airline": "British Airways",
"departureAirport": "LHR",
"arrivalAirport": "NRT",
"departureAt": "2026-08-19T04:40:48.518Z",
"arrivalAt": "2026-08-19T18:45:48.518Z",
"durationMinutes": 845,
"status": "scheduled",
"priceFrom": 701.28,
"currency": "CAD",
"createdAt": "2026-06-02T04:40:48.518Z"
}