example-data.com
Menu
Browse docs and collections

Overview

flights / #363

Apr
4
Sat

Lufthansa LH7106

3:40 AM – 6:07 PM

MAD → ICN

From AUD 679.95

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 363,
  "flightNumber": "LH7106",
  "airline": "Lufthansa",
  "departureAirport": "MAD",
  "arrivalAirport": "ICN",
  "departureAt": "2026-04-04T03:40:27.234Z",
  "arrivalAt": "2026-04-04T18:07:27.234Z",
  "durationMinutes": 867,
  "status": "scheduled",
  "priceFrom": 679.95,
  "currency": "AUD",
  "createdAt": "2026-02-15T03:40:27.234Z"
}