Bts Ontime
v0.2.1bts-ontime -- US airline on-time performance and delay causes (fleet #2953).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
route_ontime
Monthly on-time performance for one US domestic flight route (origin airport -> destination airport), from BTS TranStats Reporting Carrier On-Time Performance. Returns, per month (and per carrier if more than one serves the route): flights, completed flights, on-time arrivals and on-time %, average arrival delay in minutes, cancellations, diversions, and delay minutes broken down by cause (carrier, weather, NAS/air-traffic-control, security, late aircraft). Pass carrier (2-letter code like "DL", or a common name like "Delta") to scope to one airline; omit it to see every carrier that flew the…
| Parameter | Type | Description |
|---|---|---|
dest * | string | Destination airport code, e.g. "LAX". |
origin * | string | Origin airport code, e.g. "JFK". |
carrier | string | Optional: 2-letter carrier code ("DL") or common name ("Delta") to scope to one airline. |
months | number | How many of the most recently loaded months to return, most recent first. Default 12. |
carrier_ontime
Monthly on-time performance for one airline, aggregated across all its routes (or just the routes touching one airport), from BTS TranStats Reporting Carrier On-Time Performance. Pass carrier as a 2-letter code ("WN") or common name ("Southwest"). Pass airport to scope to flights where that airport is the origin or destination. Returns the same per-month shape as route_ontime (flights, on-time %, average arrival delay, cancellations, diversions, delay minutes by cause). months caps how many of the most recently loaded months to return (default 12). Unknown carrier codes are refused with a clea…
| Parameter | Type | Description |
|---|---|---|
carrier * | string | 2-letter carrier code ("WN") or common name ("Southwest"). |
airport | string | Optional: scope to flights where this airport is the origin or destination. |
months | number | How many of the most recently loaded months to return, most recent first. Default 12. |
bts_airport_delays
Delay-cause breakdown at one US airport (as the ARRIVAL airport), by carrier, from BTS TranStats on-time data: arriving flights, how many arrived 15+ minutes late, cancellations, diversions, and delay minutes attributed to carrier, weather, NAS (air-traffic-control/system), security, and late-aircraft causes. Pass year and/or month to scope to a specific period; omit both to get every loaded month, most recent first. Rows beyond `limit` are reported via truncated/total_matching rather than silently dropped -- narrow with year/month or page with limit/offset to see the rest. Unknown airport cod…
| Parameter | Type | Description |
|---|---|---|
airport * | string | Airport code, e.g. "ORD". |
limit | number | Max rows to return, 1-200. Default 50. A truncated response carries truncated:true and total_matching. |
month | number | Optional: scope to one month (1-12). Requires year to be meaningful alongside it, but works alone too (matches that month in any loaded year). |
offset | number | Pagination offset. Default 0. |
year | number | Optional: scope to one calendar year. |
delay_causes
Delay-cause rows for a given year, optionally scoped to one carrier and/or one (arrival) airport, from BTS TranStats on-time data. Same fields as bts_airport_delays (arriving flights, 15+ minute-late arrivals, cancellations, diversions, delay minutes by cause) but organized by year first rather than by airport first -- use this to scan a whole year across carriers/airports, or to compare one carrier's delay profile across the airports it serves. Rows beyond `limit` are reported via truncated/total_matching rather than silently dropped -- narrow with carrier/airport or page with limit/offset to…
| Parameter | Type | Description |
|---|---|---|
year * | number | Calendar year, e.g. 2026. |
airport | string | Optional: arrival-airport code, e.g. "DFW". |
carrier | string | Optional: 2-letter carrier code ("AA") or common name ("American"). |
limit | number | Max rows to return, 1-200. Default 50. A truncated response carries truncated:true and total_matching. |
offset | number | Pagination offset. Default 0. |
list_coverage
What this pack actually has loaded right now: the earliest and latest BTS month covered, how many months, and when it was last loaded. Call this before route_ontime/carrier_ontime/bts_airport_delays/delay_causes if you are not sure a given month or year is covered.