example-data.com
Menu
Browse docs and collections

Overview

flights / #305

Nov
23
Sun

Lufthansa LH5277

4:47 AM – 5:47 AM

FCO → AMS

From AED 74.37

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 305,
  "flightNumber": "LH5277",
  "airline": "Lufthansa",
  "departureAirport": "FCO",
  "arrivalAirport": "AMS",
  "departureAt": "2025-11-23T04:47:31.618Z",
  "arrivalAt": "2025-11-23T05:47:31.618Z",
  "durationMinutes": 60,
  "status": "landed",
  "priceFrom": 74.37,
  "currency": "AED",
  "createdAt": "2025-09-02T04:47:31.618Z"
}