example-data.com

flights / #43

Nov
25
Tue

United Airlines UA1564

10:07 PM – 12:34 PM

BCN → LAX

From GBP1593.70

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/43"
)
flight = res.json()
{
  "id": 43,
  "flightNumber": "UA1564",
  "airline": "United Airlines",
  "departureAirport": "BCN",
  "arrivalAirport": "LAX",
  "departureAt": "2025-11-25T22:07:50.377Z",
  "arrivalAt": "2025-11-26T12:34:50.377Z",
  "durationMinutes": 867,
  "status": "in_air",
  "priceFrom": 1593.7,
  "currency": "GBP",
  "createdAt": "2025-09-14T22:07:50.377Z"
}
Draftbit