example-data.com

flights / #46

Aug
20
Wed

British Airways BA6362

1:41 PM – 8:23 PM

SYD → LAX

From JPY1788.69

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/46"
)
flight = res.json()
{
  "id": 46,
  "flightNumber": "BA6362",
  "airline": "British Airways",
  "departureAirport": "SYD",
  "arrivalAirport": "LAX",
  "departureAt": "2025-08-20T13:41:29.830Z",
  "arrivalAt": "2025-08-20T20:23:29.830Z",
  "durationMinutes": 402,
  "status": "scheduled",
  "priceFrom": 1788.69,
  "currency": "JPY",
  "createdAt": "2025-05-31T13:41:29.830Z"
}
Draftbit