example-data.com
Menu
Browse docs and collections

Overview

flights / #297

Jul
31
Thu

Lufthansa LH4183

2:15 PM – 9:48 PM

ATL → FRA

From GBP 153.14

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 297,
  "flightNumber": "LH4183",
  "airline": "Lufthansa",
  "departureAirport": "ATL",
  "arrivalAirport": "FRA",
  "departureAt": "2025-07-31T14:15:58.452Z",
  "arrivalAt": "2025-07-31T21:48:58.452Z",
  "durationMinutes": 453,
  "status": "delayed",
  "priceFrom": 153.14,
  "currency": "GBP",
  "createdAt": "2025-06-27T14:15:58.452Z"
}