Jun
5
Thu
Air France AF4855
9:24 AM – 11:05 PM
ORD → BCN
From USD 50.98
Overview
flights / #115
9:24 AM – 11:05 PM
ORD → BCN
From USD 50.98
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/115" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/115" ); 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/115"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/115"
)
flight = res.json() Response
{
"id": 115,
"flightNumber": "AF4855",
"airline": "Air France",
"departureAirport": "ORD",
"arrivalAirport": "BCN",
"departureAt": "2025-06-05T09:24:17.092Z",
"arrivalAt": "2025-06-05T23:05:17.092Z",
"durationMinutes": 821,
"status": "in_air",
"priceFrom": 50.98,
"currency": "USD",
"createdAt": "2025-05-19T09:24:17.092Z"
}