example-data.com
Menu
Browse docs and collections

Overview

flights / #389

Apr
7
Tue

Emirates EK7192

3:16 AM – 3:22 PM

BCN → LHR

From EUR 1793.88

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 389,
  "flightNumber": "EK7192",
  "airline": "Emirates",
  "departureAirport": "BCN",
  "arrivalAirport": "LHR",
  "departureAt": "2026-04-07T03:16:06.919Z",
  "arrivalAt": "2026-04-07T15:22:06.919Z",
  "durationMinutes": 726,
  "status": "landed",
  "priceFrom": 1793.88,
  "currency": "EUR",
  "createdAt": "2026-01-07T03:16:06.919Z"
}