example-data.com

flights / #115

Jun
5
Thu

Air France AF4855

9:24 AM – 11:05 PM

ORD → BCN

From USD50.98

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/115"
)
flight = res.json()
{
  "id": 115,
  "flightNumber": "AF4855",
  "airline": "Air France",
  "departureAirport": "ORD",
  "arrivalAirport": "BCN",
  "departureAt": "2025-06-05T09:24:17.092Z",
  "arrivalAt": "2025-06-05T23:05:17.092Z",
  "durationMinutes": 821,
  "status": "in_air",
  "priceFrom": 50.98,
  "currency": "USD",
  "createdAt": "2025-05-19T09:24:17.092Z"
}
Draftbit