example-data.com
Menu
Browse docs and collections

Overview

flights / #206

Aug
31
Sun

Lufthansa LH8576

12:11 AM – 11:59 AM

AMS → CDG

From CAD 757.96

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 206,
  "flightNumber": "LH8576",
  "airline": "Lufthansa",
  "departureAirport": "AMS",
  "arrivalAirport": "CDG",
  "departureAt": "2025-08-31T00:11:35.375Z",
  "arrivalAt": "2025-08-31T11:59:35.375Z",
  "durationMinutes": 708,
  "status": "in_air",
  "priceFrom": 757.96,
  "currency": "CAD",
  "createdAt": "2025-08-28T00:11:35.375Z"
}