example-data.com
Menu
Browse docs and collections

Overview

flights / #257

Jun
28
Sun

Delta Air Lines DL4061

12:19 AM – 8:29 AM

NRT → DFW

From AUD 839.16

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 257,
  "flightNumber": "DL4061",
  "airline": "Delta Air Lines",
  "departureAirport": "NRT",
  "arrivalAirport": "DFW",
  "departureAt": "2026-06-28T00:19:19.649Z",
  "arrivalAt": "2026-06-28T08:29:19.649Z",
  "durationMinutes": 490,
  "status": "boarding",
  "priceFrom": 839.16,
  "currency": "AUD",
  "createdAt": "2026-04-01T00:19:19.649Z"
}