Jan
26
Tue
Southwest Airlines WN4238
9:40 PM – 11:20 PM
ATL → NRT
From USD 851.86
Overview
flights / #173
9:40 PM – 11:20 PM
ATL → NRT
From USD 851.86
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/173" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/173" ); 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/173"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/173"
)
flight = res.json() Response
{
"id": 173,
"flightNumber": "WN4238",
"airline": "Southwest Airlines",
"departureAirport": "ATL",
"arrivalAirport": "NRT",
"departureAt": "2027-01-26T21:40:54.379Z",
"arrivalAt": "2027-01-26T23:20:54.379Z",
"durationMinutes": 100,
"status": "in_air",
"priceFrom": 851.86,
"currency": "USD",
"createdAt": "2026-11-21T21:40:54.379Z"
}