example-data.com
Menu
Browse docs and collections

Overview

flights / #200

Dec
5
Sat

Lufthansa LH3513

4:11 AM – 6:11 PM

ICN → ORD

From CAD 705.01

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 200,
  "flightNumber": "LH3513",
  "airline": "Lufthansa",
  "departureAirport": "ICN",
  "arrivalAirport": "ORD",
  "departureAt": "2026-12-05T04:11:17.169Z",
  "arrivalAt": "2026-12-05T18:11:17.169Z",
  "durationMinutes": 840,
  "status": "scheduled",
  "priceFrom": 705.01,
  "currency": "CAD",
  "createdAt": "2026-09-17T04:11:17.169Z"
}