example-data.com
Menu
Browse docs and collections

Overview

flights / #342

Feb
21
Sat

Air France AF3330

6:55 AM – 6:56 PM

LAX → LHR

From AUD 1319.14

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 342,
  "flightNumber": "AF3330",
  "airline": "Air France",
  "departureAirport": "LAX",
  "arrivalAirport": "LHR",
  "departureAt": "2026-02-21T06:55:13.932Z",
  "arrivalAt": "2026-02-21T18:56:13.932Z",
  "durationMinutes": 721,
  "status": "boarding",
  "priceFrom": 1319.14,
  "currency": "AUD",
  "createdAt": "2025-12-18T06:55:13.932Z"
}