example-data.com
Menu
Browse docs and collections

Overview

flights / #194

Mar
6
Fri

Singapore Airlines SQ4845

12:44 PM – 5:27 PM

NRT → FRA

From EUR 253.51

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 194,
  "flightNumber": "SQ4845",
  "airline": "Singapore Airlines",
  "departureAirport": "NRT",
  "arrivalAirport": "FRA",
  "departureAt": "2026-03-06T12:44:09.924Z",
  "arrivalAt": "2026-03-06T17:27:09.924Z",
  "durationMinutes": 283,
  "status": "landed",
  "priceFrom": 253.51,
  "currency": "EUR",
  "createdAt": "2026-02-18T12:44:09.924Z"
}