example-data.com
Menu
Browse docs and collections

Overview

flights / #361

Sep
15
Mon

Air France AF3420

11:47 AM – 8:01 PM

LAX → CDG

From AED 1332.23

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 361,
  "flightNumber": "AF3420",
  "airline": "Air France",
  "departureAirport": "LAX",
  "arrivalAirport": "CDG",
  "departureAt": "2025-09-15T11:47:49.976Z",
  "arrivalAt": "2025-09-15T20:01:49.976Z",
  "durationMinutes": 494,
  "status": "landed",
  "priceFrom": 1332.23,
  "currency": "AED",
  "createdAt": "2025-08-21T11:47:49.976Z"
}