example-data.com

flights / #142

Jan
19
Mon

British Airways BA3341

6:55 AM – 8:25 AM

LAX → LHR

From EUR110.59

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/142"
)
flight = res.json()
{
  "id": 142,
  "flightNumber": "BA3341",
  "airline": "British Airways",
  "departureAirport": "LAX",
  "arrivalAirport": "LHR",
  "departureAt": "2026-01-19T06:55:00.343Z",
  "arrivalAt": "2026-01-19T08:25:00.343Z",
  "durationMinutes": 90,
  "status": "scheduled",
  "priceFrom": 110.59,
  "currency": "EUR",
  "createdAt": "2025-12-01T06:55:00.343Z"
}
Draftbit