Jan
25
Mon
Southwest Airlines WN2297
3:49 PM – 1:37 AM
GRU → DXB
From AED 219.70
Overview
flights / #358
3:49 PM – 1:37 AM
GRU → DXB
From AED 219.70
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/358" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/358" ); 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/358"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/358"
)
flight = res.json() Response
{
"id": 358,
"flightNumber": "WN2297",
"airline": "Southwest Airlines",
"departureAirport": "GRU",
"arrivalAirport": "DXB",
"departureAt": "2027-01-25T15:49:10.651Z",
"arrivalAt": "2027-01-26T01:37:10.651Z",
"durationMinutes": 588,
"status": "cancelled",
"priceFrom": 219.7,
"currency": "AED",
"createdAt": "2026-11-24T15:49:10.651Z"
}