example-data.com
Menu
Browse docs and collections

Overview

flights / #283

Apr
30
Thu

Air France AF7102

3:17 AM – 10:57 AM

NRT → ICN

From EUR 1885.80

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 283,
  "flightNumber": "AF7102",
  "airline": "Air France",
  "departureAirport": "NRT",
  "arrivalAirport": "ICN",
  "departureAt": "2026-04-30T03:17:59.700Z",
  "arrivalAt": "2026-04-30T10:57:59.700Z",
  "durationMinutes": 460,
  "status": "in_air",
  "priceFrom": 1885.8,
  "currency": "EUR",
  "createdAt": "2026-04-23T03:17:59.700Z"
}