example-data.com
Menu
Browse docs and collections

Overview

flights / #128

Feb
25
Wed

Delta Air Lines DL9020

12:42 AM – 1:59 PM

NRT → LHR

From AED 812.07

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 128,
  "flightNumber": "DL9020",
  "airline": "Delta Air Lines",
  "departureAirport": "NRT",
  "arrivalAirport": "LHR",
  "departureAt": "2026-02-25T00:42:21.169Z",
  "arrivalAt": "2026-02-25T13:59:21.169Z",
  "durationMinutes": 797,
  "status": "boarding",
  "priceFrom": 812.07,
  "currency": "AED",
  "createdAt": "2026-01-19T00:42:21.169Z"
}