Apr
19
Mon
Air France AF5483
5:32 AM – 6:46 AM
FCO → GRU
From USD 1237.75
Overview
flights / #281
5:32 AM – 6:46 AM
FCO → GRU
From USD 1237.75
Request
curl example
curl -sS \ "https://example-data.com/api/v1/flights/281" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/flights/281" ); 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/281"
);
const flight = (await res.json()) as Flight; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/flights/281"
)
flight = res.json() Response
{
"id": 281,
"flightNumber": "AF5483",
"airline": "Air France",
"departureAirport": "FCO",
"arrivalAirport": "GRU",
"departureAt": "2027-04-19T05:32:05.916Z",
"arrivalAt": "2027-04-19T06:46:05.916Z",
"durationMinutes": 74,
"status": "landed",
"priceFrom": 1237.75,
"currency": "USD",
"createdAt": "2027-03-09T05:32:05.916Z"
}