example-data.com

flights / #125

May
30
Fri

American Airlines AA5917

4:21 AM – 10:51 AM

DFW → YYZ

From EUR1566.86

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/125"
)
flight = res.json()
{
  "id": 125,
  "flightNumber": "AA5917",
  "airline": "American Airlines",
  "departureAirport": "DFW",
  "arrivalAirport": "YYZ",
  "departureAt": "2025-05-30T04:21:36.282Z",
  "arrivalAt": "2025-05-30T10:51:36.282Z",
  "durationMinutes": 390,
  "status": "landed",
  "priceFrom": 1566.86,
  "currency": "EUR",
  "createdAt": "2025-03-18T04:21:36.282Z"
}
Draftbit