example-data.com
Menu
Browse docs and collections

Overview

flights / #209

Oct
13
Tue

Singapore Airlines SQ4867

1:14 AM – 7:13 AM

ATL → DXB

From JPY 684.64

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 209,
  "flightNumber": "SQ4867",
  "airline": "Singapore Airlines",
  "departureAirport": "ATL",
  "arrivalAirport": "DXB",
  "departureAt": "2026-10-13T01:14:12.342Z",
  "arrivalAt": "2026-10-13T07:13:12.342Z",
  "durationMinutes": 359,
  "status": "landed",
  "priceFrom": 684.64,
  "currency": "JPY",
  "createdAt": "2026-07-19T01:14:12.342Z"
}