example-data.com
Menu
Browse docs and collections

Overview

flights / #54

Dec
29
Tue

Air France AF9115

11:15 AM – 1:42 PM

LHR → DFW

From GBP 1793.17

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 54,
  "flightNumber": "AF9115",
  "airline": "Air France",
  "departureAirport": "LHR",
  "arrivalAirport": "DFW",
  "departureAt": "2026-12-29T11:15:37.280Z",
  "arrivalAt": "2026-12-29T13:42:37.280Z",
  "durationMinutes": 147,
  "status": "delayed",
  "priceFrom": 1793.17,
  "currency": "GBP",
  "createdAt": "2026-11-01T11:15:37.280Z"
}