example-data.com

flights / #4

Aug
6
Thu

Lufthansa LH776

8:51 AM – 8:59 PM

BCN → JFK

From CAD312.42

Component variants

curl -sS \
  "https://example-data.com/api/v1/flights/4" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/flights/4"
);
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/4"
);
const flight = (await res.json()) as Flight;
import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/4"
)
flight = res.json()
{
  "id": 4,
  "flightNumber": "LH776",
  "airline": "Lufthansa",
  "departureAirport": "BCN",
  "arrivalAirport": "JFK",
  "departureAt": "2026-08-06T08:51:51.061Z",
  "arrivalAt": "2026-08-06T20:59:51.061Z",
  "durationMinutes": 728,
  "status": "in_air",
  "priceFrom": 312.42,
  "currency": "CAD",
  "createdAt": "2026-05-14T08:51:51.061Z"
}
Draftbit