example-data.com
Menu
Browse docs and collections

Overview

flights / #291

Aug
14
Fri

Lufthansa LH7716

8:04 AM – 6:26 PM

ORD → MAD

From JPY 627.53

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 291,
  "flightNumber": "LH7716",
  "airline": "Lufthansa",
  "departureAirport": "ORD",
  "arrivalAirport": "MAD",
  "departureAt": "2026-08-14T08:04:22.874Z",
  "arrivalAt": "2026-08-14T18:26:22.874Z",
  "durationMinutes": 622,
  "status": "scheduled",
  "priceFrom": 627.53,
  "currency": "JPY",
  "createdAt": "2026-06-14T08:04:22.874Z"
}