example-data.com
Menu
Browse docs and collections

Overview

flights / #328

Sep
30
Wed

Air France AF4032

4:40 AM – 12:00 PM

ORD → BCN

From GBP 918.94

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 328,
  "flightNumber": "AF4032",
  "airline": "Air France",
  "departureAirport": "ORD",
  "arrivalAirport": "BCN",
  "departureAt": "2026-09-30T04:40:11.505Z",
  "arrivalAt": "2026-09-30T12:00:11.505Z",
  "durationMinutes": 440,
  "status": "cancelled",
  "priceFrom": 918.94,
  "currency": "GBP",
  "createdAt": "2026-07-22T04:40:11.505Z"
}