example-data.com
Menu
Browse docs and collections

Overview

flights / #246

Mar
31
Tue

Lufthansa LH3746

1:29 PM – 3:55 AM

FRA → BCN

From AUD 2212.40

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 246,
  "flightNumber": "LH3746",
  "airline": "Lufthansa",
  "departureAirport": "FRA",
  "arrivalAirport": "BCN",
  "departureAt": "2026-03-31T13:29:35.168Z",
  "arrivalAt": "2026-04-01T03:55:35.168Z",
  "durationMinutes": 866,
  "status": "delayed",
  "priceFrom": 2212.4,
  "currency": "AUD",
  "createdAt": "2026-01-22T13:29:35.168Z"
}