Jul
4
Fri
Emirates EK8579
11:06 PM – 12:57 AM
BCN → SIN
From SGD 225.42
Overview
flights / #89
11:06 PM – 12:57 AM
BCN → SIN
From SGD 225.42
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/89" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/89" ); 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/89"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/89"
)
flight = res.json() Response
{
"id": 89,
"flightNumber": "EK8579",
"airline": "Emirates",
"departureAirport": "BCN",
"arrivalAirport": "SIN",
"departureAt": "2025-07-04T23:06:43.967Z",
"arrivalAt": "2025-07-05T00:57:43.967Z",
"durationMinutes": 111,
"status": "cancelled",
"priceFrom": 225.42,
"currency": "SGD",
"createdAt": "2025-04-27T23:06:43.967Z"
}