example-data.com

flights / #14

Dec
20
Sat

Air France AF8619

1:17 AM – 9:01 AM

BCN → NRT

From USD1673.69

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/14"
)
flight = res.json()
{
  "id": 14,
  "flightNumber": "AF8619",
  "airline": "Air France",
  "departureAirport": "BCN",
  "arrivalAirport": "NRT",
  "departureAt": "2025-12-20T01:17:11.922Z",
  "arrivalAt": "2025-12-20T09:01:11.922Z",
  "durationMinutes": 464,
  "status": "boarding",
  "priceFrom": 1673.69,
  "currency": "USD",
  "createdAt": "2025-12-09T01:17:11.922Z"
}
Draftbit