Mar
3
Wed
British Airways BA6204
6:57 AM – 8:44 AM
SIN → GRU
From GBP 616.27
Overview
flights / #396
6:57 AM – 8:44 AM
SIN → GRU
From GBP 616.27
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/396" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/396" ); 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/396"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/396"
)
flight = res.json() Response
{
"id": 396,
"flightNumber": "BA6204",
"airline": "British Airways",
"departureAirport": "SIN",
"arrivalAirport": "GRU",
"departureAt": "2027-03-03T06:57:04.137Z",
"arrivalAt": "2027-03-03T08:44:04.137Z",
"durationMinutes": 107,
"status": "boarding",
"priceFrom": 616.27,
"currency": "GBP",
"createdAt": "2027-01-25T06:57:04.137Z"
}