Dec
20
Sat
Air France AF8619
1:17 AM – 9:01 AM
BCN → NRT
From USD 1673.69
Overview
flights / #14
1:17 AM – 9:01 AM
BCN → NRT
From USD 1673.69
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/14" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/14" ); 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/14"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/14"
)
flight = res.json() Response
{
"id": 14,
"flightNumber": "AF8619",
"airline": "Air France",
"departureAirport": "BCN",
"arrivalAirport": "NRT",
"departureAt": "2025-12-20T01:17:11.922Z",
"arrivalAt": "2025-12-20T09:01:11.922Z",
"durationMinutes": 464,
"status": "boarding",
"priceFrom": 1673.69,
"currency": "USD",
"createdAt": "2025-12-09T01:17:11.922Z"
}