example-data.com
Menu
Browse docs and collections

Overview

flights / #335

Sep
12
Fri

Air France AF647

2:37 AM – 1:38 PM

ORD → SIN

From AUD 1638.24

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 335,
  "flightNumber": "AF647",
  "airline": "Air France",
  "departureAirport": "ORD",
  "arrivalAirport": "SIN",
  "departureAt": "2025-09-12T02:37:47.912Z",
  "arrivalAt": "2025-09-12T13:38:47.912Z",
  "durationMinutes": 661,
  "status": "delayed",
  "priceFrom": 1638.24,
  "currency": "AUD",
  "createdAt": "2025-08-26T02:37:47.912Z"
}