Jan
4
Mon
British Airways BA7173
7:00 PM – 8:28 AM
CDG → ICN
From JPY 89.95
Overview
flights / #6
7:00 PM – 8:28 AM
CDG → ICN
From JPY 89.95
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/6" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/6" ); 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/6"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/6"
)
flight = res.json() Response
{
"id": 6,
"flightNumber": "BA7173",
"airline": "British Airways",
"departureAirport": "CDG",
"arrivalAirport": "ICN",
"departureAt": "2027-01-04T19:00:09.792Z",
"arrivalAt": "2027-01-05T08:28:09.792Z",
"durationMinutes": 808,
"status": "landed",
"priceFrom": 89.95,
"currency": "JPY",
"createdAt": "2026-11-25T19:00:09.792Z"
}