Apr
24
Sat
Lufthansa LH675
1:08 AM – 5:13 AM
LHR → ATL
From CAD 1766.22
Overview
flights / #101
1:08 AM – 5:13 AM
LHR → ATL
From CAD 1766.22
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/101" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/101" ); 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/101"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/101"
)
flight = res.json() Response
{
"id": 101,
"flightNumber": "LH675",
"airline": "Lufthansa",
"departureAirport": "LHR",
"arrivalAirport": "ATL",
"departureAt": "2027-04-24T01:08:58.349Z",
"arrivalAt": "2027-04-24T05:13:58.349Z",
"durationMinutes": 245,
"status": "cancelled",
"priceFrom": 1766.22,
"currency": "CAD",
"createdAt": "2027-04-11T01:08:58.349Z"
}