example-data.com

flights / #99

Jan
5
Tue

Southwest Airlines WN1777

10:30 AM – 9:54 PM

LAX → MEX

From AUD2487.93

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/99"
)
flight = res.json()
{
  "id": 99,
  "flightNumber": "WN1777",
  "airline": "Southwest Airlines",
  "departureAirport": "LAX",
  "arrivalAirport": "MEX",
  "departureAt": "2027-01-05T10:30:42.298Z",
  "arrivalAt": "2027-01-05T21:54:42.298Z",
  "durationMinutes": 684,
  "status": "boarding",
  "priceFrom": 2487.93,
  "currency": "AUD",
  "createdAt": "2026-11-29T10:30:42.298Z"
}
Draftbit