example-data.com
Menu
Browse docs and collections

Overview

flights / #267

Nov
24
Mon

Singapore Airlines SQ7307

12:23 AM – 2:03 PM

FCO → FRA

From CAD 843.22

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 267,
  "flightNumber": "SQ7307",
  "airline": "Singapore Airlines",
  "departureAirport": "FCO",
  "arrivalAirport": "FRA",
  "departureAt": "2025-11-24T00:23:38.498Z",
  "arrivalAt": "2025-11-24T14:03:38.498Z",
  "durationMinutes": 820,
  "status": "in_air",
  "priceFrom": 843.22,
  "currency": "CAD",
  "createdAt": "2025-11-20T00:23:38.498Z"
}