example-data.com
Menu
Browse docs and collections

Overview

flights / #277

Dec
23
Wed

Emirates EK5513

8:28 PM – 2:34 AM

SYD → SIN

From USD 1443.47

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 277,
  "flightNumber": "EK5513",
  "airline": "Emirates",
  "departureAirport": "SYD",
  "arrivalAirport": "SIN",
  "departureAt": "2026-12-23T20:28:14.026Z",
  "arrivalAt": "2026-12-24T02:34:14.026Z",
  "durationMinutes": 366,
  "status": "cancelled",
  "priceFrom": 1443.47,
  "currency": "USD",
  "createdAt": "2026-12-07T20:28:14.026Z"
}