# Airline Fares API – US Domestic Airfares by Route and Airline

Average, median and percentile fares and passenger counts for every US domestic airport pair by airline and quarter since 2010, nonstop or connecting, from the DOT Origin and Destination Survey (DB1B).

$0.80 per 1,000 records

[Get an API key](https://pushbuild.com/apis/app/signup?api=airline-fares)

Example request

```
POST /airline-fares/run
{
  "origins": [
    "BOS"
  ],
  "maxItems": 20
}
```

## What it returns

What travelers actually paid to fly between US airports, every quarter since 2010: for each origin and destination airport and each ticketing airline (or all airlines combined), nonstop, connecting or all itineraries, the passengers in the sample and the estimated total, the average fare, the 10th, 25th, 50th, 75th and 90th percentile fares, the nonstop distance and the average fare in cents per mile.

Filter by origin, destination (one or both directions), airport, state, airline, itinerary type, quarter range or minimum passengers, and sort by traffic, cheapest, priciest or cents per mile, for fare benchmarking, route pricing and competition analysis.

Source: the US Department of Transportation Airline Origin and Destination Survey (DB1B Market), a 10% sample of domestic airline tickets, updated quarterly about five months after each quarter ends. Fares are one-way market fares per passenger; fares under $25 (mostly award travel) and bulk fares are excluded.

Charged per row returned.

## Request

`POST https://api.pushbuild.com/airline-fares/run` with a JSON body. Send your key in the `X-API-Key` header.

| Field | Type | Description |
| --- | --- | --- |
| `origins` | list of strings | Three-letter airport codes, e.g. BOS. |
| `destinations` | list of strings | Three-letter airport codes, e.g. LAX. |
| `bothDirections` | boolean | With origins and destinations, also include trips in the reverse direction. |
| `airports` | list of strings | Trips starting or ending at any of these airports. |
| `originStates` | list of strings | Two-letter state codes. |
| `destStates` | list of strings | Two-letter state codes. |
| `carriers` | list of strings | Airline codes, e.g. AA, DL, UA, WN, B6, NK. Default ALL (every airline combined). |
| `itinerary` | string: all, nonstop, connecting | all (default), nonstop or connecting. |
| `quarterFrom` | string | YYYY-Qn or YYYY. Without a range, the latest quarter. |
| `quarterTo` | string | YYYY-Qn or YYYY. |
| `allQuarters` | boolean | Every quarter since 2010 instead of the latest. |
| `minPassengers` | integer | Only routes with at least this many estimated passengers in the quarter. |
| `sort` | string: passengers, cheapest, priciest, newest, centsPerMile | passengers (default), cheapest, priciest, newest or centsPerMile. |
| `maxItems` | integer | Maximum items to return (1-500). Default: `100`. |

### Example

```
curl -X POST https://api.pushbuild.com/airline-fares/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origins": ["BOS"], "maxItems": 20}'
```

### Response

```
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
```

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

## Pricing

Pay only for results returned: $0.80 per 1,000 records. No charge for errors or empty searches.

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/airline-fares`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [Airline On-Time Performance API](https://pushbuild.com/apis/airline-on-time-performance.html): Every scheduled US domestic flight by the reporting airlines since 2018 with scheduled and actual times, delays by cause, cancellations and diversions, plus on-time rates by carrier, airport, route, flight or month, from BTS..
- [Airline Route Traffic API](https://pushbuild.com/apis/airline-route-traffic.html): Monthly passengers, seats, departures, freight and mail for every airline route touching the US since 2005, by carrier, airport pair and aircraft type, with load factors, from BTS T-100 segment data..
- [Airport Database API](https://pushbuild.com/apis/airports-database.html): 80,000+ airports, heliports and seaplane bases worldwide: IATA and ICAO codes, name, type, city, region, country, latitude, longitude, elevation, scheduled service flag, website and Wikipedia link..
- [Air Quality API](https://pushbuild.com/apis/us-air-quality.html): Official US air quality from EPA AirNow: current AQI and next-day forecasts for every US reporting area (plus US embassy cities abroad), and hourly readings from about 2,000 monitors: AQI, PM2.5, PM10, ozone, NO2, CO and SO2.
- [Vehicle Fuel Economy API](https://pushbuild.com/apis/vehicle-fuel-economy.html): Official EPA fuel economy for every US car and light truck since 1984 from fueleconomy.gov: city, highway and combined MPG, EV kWh per 100 miles and range, CO2 grams per mile, annual fuel cost, fuel economy and greenhouse scores, engine, transmission and drive..
- [Vehicle Complaints API](https://pushbuild.com/apis/nhtsa-complaints.html): NHTSA vehicle safety complaints filed by owners: ODI number, make, model and year, date filed and of incident, components (engine, brakes, airbags, electrical), crash and fire flags, injuries, deaths, partial VIN and the owner's description.

## Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

[hello@pushbuild.com](mailto:hello@pushbuild.com?subject=API%20question)

[(617) 299-8887](tel:+16172998887)

---
As of 2026-11-05. Source: https://pushbuild.com/apis/airline-fares.html
