example-data.com
Menu
Browse docs and collections

Overview

flights / #372

Jun
11
Thu

Lufthansa LH3717

5:17 PM – 11:51 PM

GRU → DFW

From EUR 914.54

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 372,
  "flightNumber": "LH3717",
  "airline": "Lufthansa",
  "departureAirport": "GRU",
  "arrivalAirport": "DFW",
  "departureAt": "2026-06-11T17:17:17.745Z",
  "arrivalAt": "2026-06-11T23:51:17.745Z",
  "durationMinutes": 394,
  "status": "boarding",
  "priceFrom": 914.54,
  "currency": "EUR",
  "createdAt": "2026-04-26T17:17:17.745Z"
}