# US Airline On-Time and Delay Analytics (`parselab/us-airline-on-time-delay-analytics-scraper`) Actor

Get on-time performance for US airlines, routes and airports from the official federal monthly reports. Each row has on-time percent, delay percentiles, delay causes, cancellations and taxi times, or choose single flights. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/us-airline-on-time-delay-analytics-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** Travel, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.38 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Airline On-Time and Delay Analytics

Get flight delay data for US airlines, routes and airports straight from the monthly on-time reports of the US Bureau of Transportation Statistics. Every airline that flies in the United States must file these reports, so the numbers cover hundreds of thousands of flights per month and go back to 1987.

You can read the data in two ways. The summary mode returns one row of statistics per route, airline, airport, day or aircraft. The flights mode returns single flights with scheduled and actual times, delay minutes and the official cause of the delay.

### What you can find out

- How often is a route late, and how late is it when it is late?
- Which airline has the best on-time record between two cities?
- Which airports have the longest taxi out times?
- Why do flights run late: the airline itself, weather, air traffic control or a late incoming aircraft?
- What share of flights are cancelled, and what was the official reason?
- Which day of the week or hour of the day is the safest for a tight connection?
- Which flights arrived three hours or more late last month?
- How did one airline change from month to month?

### Search for flight delay data in seconds

Pick a month range, add filters if you like, and choose how the rows are grouped.

- Group by route, airline, airline on a route, departure airport, arrival airport, month, calendar day, weekday, scheduled departure hour or aircraft tail number.
- Filter by airline codes, departure and arrival airports, and departure and arrival states.
- Keep only groups with a minimum number of flights, so a route with 12 flights does not top your ranking.
- Sort by flights, on-time percent, late percent, cancellation percent, disruption percent, average delay, 90th percentile delay, severe delay percent or taxi out time.
- Split any group by month to get a monthly trend for each route or airline.

### Statistics in every summary row

- On-time percent, late percent (15 minutes or more), departure on-time percent
- Cancellation percent, diversion percent and a combined disruption percent
- Severe delay count and percent (3 hours or more late)
- Average, median, 90th and 95th percentile arrival delay in minutes
- Average delay when late, average departure delay, early arrival percent
- Delay minutes and share by cause: airline, weather, national aviation system, security and late aircraft
- Main delay cause and main cancellation cause in plain words
- Average taxi out, taxi in and air time, average distance in miles

### Single flights

Switch to the flights mode to get one row per flight. Add a minimum arrival delay, or ask only for cancelled or diverted flights. Each row has the flight date, weekday, airline, flight number, aircraft tail number, departure and arrival airports with city and state, a status (onTime, delayed, severelyDelayed, cancelled or diverted), scheduled and actual times as local timestamps, delay minutes, taxi and air times and the minutes of delay per cause.

### Input example

```json
{
    "mode": "summary",
    "groupBy": "route",
    "monthFrom": "2025-09",
    "monthTo": "2025-09",
    "origins": ["JFK"],
    "minFlights": 200,
    "sortBy": "onTimePercent",
    "sortOrder": "asc",
    "maxItems": 10
}
```

Leave both months empty to use the newest month that is published. One run reads up to 12 months in the summary mode and 3 months in the flights mode.

### Output example

A real row for flights from New York JFK to Boston in September 2025:

```json
{
    "origin": "JFK",
    "destination": "BOS",
    "originCity": "New York, NY",
    "destinationCity": "Boston, MA",
    "distanceMiles": 187,
    "scheduledFlights": 547,
    "cancelledFlights": 11,
    "onTimePercent": 66.2,
    "latePercent": 33.8,
    "cancellationPercent": 2.01,
    "avgArrivalDelayMin": 18,
    "medianArrivalDelayMin": -5,
    "p90ArrivalDelayMin": 92,
    "p95ArrivalDelayMin": 134,
    "avgDelayWhenLateMin": 77.7,
    "aviationSystemDelaySharePercent": 71.3,
    "mainDelayCause": "nationalAviationSystem",
    "mainCancellationCause": "national aviation system",
    "avgTaxiOutMin": 30.4,
    "avgTaxiInMin": 8.8
}
```

A real flight row from the same month:

```json
{
    "flightDate": "2025-09-06",
    "airlineCode": "DL",
    "airlineName": "Delta Air Lines",
    "flightNumber": "424",
    "origin": "JFK",
    "destination": "DEN",
    "status": "severelyDelayed",
    "scheduledDepartureLocal": "2025-09-06T19:55",
    "actualDepartureLocal": "2025-09-07T00:56",
    "arrivalDelayMin": 265,
    "delayMinutesFromLateAircraft": 265,
    "mainDelayCause": "lateAircraft"
}
```

### Who uses this data

- Travel insurers and claim firms that need delay and cancellation base rates per route
- Corporate travel managers who compare airlines on the routes they book
- Journalists and researchers who write about airline reliability
- Airport and airline analysts who benchmark taxi times and delay causes
- Travel apps that want to show how reliable a flight usually is

### Frequently asked questions

**Where does the data come from?**
From the Reporting Carrier On-Time Performance files of the US Bureau of Transportation Statistics. They are works of the US government and free to reuse. Please name the Bureau of Transportation Statistics as the source.

**How recent is the data?**
The newest month is usually published six to eight weeks after it ends. If you leave the months empty, the actor finds the latest month for you.

**What counts as on time?**
A flight is on time when it arrives less than 15 minutes after the scheduled time, the same rule the Bureau uses. Cancelled and diverted flights are counted separately.

**Are the percentiles exact?**
They are exact to the minute for delays between 60 minutes early and 12 hours late. Larger values are counted at the limit.

**Does it show live flight status?**
No. This actor reads the official monthly statistics. It is built for history and analysis, not for tracking a flight that is in the air.

**Does it cover foreign airlines or flights outside the United States?**
Only flights reported by US carriers on routes with a US departure or arrival airport are included, as in the official files. Airline names are added for the major carriers; others show their code.

**How big can a run be?**
Each month is a large file, so a run of three months takes about three minutes. For longer histories, start several runs for different month ranges.

**What does a free account get?**
Free users get up to 10 rows per run. Paid users can ask for up to 1,000,000 rows.

# Actor input Schema

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `mode` (type: `string`):

Summary returns one row of on-time statistics per route, airline, airport, day or other group. Flights returns one row per individual flight with scheduled and actual times, delay minutes and causes.

## `groupBy` (type: `string`):

Only for the summary mode. Route means origin to destination airport pairs.

## `monthFrom` (type: `string`):

First month as YYYY-MM, for example 2025-06. Leave empty to use only the newest month that is published. Data starts in 1987.

## `monthTo` (type: `string`):

Last month as YYYY-MM. Leave empty for the newest published month. One run reads up to 12 months in the summary mode and 3 months in the flights mode.

## `airlines` (type: `array`):

Two letter airline codes, for example DL, AA, UA, WN, B6.

## `origins` (type: `array`):

Airport codes, for example JFK, ATL, ORD.

## `destinations` (type: `array`):

Airport codes, for example LAX, MIA, SFO.

## `originStates` (type: `array`):

Two letter state codes, for example NY, TX, CA.

## `destinationStates` (type: `array`):

Two letter state codes of the arrival airport.

## `splitByMonth` (type: `boolean`):

Split every group by month, so you get a monthly trend for each route or airline.

## `minFlights` (type: `integer`):

Drops small groups so that percentages are meaningful, for example 100.

## `sortBy` (type: `string`):

Field used to order the summary rows.

## `sortOrder` (type: `string`):

Descending puts the highest value first.

## `minArrivalDelayMinutes` (type: `integer`):

Only return flights that arrived at least this many minutes late, for example 180.

## `cancelledOnly` (type: `boolean`):

Return only flights that were cancelled, with the official cancellation cause.

## `divertedOnly` (type: `boolean`):

Return only flights that landed at a different airport than planned.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "summary",
  "groupBy": "route",
  "origins": [
    "JFK"
  ],
  "splitByMonth": false,
  "minFlights": 1,
  "sortBy": "scheduledFlights",
  "sortOrder": "desc",
  "cancelledOnly": false,
  "divertedOnly": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 10,
    "origins": [
        "JFK"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/us-airline-on-time-delay-analytics-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxItems": 10,
    "origins": ["JFK"],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/us-airline-on-time-delay-analytics-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 10,
  "origins": [
    "JFK"
  ]
}' |
apify call parselab/us-airline-on-time-delay-analytics-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/us-airline-on-time-delay-analytics-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sIMMaTSSFSnxoGuHu/builds/TPgQUi99W6YAbybcM/openapi.json
