Feb
10
Wed
Air France AF5037
1:46 AM – 1:41 PM
FCO → FRA
From AUD1234.78
flights / #112
1:46 AM – 1:41 PM
FCO → FRA
From AUD1234.78
curl -sS \
"https://example-data.com/api/v1/flights/112" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/flights/112"
);
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/112"
);
const flight = (await res.json()) as Flight;import requests
res = requests.get(
"https://example-data.com/api/v1/flights/112"
)
flight = res.json() {
"id": 112,
"flightNumber": "AF5037",
"airline": "Air France",
"departureAirport": "FCO",
"arrivalAirport": "FRA",
"departureAt": "2027-02-10T01:46:01.417Z",
"arrivalAt": "2027-02-10T13:41:01.417Z",
"durationMinutes": 715,
"status": "boarding",
"priceFrom": 1234.78,
"currency": "AUD",
"createdAt": "2026-12-16T01:46:01.417Z"
}