Jul
29
Wed
American Airlines AA7820
10:30 AM – 12:05 AM
YYZ → MEX
From CAD 1697.55
Overview
flights / #373
10:30 AM – 12:05 AM
YYZ → MEX
From CAD 1697.55
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/373" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/373" ); 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/373"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/373"
)
flight = res.json() Response
{
"id": 373,
"flightNumber": "AA7820",
"airline": "American Airlines",
"departureAirport": "YYZ",
"arrivalAirport": "MEX",
"departureAt": "2026-07-29T10:30:10.828Z",
"arrivalAt": "2026-07-30T00:05:10.828Z",
"durationMinutes": 815,
"status": "delayed",
"priceFrom": 1697.55,
"currency": "CAD",
"createdAt": "2026-07-08T10:30:10.828Z"
}