example-data.com
Menu
Browse docs and collections

Overview

flights / #357

Aug
23
Sun

Air France AF8713

7:29 PM – 4:41 AM

FCO → JFK

From SGD 1211.54

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 357,
  "flightNumber": "AF8713",
  "airline": "Air France",
  "departureAirport": "FCO",
  "arrivalAirport": "JFK",
  "departureAt": "2026-08-23T19:29:40.607Z",
  "arrivalAt": "2026-08-24T04:41:40.607Z",
  "durationMinutes": 552,
  "status": "delayed",
  "priceFrom": 1211.54,
  "currency": "SGD",
  "createdAt": "2026-07-26T19:29:40.607Z"
}