example-data.com
Menu
Browse docs and collections

Overview

flights / #356

Jun
28
Sun

Air France AF9333

11:18 PM – 2:11 PM

JFK → CDG

From AUD 1662.25

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 356,
  "flightNumber": "AF9333",
  "airline": "Air France",
  "departureAirport": "JFK",
  "arrivalAirport": "CDG",
  "departureAt": "2026-06-28T23:18:15.774Z",
  "arrivalAt": "2026-06-29T14:11:15.774Z",
  "durationMinutes": 893,
  "status": "cancelled",
  "priceFrom": 1662.25,
  "currency": "AUD",
  "createdAt": "2026-06-14T23:18:15.774Z"
}