example-data.com

flights / #214

May
27
Tue

Emirates EK2429

4:41 PM – 12:45 AM

MAD → FCO

From EUR2024.45

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/flights/214"
)
flight = res.json()
{
  "id": 214,
  "flightNumber": "EK2429",
  "airline": "Emirates",
  "departureAirport": "MAD",
  "arrivalAirport": "FCO",
  "departureAt": "2025-05-27T16:41:13.720Z",
  "arrivalAt": "2025-05-28T00:45:13.720Z",
  "durationMinutes": 484,
  "status": "delayed",
  "priceFrom": 2024.45,
  "currency": "EUR",
  "createdAt": "2025-02-28T16:41:13.720Z"
}
Draftbit