Aug
2
Sun
Air France AF4412
9:47 PM – 10:37 AM
AMS → DXB
From AUD 1253.60
Overview
flights / #139
9:47 PM – 10:37 AM
AMS → DXB
From AUD 1253.60
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/139" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/139" ); 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/139"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/139"
)
flight = res.json() Response
{
"id": 139,
"flightNumber": "AF4412",
"airline": "Air France",
"departureAirport": "AMS",
"arrivalAirport": "DXB",
"departureAt": "2026-08-02T21:47:09.338Z",
"arrivalAt": "2026-08-03T10:37:09.338Z",
"durationMinutes": 770,
"status": "cancelled",
"priceFrom": 1253.6,
"currency": "AUD",
"createdAt": "2026-05-31T21:47:09.338Z"
}