example-data.com
Menu
Browse docs and collections

Overview

flights / #272

Sep
26
Sat

Southwest Airlines WN8343

9:15 PM – 2:34 AM

GRU → NRT

From EUR 2357.94

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 272,
  "flightNumber": "WN8343",
  "airline": "Southwest Airlines",
  "departureAirport": "GRU",
  "arrivalAirport": "NRT",
  "departureAt": "2026-09-26T21:15:59.531Z",
  "arrivalAt": "2026-09-27T02:34:59.531Z",
  "durationMinutes": 319,
  "status": "landed",
  "priceFrom": 2357.94,
  "currency": "EUR",
  "createdAt": "2026-08-19T21:15:59.531Z"
}