example-data.com

flights / #150

Jun
20
Fri

Lufthansa LH7917

2:53 AM – 7:07 AM

GRU → BCN

From USD1378.15

Component variants

curl -sS \
  "https://example-data.com/api/v1/flights/150" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/flights/150"
);
const flight = await res.json();
import type { Flight } from "https://example-data.com/types/flights.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/flights/150"
);
const flight = (await res.json()) as Flight;
import requests

res = requests.get(
    "https://example-data.com/api/v1/flights/150"
)
flight = res.json()
{
  "id": 150,
  "flightNumber": "LH7917",
  "airline": "Lufthansa",
  "departureAirport": "GRU",
  "arrivalAirport": "BCN",
  "departureAt": "2025-06-20T02:53:32.314Z",
  "arrivalAt": "2025-06-20T07:07:32.314Z",
  "durationMinutes": 254,
  "status": "boarding",
  "priceFrom": 1378.15,
  "currency": "USD",
  "createdAt": "2025-06-07T02:53:32.314Z"
}
Draftbit