Flights
List public flight history with local airport times and evidence, including bookings
GET /api/flights.json
Request policy
- Operation
listFlights- Access
- anonymous
- Automatic retries
- None
- Redirects
- Returned to the caller without following
- Request body limit
- No request body
- Pagination
- No collection iterator
Parameters
No path or query parameters.
Responses
200
Flight history, newest departure first
application/json
object
Schema details
flights object[] required
Schema details
object
Schema details
date string required
flight string required
origin string required
destination string required
via string required
departs string required
arrives string required
arrivalNote string required
evidence string required
503
Flight history unavailable
Response headers
{
"Problem-Details": {
"description": "draft-nottingham-problem-header-00 Structured Fields Dictionary. Carries type and Display String title; JSON problem content wins conflicts. Occurrence detail and instance remain in content.",
"schema": {
"type": "string",
"maxLength": 4096
}
}
}application/problem+json
ProblemDetails
Schema details
type string required (uri)
Problem type URI (see /problems/)
title string required
Short human-readable summary
status number required
HTTP status code
detail string required
Human-readable explanation
instance string (uri)
URI reference for this occurrence
Examples
Examples use synthetic fixture values. Replace fixture identifiers with public IDs returned by the service. Request bodies and precise locations are transient; keep them out of logs.
curl
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request GET 'https://irvinebroque.com/api/flights.json' --header 'Accept: application/json'TypeScript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.flights.list({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.CLI
irvinebroque flights listThe SDK preserves status, headers, and the server envelope. A 304 has no fresh body. Errors retain structured problem details; ordinary error messages omit response details. Responses are limited to 16 MiB and requests time out after 30 seconds by default.