example-data.com
Menu
Browse docs and collections

Overview

flights / #70

Sep
10
Wed

Lufthansa LH4415

1:31 AM – 3:26 PM

FCO → SYD

From AED 346.17

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flights/70" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/70"
);
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/70"
);
const flight = (await res.json()) as Flight;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/70"
)
flight = res.json()

Response

{
  "id": 70,
  "flightNumber": "LH4415",
  "airline": "Lufthansa",
  "departureAirport": "FCO",
  "arrivalAirport": "SYD",
  "departureAt": "2025-09-10T01:31:53.656Z",
  "arrivalAt": "2025-09-10T15:26:53.656Z",
  "durationMinutes": 835,
  "status": "scheduled",
  "priceFrom": 346.17,
  "currency": "AED",
  "createdAt": "2025-07-26T01:31:53.656Z"
}