example-data.com
Menu
Browse docs and collections

Overview

flights / #302

May
13
Wed

Delta Air Lines DL8851

2:44 PM – 6:13 PM

ATL → AMS

From EUR 245.77

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 302,
  "flightNumber": "DL8851",
  "airline": "Delta Air Lines",
  "departureAirport": "ATL",
  "arrivalAirport": "AMS",
  "departureAt": "2026-05-13T14:44:15.051Z",
  "arrivalAt": "2026-05-13T18:13:15.051Z",
  "durationMinutes": 209,
  "status": "boarding",
  "priceFrom": 245.77,
  "currency": "EUR",
  "createdAt": "2026-04-26T14:44:15.051Z"
}