Jan
5
Mon
Air France AF8644
7:43 AM – 8:50 PM
YYZ → DFW
From JPY 2011.23
Overview
flights / #387
7:43 AM – 8:50 PM
YYZ → DFW
From JPY 2011.23
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/387" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/387" ); 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/387"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/387"
)
flight = res.json() Response
{
"id": 387,
"flightNumber": "AF8644",
"airline": "Air France",
"departureAirport": "YYZ",
"arrivalAirport": "DFW",
"departureAt": "2026-01-05T07:43:29.192Z",
"arrivalAt": "2026-01-05T20:50:29.192Z",
"durationMinutes": 787,
"status": "delayed",
"priceFrom": 2011.23,
"currency": "JPY",
"createdAt": "2025-12-22T07:43:29.192Z"
}