example-data.com

flights / #24

Dec
31
Thu

Japan Airlines JL855

6:24 PM – 11:20 PM

BCN → YYZ

From USD760.02

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/24"
)
flight = res.json()
{
  "id": 24,
  "flightNumber": "JL855",
  "airline": "Japan Airlines",
  "departureAirport": "BCN",
  "arrivalAirport": "YYZ",
  "departureAt": "2026-12-31T18:24:06.848Z",
  "arrivalAt": "2026-12-31T23:20:06.848Z",
  "durationMinutes": 296,
  "status": "cancelled",
  "priceFrom": 760.02,
  "currency": "USD",
  "createdAt": "2026-12-01T18:24:06.848Z"
}
Draftbit