Jun
20
Fri
Lufthansa LH7917
2:53 AM – 7:07 AM
GRU → BCN
From USD 1378.15
Overview
flights / #150
2:53 AM – 7:07 AM
GRU → BCN
From USD 1378.15
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/150" ); 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/150"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/150"
)
flight = res.json() Response
{
"id": 150,
"flightNumber": "LH7917",
"airline": "Lufthansa",
"departureAirport": "GRU",
"arrivalAirport": "BCN",
"departureAt": "2025-06-20T02:53:32.314Z",
"arrivalAt": "2025-06-20T07:07:32.314Z",
"durationMinutes": 254,
"status": "boarding",
"priceFrom": 1378.15,
"currency": "USD",
"createdAt": "2025-06-07T02:53:32.314Z"
}