example-data.com
Menu
Browse docs and collections

Overview

flights / #344

Nov
16
Sun

Singapore Airlines SQ5399

2:03 AM – 8:43 AM

NRT → AMS

From GBP 757.68

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 344,
  "flightNumber": "SQ5399",
  "airline": "Singapore Airlines",
  "departureAirport": "NRT",
  "arrivalAirport": "AMS",
  "departureAt": "2025-11-16T02:03:12.592Z",
  "arrivalAt": "2025-11-16T08:43:12.592Z",
  "durationMinutes": 400,
  "status": "boarding",
  "priceFrom": 757.68,
  "currency": "GBP",
  "createdAt": "2025-11-01T02:03:12.592Z"
}