Jun
6
Fri
Japan Airlines JL6531
2:55 PM – 5:46 PM
ICN → BCN
From SGD 604.53
Overview
flights / #81
2:55 PM – 5:46 PM
ICN → BCN
From SGD 604.53
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/81" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/81" ); 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/81"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/81"
)
flight = res.json() Response
{
"id": 81,
"flightNumber": "JL6531",
"airline": "Japan Airlines",
"departureAirport": "ICN",
"arrivalAirport": "BCN",
"departureAt": "2025-06-06T14:55:41.172Z",
"arrivalAt": "2025-06-06T17:46:41.172Z",
"durationMinutes": 171,
"status": "delayed",
"priceFrom": 604.53,
"currency": "SGD",
"createdAt": "2025-03-30T14:55:41.172Z"
}