example-data.com
Menu
Browse docs and collections

Overview

flights / #154

Jan
26
Mon

Air France AF7488

10:00 PM – 12:14 AM

ATL → AMS

From SGD 618.82

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 154,
  "flightNumber": "AF7488",
  "airline": "Air France",
  "departureAirport": "ATL",
  "arrivalAirport": "AMS",
  "departureAt": "2026-01-26T22:00:51.010Z",
  "arrivalAt": "2026-01-27T00:14:51.010Z",
  "durationMinutes": 134,
  "status": "landed",
  "priceFrom": 618.82,
  "currency": "SGD",
  "createdAt": "2026-01-12T22:00:51.010Z"
}