example-data.com
Menu
Browse docs and collections

Overview

flights / #323

Jun
3
Wed

United Airlines UA6119

4:12 PM – 12:44 AM

NRT → FCO

From GBP 1143.64

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 323,
  "flightNumber": "UA6119",
  "airline": "United Airlines",
  "departureAirport": "NRT",
  "arrivalAirport": "FCO",
  "departureAt": "2026-06-03T16:12:57.563Z",
  "arrivalAt": "2026-06-04T00:44:57.563Z",
  "durationMinutes": 512,
  "status": "boarding",
  "priceFrom": 1143.64,
  "currency": "GBP",
  "createdAt": "2026-05-25T16:12:57.563Z"
}