example-data.com
Menu
Browse docs and collections

Overview

flights / #159

Jul
19
Sun

Singapore Airlines SQ9655

9:15 PM – 8:28 AM

LHR → DXB

From USD 2344.33

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 159,
  "flightNumber": "SQ9655",
  "airline": "Singapore Airlines",
  "departureAirport": "LHR",
  "arrivalAirport": "DXB",
  "departureAt": "2026-07-19T21:15:26.006Z",
  "arrivalAt": "2026-07-20T08:28:26.006Z",
  "durationMinutes": 673,
  "status": "in_air",
  "priceFrom": 2344.33,
  "currency": "USD",
  "createdAt": "2026-06-29T21:15:26.006Z"
}