example-data.com
Menu
Browse docs and collections

Overview

flights / #69

Aug
10
Sun

Emirates EK5371

2:08 PM – 6:42 PM

ICN → ATL

From USD 94.51

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 69,
  "flightNumber": "EK5371",
  "airline": "Emirates",
  "departureAirport": "ICN",
  "arrivalAirport": "ATL",
  "departureAt": "2025-08-10T14:08:32.733Z",
  "arrivalAt": "2025-08-10T18:42:32.733Z",
  "durationMinutes": 274,
  "status": "scheduled",
  "priceFrom": 94.51,
  "currency": "USD",
  "createdAt": "2025-06-21T14:08:32.733Z"
}