Skip to content

TSA checkpoint volumes

TSA passenger screening volumes: national daily counts and hourly counts per airport checkpoint

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/tsa/index.md to help me query TSA checkpoint volumes with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

The ten airports that screened the most passengers in the week of 1 November 2026

Example output · captured
Connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT airport, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07')
GROUP BY airport
ORDER BY passengers DESC
LIMIT 10
Result · first 5 rows
airport passengers
LAX 629,102
JFK 580,709
ORD 579,983
ATL 552,603
DFW 493,717

Quick start

Choose where to run TSA checkpoint volumes, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'tsa' AS tsa (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-tsa-worker'
);

3. Run a query

query.sql
SELECT airport, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07')
GROUP BY airport
ORDER BY passengers DESC
LIMIT 10
More example queries →
Technical details
Verified connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'tsa' AS tsa (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-tsa-worker'
);

Overview

TSA checkpoint passenger volumes in DuckDB: the national daily traveler count since 2019 and hourly throughput per airport checkpoint parsed from TSA's weekly FOIA reports. Published with a lag of days to weeks; not real time.

ATTACH options

cache_dir
Directory for cached tsa.gov pages and parsed weekly reports (about 1 MB of Parquet per week). Default: the per-user cache directory, e.g. ~/.cache/vgi-tsa or ~/Library/Caches/vgi-tsa.VARCHAR
base_url
Where pages and PDFs are fetched from: https://www.tsa.gov (default), a mirror URL, or a local directory laid out like tsa.gov (travel/passenger-volumes/index.html, travel/passenger-volumes/<year>/index.html, foia/readingroom/page-<n>.html, sites/default/files/foia-readingroom/<report>.pdf).VARCHAR
user_agent
User-Agent sent to tsa.gov (default 'vgi-tsa/0.1 (+https://query.farm)').VARCHAR
max_reports
Most weekly report PDFs one checkpoint_throughput query may download and parse (default 8; each is ~5 MB and ~15 s). Cached weeks do not count.BIGINT
offline
Never touch the network: use only what is cached, even if stale (default false).BOOLEAN

Catalog

Everything tsa exposes once attached — read straight from the worker's released build.

tsa 1 schema
main 3 tables · 2 functions

TSA passenger screening volumes: the nationwide daily count and hourly per-checkpoint counts from the weekly FOIA throughput reports, plus the report listing and the local cache.

Schema examples (9)
Examples (9)

The ten airports that screened the most passengers in the week of 1 November 2026

SELECT airport, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07')
GROUP BY airport
ORDER BY passengers DESC
LIMIT 10;
Result · first 5 rows
airport passengers
LAX 629,102
JFK 580,709
ORD 579,983
ATL 552,603
DFW 493,717

JFK's passengers by hour of day over one week

SELECT hour, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07', airport := 'JFK')
GROUP BY hour
ORDER BY hour;

Confirm a weekly report parsed cleanly: 0 rejects means every row passed validation

SELECT count(*) AS rejects, count(DISTINCT reason) AS reasons,
  min(page) AS first_page
FROM tsa.main.checkpoint_throughput_rejects(DATE '2026-11-01', DATE '2026-11-07');

Travelers screened per calendar year, 2019 through 2025

SELECT year(date) AS year, sum(travelers) AS travelers
FROM tsa.main.daily_throughput
WHERE date < DATE '2026-01-01'
GROUP BY ALL
ORDER BY year;
5 more examples

Daily travelers around Thanksgiving 2025 with a seven-day moving average

SELECT date, travelers,
  round(avg(travelers) OVER (ORDER BY date ROWS 6 PRECEDING)) AS seven_day_avg
FROM tsa.main.daily_throughput
WHERE date >= DATE '2025-11-01' AND date < DATE '2025-12-15'
ORDER BY date;

The five most recent weekly checkpoint reports

SELECT start_date, end_date, title
FROM tsa.main.throughput_reports
WHERE end_date >= DATE '2026-09-01'
ORDER BY end_date DESC
LIMIT 5;

How many weekly reports exist for each year

SELECT year(start_date) AS year, count(*) AS weeks
FROM tsa.main.throughput_reports
WHERE start_date IS NOT NULL
GROUP BY ALL
ORDER BY year;

How many files, parsed weeks and bytes are cached

SELECT count(*) AS files,
  count(*) FILTER (WHERE kind = 'checkpoint_report') AS weeks,
  coalesce(sum(bytes), 0) AS bytes
FROM tsa.main.cache_info;

Weekly reports parsed so far, with their row and reject totals

SELECT count(*) AS weeks, coalesce(sum(rows), 0) AS hourly_rows,
  coalesce(sum(rejected_rows), 0) AS rejected
FROM tsa.main.cache_info
WHERE kind = 'checkpoint_report';
Tables
cache_info 2 examples10 cols

Files in the local cache: daily volume pages, the report index and parsed weekly reports

Columns
kind VARCHAR
daily_volumes, report_index or checkpoint_report.
pathnot null VARCHAR
Local cache file (unique per row).
source_url VARCHAR
Where the data came from.
start_date DATE
First day covered (checkpoint reports and yearly volume pages).
end_date DATE
Last day covered.
rows BIGINT
Count of data rows held in the file (days, reports or hourly rows).
rejected_rows BIGINT
Report rows that failed validation (checkpoint reports only).
bytes BIGINT
Size of the cache file in bytes.
sha256 VARCHAR
SHA-256 of the downloaded PDF (checkpoint reports only).
fetched_at TIMESTAMP WITH TIME ZONE
When it was downloaded or parsed.
ConstraintsPRIMARY KEY (path)
Examples (2)

How many files, parsed weeks and bytes are cached

SELECT count(*) AS files,
  count(*) FILTER (WHERE kind = 'checkpoint_report') AS weeks,
  coalesce(sum(bytes), 0) AS bytes
FROM tsa.main.cache_info;

Weekly reports parsed so far, with their row and reject totals

SELECT count(*) AS weeks, coalesce(sum(rows), 0) AS hourly_rows,
  coalesce(sum(rejected_rows), 0) AS rejected
FROM tsa.main.cache_info
WHERE kind = 'checkpoint_report';
Link
daily_throughput 3 examples2 cols

Travelers screened at TSA checkpoints nationwide per day since 2019, posted 1-3 days late

Columns
datenot null DATE
Calendar day (one row per day, from 2019-01-01).
travelers BIGINT
Travelers screened at TSA checkpoints nationwide that day, as published by TSA.
ConstraintsPRIMARY KEY (date)
Examples (3)

Travelers screened per calendar year, 2019 through 2025

SELECT year(date) AS year, sum(travelers) AS travelers
FROM tsa.main.daily_throughput
WHERE date < DATE '2026-01-01'
GROUP BY ALL
ORDER BY year;

Daily travelers around Thanksgiving 2025 with a seven-day moving average

SELECT date, travelers,
  round(avg(travelers) OVER (ORDER BY date ROWS 6 PRECEDING)) AS seven_day_avg
FROM tsa.main.daily_throughput
WHERE date >= DATE '2025-11-01' AND date < DATE '2025-12-15'
ORDER BY date;

The three busiest days of 2024

SELECT date, travelers
FROM tsa.main.daily_throughput
WHERE date BETWEEN DATE '2024-01-01' AND DATE '2024-12-31'
ORDER BY travelers DESC
LIMIT 3;
Link
throughput_reports 3 examples8 cols

Weekly TSA throughput reports in the FOIA reading room, with the dates each covers

Columns
start_date DATE
First day the report covers.
end_date DATE
Last day the report covers (usually start_date + 6, Sunday to Saturday).
title VARCHAR
Title as listed in the FOIA reading room.
urlnot null VARCHAR
URL of the report PDF on tsa.gov (unique per row).
listed_size_mb DOUBLE
PDF size shown in the reading room, in MB.
cached BOOLEAN
True when the report is already parsed in the local cache.
parsed_rows BIGINT
Hourly rows parsed from the report (NULL until parsed).
rejected_rows BIGINT
Rows that failed validation (NULL until parsed).
ConstraintsPRIMARY KEY (url)
Examples (3)

The five most recent weekly checkpoint reports

SELECT start_date, end_date, title
FROM tsa.main.throughput_reports
WHERE end_date >= DATE '2026-09-01'
ORDER BY end_date DESC
LIMIT 5;

How many weekly reports exist for each year

SELECT year(start_date) AS year, count(*) AS weeks
FROM tsa.main.throughput_reports
WHERE start_date IS NOT NULL
GROUP BY ALL
ORDER BY year;

The first three weekly reports TSA posted in the reading room

SELECT start_date, end_date
FROM tsa.main.throughput_reports
WHERE start_date IS NOT NULL
ORDER BY start_date
LIMIT 3;
Link
Table functions
checkpoint_throughput (start_date DATE, end_date DATE, airport := VARCHAR, state := VARCHAR) 3 examples

Hourly passengers screened per airport checkpoint from TSA's weekly FOIA reports (weeks late)

Positional arguments
start_date DATE
First day to return, e.g. '2026-11-01'.
end_date DATE
Last day to return (inclusive).
Named arguments
airport := VARCHAR
Only this 3-letter IATA airport code, e.g. 'JFK'. · default null
state := VARCHAR
Only airports in this 2-letter USPS state code, e.g. 'CA'. · default null
Returns columns
date DATE
Day of the count.
hour INTEGER
Hour of day 0-23 as printed by TSA (local airport time); the row counts that hour.
airport VARCHAR
3-letter IATA airport code, e.g. 'ATL'.
airport_name VARCHAR
Airport name as TSA lists it.
city VARCHAR
City TSA lists for the airport.
state VARCHAR
2-letter USPS state or territory code, e.g. 'GA', 'PR', 'GU'.
checkpoint VARCHAR
Checkpoint name as TSA lists it (names can be truncated by TSA).
throughput BIGINT
People screened at that checkpoint in that hour. 2023+ reports count passengers plus crew; earlier reports count customers (unadjusted).
report_url VARCHAR
URL of the weekly PDF the row was parsed from.
Examples (3)

The ten airports that screened the most passengers in the week of 1 November 2026

SELECT airport, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07')
GROUP BY airport
ORDER BY passengers DESC
LIMIT 10;
Result · first 5 rows
airport passengers
LAX 629,102
JFK 580,709
ORD 579,983
ATL 552,603
DFW 493,717

JFK's passengers by hour of day over one week

SELECT hour, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07', airport := 'JFK')
GROUP BY hour
ORDER BY hour;
SELECT checkpoint, throughput
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-01', airport := 'ATL')
WHERE hour = 0
ORDER BY checkpoint;
Link
checkpoint_throughput_rejects (start_date DATE, end_date DATE) 2 examples

Rows of TSA's weekly throughput reports that the parser could not validate, with raw cells

Arguments
start_date DATE
First day whose reports to inspect.
end_date DATE
Last day whose reports to inspect (inclusive).
Returns columns
report_url VARCHAR
URL of the weekly PDF.
page INTEGER
1-based PDF page the row is on.
reason VARCHAR
Which check failed, e.g. "bad hour '24:00'".
date_text VARCHAR
Raw Date cell.
hour_text VARCHAR
Raw Hour of Day cell.
airport_text VARCHAR
Raw airport code cell.
airport_name VARCHAR
Raw airport name cell.
city VARCHAR
Raw City cell.
state_text VARCHAR
Raw State cell.
checkpoint VARCHAR
Raw Checkpoint cell.
throughput_text VARCHAR
Raw count cell.
Examples (2)

Confirm a weekly report parsed cleanly: 0 rejects means every row passed validation

SELECT count(*) AS rejects, count(DISTINCT reason) AS reasons,
  min(page) AS first_page
FROM tsa.main.checkpoint_throughput_rejects(DATE '2026-11-01', DATE '2026-11-07');
SELECT count(*) AS rejects
FROM tsa.main.checkpoint_throughput_rejects(DATE '2026-11-01', DATE '2026-11-07');
Link

Try these queries

JFK's passengers by hour of day over one week

SELECT hour, sum(throughput) AS passengers
FROM tsa.main.checkpoint_throughput(DATE '2026-11-01', DATE '2026-11-07', airport := 'JFK')
GROUP BY hour
ORDER BY hour

Uses checkpoint_throughput

Confirm a weekly report parsed cleanly: 0 rejects means every row passed validation

SELECT count(*) AS rejects, count(DISTINCT reason) AS reasons,
  min(page) AS first_page
FROM tsa.main.checkpoint_throughput_rejects(DATE '2026-11-01', DATE '2026-11-07')

Uses checkpoint_throughput_rejects

Travelers screened per calendar year, 2019 through 2025

SELECT year(date) AS year, sum(travelers) AS travelers
FROM tsa.main.daily_throughput
WHERE date < DATE '2026-01-01'
GROUP BY ALL
ORDER BY year

Uses daily_throughput

Daily travelers around Thanksgiving 2025 with a seven-day moving average

SELECT date, travelers,
  round(avg(travelers) OVER (ORDER BY date ROWS 6 PRECEDING)) AS seven_day_avg
FROM tsa.main.daily_throughput
WHERE date >= DATE '2025-11-01' AND date < DATE '2025-12-15'
ORDER BY date

Uses daily_throughput

The five most recent weekly checkpoint reports

SELECT start_date, end_date, title
FROM tsa.main.throughput_reports
WHERE end_date >= DATE '2026-09-01'
ORDER BY end_date DESC
LIMIT 5

Uses throughput_reports

How many files, parsed weeks and bytes are cached

SELECT count(*) AS files,
  count(*) FILTER (WHERE kind = 'checkpoint_report') AS weeks,
  coalesce(sum(bytes), 0) AS bytes
FROM tsa.main.cache_info

Uses cache_info

6 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Using the tsa worker, on which date in 2024 did TSA screen the most travelers nationwide, and how many?
  • What is the most recent week covered by TSA's hourly airport checkpoint throughput reports? Give its first and last day.
  • In the TSA hourly throughput report for November 1-7, 2026, how many passengers were screened at each checkpoint of Atlanta's airport (ATL) over the whole week?
  • Compare total travelers screened by TSA nationwide in 2019 and in 2025.

TSA checkpoint volumes is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.