Jan
4
Mon
Lufthansa LH4774
4:34 PM – 6:01 AM
ORD → FCO
From GBP 924.14
Overview
flights / #55
4:34 PM – 6:01 AM
ORD → FCO
From GBP 924.14
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/55" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/55" ); 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/55"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/55"
)
flight = res.json() Response
{
"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"
}