Apr
30
Fri
American Airlines AA2366
8:36 PM – 1:31 AM
ICN → GRU
From CAD 1715.03
Overview
flights / #213
8:36 PM – 1:31 AM
ICN → GRU
From CAD 1715.03
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/213" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/213" ); 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/213"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/213"
)
flight = res.json() Response
{
"id": 213,
"flightNumber": "AA2366",
"airline": "American Airlines",
"departureAirport": "ICN",
"arrivalAirport": "GRU",
"departureAt": "2027-04-30T20:36:49.639Z",
"arrivalAt": "2027-05-01T01:31:49.639Z",
"durationMinutes": 295,
"status": "boarding",
"priceFrom": 1715.03,
"currency": "CAD",
"createdAt": "2027-04-03T20:36:49.639Z"
}