example-data.com
Menu
Browse docs and collections

Overview

flights / #86

Oct
28
Wed

United Airlines UA4284

3:21 AM – 5:06 PM

DFW → MEX

From AUD 1355.66

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flights/86" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/86"
);
const flight = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/flights.d.ts https://example-data.com/types/flights.d.ts
import type { Flight } from "./types/flights";

const res = await fetch(
  "https://example-data.com/api/v1/flights/86"
);
const flight = (await res.json()) as Flight;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/86"
)
flight = res.json()

Response

{
  "id": 86,
  "flightNumber": "UA4284",
  "airline": "United Airlines",
  "departureAirport": "DFW",
  "arrivalAirport": "MEX",
  "departureAt": "2026-10-28T03:21:43.287Z",
  "arrivalAt": "2026-10-28T17:06:43.287Z",
  "durationMinutes": 825,
  "status": "scheduled",
  "priceFrom": 1355.66,
  "currency": "AUD",
  "createdAt": "2026-08-05T03:21:43.287Z"
}