Jan
5
Tue
Emirates EK561
7:41 AM – 1:42 PM
LHR → FCO
From EUR 1899.84
Overview
flights / #241
7:41 AM – 1:42 PM
LHR → FCO
From EUR 1899.84
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/241" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/241" ); 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/241"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/241"
)
flight = res.json() Response
{
"id": 241,
"flightNumber": "EK561",
"airline": "Emirates",
"departureAirport": "LHR",
"arrivalAirport": "FCO",
"departureAt": "2027-01-05T07:41:50.763Z",
"arrivalAt": "2027-01-05T13:42:50.763Z",
"durationMinutes": 361,
"status": "landed",
"priceFrom": 1899.84,
"currency": "EUR",
"createdAt": "2026-12-09T07:41:50.763Z"
}