Jan
14
Thu
American Airlines AA4550
5:52 AM – 9:37 AM
LAX → SIN
From AED 840.13
Overview
flights / #286
5:52 AM – 9:37 AM
LAX → SIN
From AED 840.13
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/286" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/286" ); 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/286"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/286"
)
flight = res.json() Response
{
"id": 286,
"flightNumber": "AA4550",
"airline": "American Airlines",
"departureAirport": "LAX",
"arrivalAirport": "SIN",
"departureAt": "2027-01-14T05:52:50.821Z",
"arrivalAt": "2027-01-14T09:37:50.821Z",
"durationMinutes": 225,
"status": "in_air",
"priceFrom": 840.13,
"currency": "AED",
"createdAt": "2027-01-07T05:52:50.821Z"
}