example-data.com
Menu
Browse docs and collections

Overview

flights / #79

Nov
3
Tue

Delta Air Lines DL855

4:26 PM – 6:33 PM

ICN → SYD

From SGD 1932.56

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 79,
  "flightNumber": "DL855",
  "airline": "Delta Air Lines",
  "departureAirport": "ICN",
  "arrivalAirport": "SYD",
  "departureAt": "2026-11-03T16:26:31.897Z",
  "arrivalAt": "2026-11-03T18:33:31.897Z",
  "durationMinutes": 127,
  "status": "in_air",
  "priceFrom": 1932.56,
  "currency": "SGD",
  "createdAt": "2026-09-21T16:26:31.897Z"
}