Nov
7
Fri
British Airways BA8422
6:36 AM – 12:35 PM
NRT → SYD
From AUD 1818.85
Overview
flights / #379
6:36 AM – 12:35 PM
NRT → SYD
From AUD 1818.85
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/379" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/379" ); 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/379"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/379"
)
flight = res.json() Response
{
"id": 379,
"flightNumber": "BA8422",
"airline": "British Airways",
"departureAirport": "NRT",
"arrivalAirport": "SYD",
"departureAt": "2025-11-07T06:36:14.167Z",
"arrivalAt": "2025-11-07T12:35:14.167Z",
"durationMinutes": 359,
"status": "boarding",
"priceFrom": 1818.85,
"currency": "AUD",
"createdAt": "2025-09-20T06:36:14.167Z"
}