example-data.com
Menu
Browse docs and collections

Overview

flights / #187

Nov
13
Fri

Lufthansa LH4932

7:35 PM – 8:38 PM

LAX → NRT

From EUR 332.01

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 187,
  "flightNumber": "LH4932",
  "airline": "Lufthansa",
  "departureAirport": "LAX",
  "arrivalAirport": "NRT",
  "departureAt": "2026-11-13T19:35:47.855Z",
  "arrivalAt": "2026-11-13T20:38:47.855Z",
  "durationMinutes": 63,
  "status": "landed",
  "priceFrom": 332.01,
  "currency": "EUR",
  "createdAt": "2026-11-02T19:35:47.855Z"
}