# TSA Checkpoint Travel Numbers (Daily, Weekly & YoY) (`japan-open-data/tsa-checkpoint-throughput`) Actor

Daily U.S. TSA airport checkpoint traveler counts from tsa.gov as clean JSON, with Monday-Sunday weekly averages calculated like Kalshi's TSA market and year-over-year change. History from 2019.

- **URL**: https://apify.com/japan-open-data/tsa-checkpoint-throughput.md
- **Developed by:** [Japan Open Data](https://apify.com/japan-open-data) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## TSA Checkpoint Travel Numbers API (Daily, Weekly Average & YoY)

**Get the official U.S. TSA checkpoint numbers — how many travelers passed through TSA airport security checkpoints each day — as clean JSON, plus Monday–Sunday weekly averages and year-over-year change.** Data comes straight from the TSA "checkpoint travel numbers" page on tsa.gov, with full daily history back to January 1, 2019.

- **Daily TSA passenger volumes:** one row per day — date, weekday, travelers screened, and the same weekday one year earlier.
- **Weekly averages the way prediction markets settle:** sum of the published daily numbers from Monday to Sunday ÷ number of published days. An in-progress week is averaged over the days published so far, with `daysPublished` and `isComplete` so you always know where the week stands.
- **Year-over-year (YoY) change** against the same weekday 52 weeks (364 days) earlier, so weekday effects cancel out.
- No API key, no login, runs in about 4 seconds. Pay only for the rows you get.

### What can it be used for?

1. **Trading weekly TSA markets (e.g. Kalshi's "TSA check-ins" market).** Pull the current week's running average, the number of days still missing, and last year's same-weekday numbers in one call — from a bot, a spreadsheet, or a scheduled task every weekday morning.
2. **Airline, travel and macro analysis.** Track U.S. air travel demand with a daily high-frequency indicator: build weekly series, YoY growth, holiday comparisons (Thanksgiving, July 4th, spring break) and dashboards, with clean history since 2019.
3. **AI agents and automations.** Give an AI agent (via the Apify API or MCP) a reliable tool to answer "How many people did TSA screen yesterday?" or "What is this week's TSA average so far vs. last year?" — flat JSON, one row per day or week, with a `status` on every row.

### How to use it

All inputs are optional. Run it with an empty input `{}` to get the latest 14 published days.

| Input | Type | Default | What it does |
|---|---|---|---|
| `mode` | `"daily"` or `"weekly"` | `"daily"` | `daily`: one row per published day. `weekly`: one row per Monday–Sunday week with the weekly average. |
| `startDate` | `YYYY-MM-DD` | empty | First date to return (2019-01-01 or later). Empty = latest 14 days (daily) or latest 4 weeks (weekly). In weekly mode every week that overlaps the range is returned in full. |
| `endDate` | `YYYY-MM-DD` | empty | Last date to return. Empty = the latest published day. |
| `includeYoY` | boolean | `true` | Adds last year's number for the same weekday 52 weeks earlier and the % change. |

#### Input examples

Latest 14 days (default):

```json
{}
```

Current week's running average plus the previous 3 weeks:

```json
{ "mode": "weekly" }
```

Full history for one year, one row per day:

```json
{ "mode": "daily", "startDate": "2025-01-01", "endDate": "2025-12-31" }
```

#### Output example — daily

Real output from a run on 2026-09-18 (`{}`), last row shown:

```json
{
  "status": "ok",
  "date": "2026-09-17",
  "dayOfWeek": "Thursday",
  "travelers": 2700658,
  "weekStart": "2026-09-14",
  "lastYearDate": "2025-09-18",
  "travelersLastYear": 2788191,
  "yoyChangePct": -3.14,
  "sourceUrl": "https://www.tsa.gov/travel/passenger-volumes",
  "fetchedAt": "2026-09-18T23:29:53Z"
}
```

#### Output example — weekly

Real output from the same day (`{"mode": "weekly"}`). A complete week and the in-progress week (Monday–Thursday published so far):

```json
{
  "status": "ok",
  "weekStart": "2026-09-07",
  "weekEnd": "2026-09-13",
  "daysPublished": 7,
  "isComplete": true,
  "lastPublishedDate": "2026-09-13",
  "travelersTotal": 16530937,
  "weeklyAverage": 2361562.43,
  "lastYearWeekStart": "2025-09-08",
  "lastYearWeeklyAverage": 2367554.86,
  "lastYearFullWeekAverage": 2367554.86,
  "yoyChangePct": -0.25,
  "sourceUrl": "https://www.tsa.gov/travel/passenger-volumes",
  "fetchedAt": "2026-09-18T23:30:12Z"
}
```

```json
{
  "status": "ok",
  "weekStart": "2026-09-14",
  "weekEnd": "2026-09-20",
  "daysPublished": 4,
  "isComplete": false,
  "lastPublishedDate": "2026-09-17",
  "travelersTotal": 9368701,
  "weeklyAverage": 2342175.25,
  "lastYearWeekStart": "2025-09-15",
  "lastYearWeeklyAverage": 2400600.25,
  "lastYearFullWeekAverage": 2483007.57,
  "yoyChangePct": -2.43,
  "sourceUrl": "https://www.tsa.gov/travel/passenger-volumes",
  "fetchedAt": "2026-09-18T23:30:12Z"
}
```

Invalid input and date ranges with no data return one **free** row that says what to fix:

```json
{"status": "error", "error": "\"mode\" must be \"daily\" (one row per day) or \"weekly\" (one row per Monday-Sunday week)."}
{"status": "not_found", "error": "TSA has no published numbers between 2027-01-01 and 2027-01-01; choose dates between 2019-01-01 and 2026-09-17 (the latest published day)."}
```

#### Output fields

| Field | Mode | Meaning |
|---|---|---|
| `status` | both | `ok`, `not_found` or `error` |
| `date`, `dayOfWeek` | daily | The day (`YYYY-MM-DD`) and its weekday name |
| `travelers` | daily | Travelers screened at TSA checkpoints nationwide that day |
| `weekStart` | both | Monday of the week the row belongs to |
| `lastYearDate`, `travelersLastYear` | daily | Same weekday 364 days earlier and its number |
| `weekEnd` | weekly | Sunday of the week |
| `daysPublished`, `isComplete` | weekly | How many days of the week TSA has published (1–7); `true` when all 7 are in |
| `lastPublishedDate` | weekly | Latest published day inside the week |
| `travelersTotal`, `weeklyAverage` | weekly | Sum of the published days, and that sum ÷ `daysPublished` |
| `lastYearWeekStart` | weekly | Monday of the same week one year earlier (52 weeks back) |
| `lastYearWeeklyAverage` | weekly | Last year's average over **the same weekdays** as published this week (like-for-like for an in-progress week) |
| `lastYearFullWeekAverage` | weekly | Last year's full 7-day average for that week |
| `yoyChangePct` | both | % change vs. last year (daily: vs. `travelersLastYear`; weekly: vs. `lastYearWeeklyAverage`) |
| `sourceUrl`, `fetchedAt` | both | The tsa.gov page the numbers came from and when it was read (UTC) |
| `error` | error rows | One sentence explaining what went wrong and how to fix it |

With `includeYoY: false`, the last-year fields are left out.

### How the weekly average is calculated

- Weeks run **Monday to Sunday**.
- `weeklyAverage` = sum of the daily numbers TSA has published for that week ÷ the number of days published. Missing days are **not** filled in or estimated.
- This matches the weekly-average wording used in public prediction-market contracts on TSA check-ins (such as Kalshi's). Always read the contract of the market you trade for the exact rules — this Actor only reports what tsa.gov shows at the time of the run.
- YoY compares with the same weekdays 52 weeks earlier, so a Monday is compared with a Monday. Holidays that move between weeks (Thanksgiving, Easter, July 4th) still cause large daily YoY swings.

### Pricing

This Actor uses **Pay per event** pricing — you pay for rows returned, not for compute time:

| Event | Price | When |
|---|---|---|
| Result row (`result-row`) | **$0.002** per row ($2 per 1,000) | Each `ok` row: one day (daily mode) or one week (weekly mode) |
| Actor start (`apify-actor-start`) | **$0.002** per run | Once at the start of each run |

- `error` and `not_found` rows are **free**.
- Example: the default run (latest 14 days) costs about **$0.03**. A weekly check (`{"mode": "weekly"}`, 4 rows) costs about **$0.01**.
- A bot that checks the weekly average once every weekday morning pays about **$0.22 per month**.
- The full daily history since 2019 (about 2,800 rows) costs about $5.60 once — then fetch only new days.
- Use the **maximum cost per run** option when you start the Actor to cap spending. If the limit is reached, the Actor stops cleanly and says so in the status message.

### Use via API & MCP (AI agents)

**Apify API (HTTP).** Run the Actor and get the rows in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/japan-open-data~tsa-checkpoint-throughput/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"mode": "weekly"}'
```

**Python (apify-client):**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("japan-open-data/tsa-checkpoint-throughput").call(run_input={"mode": "weekly"})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["weekStart"], row["daysPublished"], row["weeklyAverage"], row.get("yoyChangePct"))
```

**MCP (Claude, ChatGPT, Cursor and other AI agents).** Add this Actor as a tool through the Apify MCP server (https://mcp.apify.com), for example with `?tools=japan-open-data/tsa-checkpoint-throughput`. The input has only four optional fields, so agents can call it with `{}`.

Recommended agent settings:

- "Latest TSA number" / "yesterday's TSA count" → `{}` and read the last row, or set `startDate` and `endDate` to the same day to get a single row (cheapest).
- "This week's TSA average so far" → `{"mode": "weekly", "startDate": "<any date this week>"}` → one row with `weeklyAverage`, `daysPublished` and `isComplete`.
- Always check `status`; on `error`/`not_found` show the `error` sentence to the user.

### Data source and attribution

- **Source:** U.S. Transportation Security Administration (TSA), "TSA checkpoint travel numbers" — https://www.tsa.gov/travel/passenger-volumes and the yearly archive pages (for example https://www.tsa.gov/travel/passenger-volumes/2025).
- **License:** TSA states that information presented on its website is public information and may be distributed or copied (https://www.tsa.gov/privacy-policy). The numbers are U.S. federal government data.
- **Not affiliated:** This Actor is an independent project. It is **not affiliated with, endorsed by or sponsored by the TSA, the U.S. Department of Homeland Security, or Kalshi**. It does not use any TSA logos or seals.
- **Access:** The Actor reads only the public passenger-volumes pages (normally 1–3 pages per run, at most 8), identifies itself in the User-Agent, and does not bypass any protection.
- **No personal data:** only nationwide daily totals and dates.
- **Not financial advice.** Verify numbers on tsa.gov before relying on them for trading or settlement.

### Known limitations

- **Update timing.** TSA updates the page Monday–Friday by about 9 a.m. U.S. Eastern time. Saturday's and Sunday's numbers usually appear on Monday morning, so a Monday–Sunday week is normally complete only on the following Monday. During holiday weeks updates may be a day or more late.
- **Revisions.** TSA occasionally corrects published numbers. Every run reads the live page, so a re-run returns the corrected value; older run results are not changed.
- **Nationwide totals only.** No airport-, checkpoint- or hour-level numbers.
- **Early January 2019.** Data starts on 2019-01-01 (a Tuesday), so the first week (2018-12-31 to 2019-01-06) shows `daysPublished: 6` and `isComplete: false`.
- **Early January each year.** Right after New Year, the Actor combines the new year's page with the previous year's archive page. If TSA changes how it splits pages around the new year, the first days of January may be delayed until the next run.
- **Page changes.** tsa.gov has no official API; if TSA redesigns the page, the Actor returns one `error` row (not charged) and the run is marked as failed until it is fixed.
- **Cost limit.** If your maximum cost per run is lower than the price of one row, the dataset stays empty and the status message explains why.

### More from Japan Open Data

- [Japan Postal Code & Address in English](https://apify.com/japan-open-data/japan-postal-code-english) — look up Japanese postal codes (zip codes) and addresses in English/romaji, kanji and kana, from Japan Post's official data.
- [US Hail History by Location (NOAA NEXRAD Radar)](https://apify.com/japan-open-data/us-hail-history) — hail history for any U.S. latitude/longitude from NOAA NEXRAD radar: one row per hail day with the maximum estimated hail size, probability and distance.
- [Mexico Gas Prices API by Station (Official CNE)](https://apify.com/japan-open-data/mexico-fuel-station-prices) — today's regular, premium and diesel prices at every Mexican gas station from the official CNE feed, with coordinates and distance.
- [US Storm Reports API: Hail, Wind & Tornado (NWS)](https://apify.com/japan-open-data/us-storm-reports-live) — U.S. hail, wind, tornado and flood reports from official NWS Local Storm Reports within hours (last 7 days), filterable by state or radius.

### Feedback

Found a wrong number or need another field? Open an issue on the Actor's **Issues** tab with your input and what you expected.

# Actor input Schema

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

"daily" returns one row per published day. "weekly" returns one row per Monday-Sunday week with the weekly average calculated like Kalshi's TSA market: sum of the published daily numbers in the week divided by the number of published days (an in-progress week is averaged over the days published so far).

## `startDate` (type: `string`):

First date to return, YYYY-MM-DD (2019-01-01 or later). Leave empty for the latest 14 published days (daily) or the latest 4 weeks (weekly). In weekly mode, every Monday-Sunday week that overlaps the date range is returned in full.

## `endDate` (type: `string`):

Last date to return, YYYY-MM-DD. Leave empty for the latest published day (TSA usually publishes the previous day's number each morning, U.S. Eastern time).

## `includeYoY` (type: `boolean`):

Adds last year's number for the same weekday 52 weeks (364 days) earlier and the percentage change. Needs one extra page from tsa.gov when the comparison year is not already loaded.

## Actor input object example

```json
{
  "mode": "daily",
  "includeYoY": true
}
```

# Actor output Schema

## `results` (type: `string`):

TSA checkpoint traveler counts with weekly averages and year-over-year change. Table view: overview.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("japan-open-data/tsa-checkpoint-throughput").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("japan-open-data/tsa-checkpoint-throughput").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 '{}' |
apify call japan-open-data/tsa-checkpoint-throughput --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,japan-open-data/tsa-checkpoint-throughput"
        }
    }
}
```

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/59ippvY7TO6Y4JJY3/builds/zBcviwd0bBWES8NT1/openapi.json
