example-data.com
Menu
Browse docs and collections

Overview

flights / #184

Nov
1
Sat

Lufthansa LH4290

4:08 PM – 2:55 AM

NRT → LHR

From GBP 306.01

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 184,
  "flightNumber": "LH4290",
  "airline": "Lufthansa",
  "departureAirport": "NRT",
  "arrivalAirport": "LHR",
  "departureAt": "2025-11-01T16:08:20.507Z",
  "arrivalAt": "2025-11-02T02:55:20.507Z",
  "durationMinutes": 647,
  "status": "scheduled",
  "priceFrom": 306.01,
  "currency": "GBP",
  "createdAt": "2025-08-12T16:08:20.507Z"
}