example-data.com
Menu
Browse docs and collections

Overview

flights / #193

Aug
28
Thu

Delta Air Lines DL1750

4:17 AM – 1:32 PM

CDG → JFK

From JPY 2482.90

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 193,
  "flightNumber": "DL1750",
  "airline": "Delta Air Lines",
  "departureAirport": "CDG",
  "arrivalAirport": "JFK",
  "departureAt": "2025-08-28T04:17:07.036Z",
  "arrivalAt": "2025-08-28T13:32:07.036Z",
  "durationMinutes": 555,
  "status": "boarding",
  "priceFrom": 2482.9,
  "currency": "JPY",
  "createdAt": "2025-08-15T04:17:07.036Z"
}