example-data.com
Menu
Browse docs and collections

Overview

flights / #102

Oct
15
Wed

Singapore Airlines SQ6855

2:23 PM – 1:16 AM

MEX → LAX

From JPY 1202.08

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 102,
  "flightNumber": "SQ6855",
  "airline": "Singapore Airlines",
  "departureAirport": "MEX",
  "arrivalAirport": "LAX",
  "departureAt": "2025-10-15T14:23:33.174Z",
  "arrivalAt": "2025-10-16T01:16:33.174Z",
  "durationMinutes": 653,
  "status": "landed",
  "priceFrom": 1202.08,
  "currency": "JPY",
  "createdAt": "2025-08-29T14:23:33.174Z"
}