example-data.com
Menu
Browse docs and collections

Overview

flights / #39

Jun
17
Wed

Air France AF3634

2:00 AM – 12:44 PM

GRU → SIN

From USD 412.77

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 39,
  "flightNumber": "AF3634",
  "airline": "Air France",
  "departureAirport": "GRU",
  "arrivalAirport": "SIN",
  "departureAt": "2026-06-17T02:00:13.959Z",
  "arrivalAt": "2026-06-17T12:44:13.959Z",
  "durationMinutes": 644,
  "status": "landed",
  "priceFrom": 412.77,
  "currency": "USD",
  "createdAt": "2026-05-25T02:00:13.959Z"
}