example-data.com
Menu
Browse docs and collections

Overview

flights / #121

May
22
Fri

Air France AF7015

6:33 PM – 9:27 PM

SYD → JFK

From AED 1908.54

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 121,
  "flightNumber": "AF7015",
  "airline": "Air France",
  "departureAirport": "SYD",
  "arrivalAirport": "JFK",
  "departureAt": "2026-05-22T18:33:29.344Z",
  "arrivalAt": "2026-05-22T21:27:29.344Z",
  "durationMinutes": 174,
  "status": "landed",
  "priceFrom": 1908.54,
  "currency": "AED",
  "createdAt": "2026-05-06T18:33:29.344Z"
}