example-data.com
Menu
Browse docs and collections

Overview

flights / #13

Jul
16
Thu

Delta Air Lines DL9364

2:23 PM – 2:37 AM

MEX → DXB

From SGD 583.25

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 13,
  "flightNumber": "DL9364",
  "airline": "Delta Air Lines",
  "departureAirport": "MEX",
  "arrivalAirport": "DXB",
  "departureAt": "2026-07-16T14:23:31.078Z",
  "arrivalAt": "2026-07-17T02:37:31.078Z",
  "durationMinutes": 734,
  "status": "cancelled",
  "priceFrom": 583.25,
  "currency": "SGD",
  "createdAt": "2026-07-07T14:23:31.078Z"
}