example-data.com
Menu
Browse docs and collections

Overview

flights / #359

Jun
18
Wed

Southwest Airlines WN7169

9:23 PM – 2:14 AM

NRT → ORD

From USD 2139.29

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 359,
  "flightNumber": "WN7169",
  "airline": "Southwest Airlines",
  "departureAirport": "NRT",
  "arrivalAirport": "ORD",
  "departureAt": "2025-06-18T21:23:58.510Z",
  "arrivalAt": "2025-06-19T02:14:58.510Z",
  "durationMinutes": 291,
  "status": "landed",
  "priceFrom": 2139.29,
  "currency": "USD",
  "createdAt": "2025-05-26T21:23:58.510Z"
}