example-data.com

flights / #103

Dec
22
Tue

British Airways BA2091

10:04 AM – 7:05 PM

ATL → BCN

From AUD802.22

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/103"
)
flight = res.json()
{
  "id": 103,
  "flightNumber": "BA2091",
  "airline": "British Airways",
  "departureAirport": "ATL",
  "arrivalAirport": "BCN",
  "departureAt": "2026-12-22T10:04:32.936Z",
  "arrivalAt": "2026-12-22T19:05:32.936Z",
  "durationMinutes": 541,
  "status": "in_air",
  "priceFrom": 802.22,
  "currency": "AUD",
  "createdAt": "2026-12-05T10:04:32.936Z"
}
Draftbit