example-data.com
Menu
Browse docs and collections

Overview

flights / #116

Mar
21
Sun

Air France AF7325

5:11 AM – 8:05 AM

MAD → LAX

From JPY 582.51

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 116,
  "flightNumber": "AF7325",
  "airline": "Air France",
  "departureAirport": "MAD",
  "arrivalAirport": "LAX",
  "departureAt": "2027-03-21T05:11:45.612Z",
  "arrivalAt": "2027-03-21T08:05:45.612Z",
  "durationMinutes": 174,
  "status": "scheduled",
  "priceFrom": 582.51,
  "currency": "JPY",
  "createdAt": "2026-12-23T05:11:45.612Z"
}