example-data.com
Menu
Browse docs and collections

Overview

flights / #329

Sep
26
Sat

Air France AF7256

10:53 AM – 10:12 PM

ORD → DXB

From JPY 615.23

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 329,
  "flightNumber": "AF7256",
  "airline": "Air France",
  "departureAirport": "ORD",
  "arrivalAirport": "DXB",
  "departureAt": "2026-09-26T10:53:42.256Z",
  "arrivalAt": "2026-09-26T22:12:42.256Z",
  "durationMinutes": 679,
  "status": "cancelled",
  "priceFrom": 615.23,
  "currency": "JPY",
  "createdAt": "2026-08-06T10:53:42.256Z"
}