example-data.com
Menu
Browse docs and collections

Overview

flights / #244

Oct
31
Sat

Southwest Airlines WN5388

9:26 AM – 9:42 PM

MEX → ORD

From JPY 1846.38

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flights/244" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights/244"
);
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/244"
);
const flight = (await res.json()) as Flight;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/244"
)
flight = res.json()

Response

{
  "id": 244,
  "flightNumber": "WN5388",
  "airline": "Southwest Airlines",
  "departureAirport": "MEX",
  "arrivalAirport": "ORD",
  "departureAt": "2026-10-31T09:26:33.622Z",
  "arrivalAt": "2026-10-31T21:42:33.622Z",
  "durationMinutes": 736,
  "status": "delayed",
  "priceFrom": 1846.38,
  "currency": "JPY",
  "createdAt": "2026-10-30T09:26:33.622Z"
}