example-data.com
Menu
Browse docs and collections

Overview

flights / #269

Feb
5
Thu

Emirates EK3906

8:33 PM – 8:20 AM

JFK → LAX

From AUD 1213.95

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 269,
  "flightNumber": "EK3906",
  "airline": "Emirates",
  "departureAirport": "JFK",
  "arrivalAirport": "LAX",
  "departureAt": "2026-02-05T20:33:13.499Z",
  "arrivalAt": "2026-02-06T08:20:13.499Z",
  "durationMinutes": 707,
  "status": "cancelled",
  "priceFrom": 1213.95,
  "currency": "AUD",
  "createdAt": "2025-11-14T20:33:13.499Z"
}