Feb
6
Sat
British Airways BA2603
2:41 PM – 4:32 PM
GRU → SYD
From GBP736.36
flights / #181
2:41 PM – 4:32 PM
GRU → SYD
From GBP736.36
curl -sS \
"https://example-data.com/api/v1/flights/181" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/flights/181"
);
const flight = await res.json();import type { Flight } from "https://example-data.com/types/flights.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/flights/181"
);
const flight = (await res.json()) as Flight;import requests
res = requests.get(
"https://example-data.com/api/v1/flights/181"
)
flight = res.json() {
"id": 181,
"flightNumber": "BA2603",
"airline": "British Airways",
"departureAirport": "GRU",
"arrivalAirport": "SYD",
"departureAt": "2027-02-06T14:41:30.439Z",
"arrivalAt": "2027-02-06T16:32:30.439Z",
"durationMinutes": 111,
"status": "in_air",
"priceFrom": 736.36,
"currency": "GBP",
"createdAt": "2027-01-07T14:41:30.439Z"
}