Dec
20
Sat
Singapore Airlines SQ4834
10:07 PM – 12:28 AM
MAD → LHR
From GBP 61.30
Overview
flights / #325
10:07 PM – 12:28 AM
MAD → LHR
From GBP 61.30
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/325" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/325" ); 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/325"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/325"
)
flight = res.json() Response
{
"id": 325,
"flightNumber": "SQ4834",
"airline": "Singapore Airlines",
"departureAirport": "MAD",
"arrivalAirport": "LHR",
"departureAt": "2025-12-20T22:07:45.862Z",
"arrivalAt": "2025-12-21T00:28:45.862Z",
"durationMinutes": 141,
"status": "in_air",
"priceFrom": 61.3,
"currency": "GBP",
"createdAt": "2025-09-30T22:07:45.862Z"
}