example-data.com

flights / #101

Apr
24
Sat

Lufthansa LH675

1:08 AM – 5:13 AM

LHR → ATL

From CAD1766.22

Component variants

curl -sS \
  "https://example-data.com/api/v1/flights/101" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/flights/101"
);
const flight = await res.json();
import type { Flight } from "https://example-data.com/types/flights.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/flights/101"
);
const flight = (await res.json()) as Flight;
import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/101"
)
flight = res.json()
{
  "id": 101,
  "flightNumber": "LH675",
  "airline": "Lufthansa",
  "departureAirport": "LHR",
  "arrivalAirport": "ATL",
  "departureAt": "2027-04-24T01:08:58.349Z",
  "arrivalAt": "2027-04-24T05:13:58.349Z",
  "durationMinutes": 245,
  "status": "cancelled",
  "priceFrom": 1766.22,
  "currency": "CAD",
  "createdAt": "2027-04-11T01:08:58.349Z"
}
Draftbit