example-data.com
Menu
Browse docs and collections

Overview

flights / #382

Jun
5
Fri

Lufthansa LH5019

1:21 AM – 6:55 AM

ORD → CDG

From SGD 2449.44

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 382,
  "flightNumber": "LH5019",
  "airline": "Lufthansa",
  "departureAirport": "ORD",
  "arrivalAirport": "CDG",
  "departureAt": "2026-06-05T01:21:47.126Z",
  "arrivalAt": "2026-06-05T06:55:47.126Z",
  "durationMinutes": 334,
  "status": "cancelled",
  "priceFrom": 2449.44,
  "currency": "SGD",
  "createdAt": "2026-03-29T01:21:47.126Z"
}