Jan
3
Sun
British Airways BA5726
8:53 AM – 5:39 PM
YYZ → ICN
From AED 1309.46
Overview
flights / #263
8:53 AM – 5:39 PM
YYZ → ICN
From AED 1309.46
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/263" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/263" ); 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/263"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/263"
)
flight = res.json() Response
{
"id": 263,
"flightNumber": "BA5726",
"airline": "British Airways",
"departureAirport": "YYZ",
"arrivalAirport": "ICN",
"departureAt": "2027-01-03T08:53:20.812Z",
"arrivalAt": "2027-01-03T17:39:20.812Z",
"durationMinutes": 526,
"status": "boarding",
"priceFrom": 1309.46,
"currency": "AED",
"createdAt": "2026-11-05T08:53:20.812Z"
}