API reference/Airlines & Aviation/US Domestic Airfares

US Domestic Airfares

The average US domestic airfare by quarter, with yield per mile and trip length, plus each airline’s average fare in the latest quarter, from the DOT 10% ticket sample.

GET/api/v1/airlines/us/fares
Also included in Airline 360 , which joins it with 1 other APIs in one call.

Query parameters

ParameterDescriptionTry value
carrier
string
Airline code or name to filter the carrier table
quarters
number
Quarters of history (default 20, max 60)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504. Add format= for JSON Lines, CSV, TSV, Excel, XML or YAML (how it works).