example-data.com

flights / #160

Mar
1
Mon

Japan Airlines JL9402

5:09 PM – 9:01 PM

DFW → SYD

From CAD306.83

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/160"
)
flight = res.json()
{
  "id": 160,
  "flightNumber": "JL9402",
  "airline": "Japan Airlines",
  "departureAirport": "DFW",
  "arrivalAirport": "SYD",
  "departureAt": "2027-03-01T17:09:28.216Z",
  "arrivalAt": "2027-03-01T21:01:28.216Z",
  "durationMinutes": 232,
  "status": "cancelled",
  "priceFrom": 306.83,
  "currency": "CAD",
  "createdAt": "2027-02-08T17:09:28.216Z"
}
Draftbit