example-data.com
Menu
Browse docs and collections

Overview

flights / #343

Oct
5
Mon

Air France AF1054

12:28 PM – 11:01 PM

ORD → NRT

From AED 2289.02

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 343,
  "flightNumber": "AF1054",
  "airline": "Air France",
  "departureAirport": "ORD",
  "arrivalAirport": "NRT",
  "departureAt": "2026-10-05T12:28:03.103Z",
  "arrivalAt": "2026-10-05T23:01:03.103Z",
  "durationMinutes": 633,
  "status": "cancelled",
  "priceFrom": 2289.02,
  "currency": "AED",
  "createdAt": "2026-07-12T12:28:03.103Z"
}