Jan
4
Mon
Lufthansa LH4774
4:34 PM – 6:01 AM
ORD → FCO
From GBP924.14
flights / #55
4:34 PM – 6:01 AM
ORD → FCO
From GBP924.14
curl -sS \
"https://example-data.com/api/v1/flights/55" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/flights/55"
);
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/55"
);
const flight = (await res.json()) as Flight;import requests
res = requests.get(
"https://example-data.com/api/v1/flights/55"
)
flight = res.json() {
"id": 55,
"flightNumber": "LH4774",
"airline": "Lufthansa",
"departureAirport": "ORD",
"arrivalAirport": "FCO",
"departureAt": "2027-01-04T16:34:52.767Z",
"arrivalAt": "2027-01-05T06:01:52.767Z",
"durationMinutes": 807,
"status": "delayed",
"priceFrom": 924.14,
"currency": "GBP",
"createdAt": "2026-10-07T16:34:52.767Z"
}