example-data.com
Menu
Browse docs and collections

Overview

flights / #61

Nov
1
Sat

Lufthansa LH8576

7:44 PM – 4:14 AM

SIN → DFW

From JPY 596.07

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 61,
  "flightNumber": "LH8576",
  "airline": "Lufthansa",
  "departureAirport": "SIN",
  "arrivalAirport": "DFW",
  "departureAt": "2025-11-01T19:44:00.738Z",
  "arrivalAt": "2025-11-02T04:14:00.738Z",
  "durationMinutes": 510,
  "status": "delayed",
  "priceFrom": 596.07,
  "currency": "JPY",
  "createdAt": "2025-10-10T19:44:00.738Z"
}