Mar
5
Fri
Southwest Airlines WN2923
12:37 PM – 8:58 PM
AMS → CDG
From CAD 1133.97
Overview
flights / #374
12:37 PM – 8:58 PM
AMS → CDG
From CAD 1133.97
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/374" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/374" ); 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/374"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/374"
)
flight = res.json() Response
{
"id": 374,
"flightNumber": "WN2923",
"airline": "Southwest Airlines",
"departureAirport": "AMS",
"arrivalAirport": "CDG",
"departureAt": "2027-03-05T12:37:36.845Z",
"arrivalAt": "2027-03-05T20:58:36.845Z",
"durationMinutes": 501,
"status": "delayed",
"priceFrom": 1133.97,
"currency": "CAD",
"createdAt": "2027-02-26T12:37:36.845Z"
}