Aug
3
Sun
Air France AF2537
10:25 AM – 1:04 AM
FRA → MEX
From AUD 1411.11
Overview
flights / #207
10:25 AM – 1:04 AM
FRA → MEX
From AUD 1411.11
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/207" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/207" ); 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/207"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/207"
)
flight = res.json() Response
{
"id": 207,
"flightNumber": "AF2537",
"airline": "Air France",
"departureAirport": "FRA",
"arrivalAirport": "MEX",
"departureAt": "2025-08-03T10:25:05.184Z",
"arrivalAt": "2025-08-04T01:04:05.184Z",
"durationMinutes": 879,
"status": "boarding",
"priceFrom": 1411.11,
"currency": "AUD",
"createdAt": "2025-07-02T10:25:05.184Z"
}