Sep
17
Wed
Lufthansa LH1841
8:38 AM – 10:11 PM
SYD → BCN
From EUR 2048.98
Overview
flights / #313
8:38 AM – 10:11 PM
SYD → BCN
From EUR 2048.98
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/313" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/313" ); 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/313"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/313"
)
flight = res.json() Response
{
"id": 313,
"flightNumber": "LH1841",
"airline": "Lufthansa",
"departureAirport": "SYD",
"arrivalAirport": "BCN",
"departureAt": "2025-09-17T08:38:52.750Z",
"arrivalAt": "2025-09-17T22:11:52.750Z",
"durationMinutes": 813,
"status": "boarding",
"priceFrom": 2048.98,
"currency": "EUR",
"createdAt": "2025-09-11T08:38:52.750Z"
}