example-data.com
Menu
Browse docs and collections

Overview

flights / #371

Dec
25
Fri

Lufthansa LH9329

10:30 AM – 7:59 PM

DFW → ICN

From USD 991.38

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 371,
  "flightNumber": "LH9329",
  "airline": "Lufthansa",
  "departureAirport": "DFW",
  "arrivalAirport": "ICN",
  "departureAt": "2026-12-25T10:30:53.332Z",
  "arrivalAt": "2026-12-25T19:59:53.332Z",
  "durationMinutes": 569,
  "status": "delayed",
  "priceFrom": 991.38,
  "currency": "USD",
  "createdAt": "2026-11-19T10:30:53.332Z"
}