example-data.com
Menu
Browse docs and collections

Overview

flights / #346

Jan
11
Sun

Delta Air Lines DL9074

12:46 AM – 11:40 AM

YYZ → DXB

From AED 226.79

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 346,
  "flightNumber": "DL9074",
  "airline": "Delta Air Lines",
  "departureAirport": "YYZ",
  "arrivalAirport": "DXB",
  "departureAt": "2026-01-11T00:46:48.450Z",
  "arrivalAt": "2026-01-11T11:40:48.450Z",
  "durationMinutes": 654,
  "status": "in_air",
  "priceFrom": 226.79,
  "currency": "AED",
  "createdAt": "2025-12-21T00:46:48.450Z"
}