example-data.com
Menu
Browse docs and collections

Overview

flights / #265

Oct
10
Sat

United Airlines UA663

1:04 PM – 3:02 AM

YYZ → FCO

From CAD 1232.70

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/265"
);
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/265"
);
const flight = (await res.json()) as Flight;

Python example

import requests

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

Response

{
  "id": 265,
  "flightNumber": "UA663",
  "airline": "United Airlines",
  "departureAirport": "YYZ",
  "arrivalAirport": "FCO",
  "departureAt": "2026-10-10T13:04:55.153Z",
  "arrivalAt": "2026-10-11T03:02:55.153Z",
  "durationMinutes": 838,
  "status": "delayed",
  "priceFrom": 1232.7,
  "currency": "CAD",
  "createdAt": "2026-09-21T13:04:55.153Z"
}