example-data.com
Menu
Browse docs and collections

Overview

flights / #133

Feb
9
Mon

Delta Air Lines DL5456

11:05 PM – 8:09 AM

ORD → DFW

From SGD 1277.47

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 133,
  "flightNumber": "DL5456",
  "airline": "Delta Air Lines",
  "departureAirport": "ORD",
  "arrivalAirport": "DFW",
  "departureAt": "2026-02-09T23:05:21.510Z",
  "arrivalAt": "2026-02-10T08:09:21.510Z",
  "durationMinutes": 544,
  "status": "landed",
  "priceFrom": 1277.47,
  "currency": "SGD",
  "createdAt": "2026-01-02T23:05:21.510Z"
}