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/faresAlso included in Airline 360 , which joins it with 1 other APIs in one call.
Query parameters
| Parameter | Description | Try value |
|---|---|---|
carrierstring | Airline code or name to filter the carrier table | |
quartersnumber | Quarters of history (default 20, max 60) | |
apikeystring 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).