example-data.com
Menu
Browse docs and collections

Overview

flights / #44

May
27
Wed

Japan Airlines JL3898

12:36 PM – 12:20 AM

ATL → BCN

From SGD 1396.08

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 44,
  "flightNumber": "JL3898",
  "airline": "Japan Airlines",
  "departureAirport": "ATL",
  "arrivalAirport": "BCN",
  "departureAt": "2026-05-27T12:36:02.274Z",
  "arrivalAt": "2026-05-28T00:20:02.274Z",
  "durationMinutes": 704,
  "status": "delayed",
  "priceFrom": 1396.08,
  "currency": "SGD",
  "createdAt": "2026-04-01T12:36:02.274Z"
}