example-data.com
Menu
Browse docs and collections

Overview

flights / #366

Oct
7
Wed

Singapore Airlines SQ5137

11:14 PM – 4:26 AM

DXB → ICN

From AUD 684.79

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 366,
  "flightNumber": "SQ5137",
  "airline": "Singapore Airlines",
  "departureAirport": "DXB",
  "arrivalAirport": "ICN",
  "departureAt": "2026-10-07T23:14:12.110Z",
  "arrivalAt": "2026-10-08T04:26:12.110Z",
  "durationMinutes": 312,
  "status": "cancelled",
  "priceFrom": 684.79,
  "currency": "AUD",
  "createdAt": "2026-07-17T23:14:12.110Z"
}