cbp-database / README.md
Nason's picture
Upload README.md with huggingface_hub
31534b6 verified
|
Raw History Blame Contribute Delete
2.89 kB
---
license: cc0-1.0
task_categories:
- tabular-classification
- tabular-regression
tags:
- immigration
- border
- cbp
- foia
- deportation-data-project
- duckdb
- datapond
pretty_name: CBP Border Enforcement Database (Deportation Data Project FOIA releases)
size_categories:
- 10M<n<100M
---
# CBP Border Enforcement Database
Individual-level Customs and Border Protection records obtained by the Deportation
Data Project through FOIA litigation: Border Patrol apprehensions (FY2008-Dec 2025),
apprehensions with place of birth (FY2000-FY2022), encounters, Office of Field
Operations inadmissibility events at ports of entry (CY2014-Jan 2026), Title 42
expulsions and CBP One appointments. 121 release files harmonised into one schema
per record type; overlapping release windows resolved into a non-overlapping base
tiling (see `_files`).
**51,345,742 rows across 8 tables.**
| Table | Description | Row Count | Column Count |
|---|---|---|---|
| `apprehensions_origin` | Border Patrol apprehensions with place of birth (country/state/city), one row per apprehension, FY2000 - FY2022 | 16,719,589 | 16 |
| `inadmissibles` | Office of Field Operations events where a person arriving at a port of entry was deemed inadmissible, one row per event, CY2014 - Jan 2026 | 11,591,432 | 35 |
| `apprehensions` | Border Patrol apprehensions between ports of entry, one row per person apprehended (FOIA releases covering Oct 2007 - Dec 2025; monthly gaps where CBP has not yet released data) | 7,907,911 | 74 |
| `encounters` | Border Patrol encounters (apprehensions with prior-encounter history and seizure fields), FY2010 - FY2018 and Oct 2022 - Sep 2024 | 7,164,459 | 38 |
| `inadmissibles_superseded` | Rows from inadmissibles release files whose windows overlap the base tiling (see _files.superseded_reason); same schema as inadmissibles | 5,634,463 | 41 |
| `title42_expulsions` | Title 42 expulsions by Border Patrol, one row per expulsion, FY2020 - FY2022 | 1,976,471 | 24 |
| `cbp_one` | CBP One app appointments at ports of entry, individual-level extract, Jan 12 - Oct 31 2023 | 323,686 | 19 |
| `cbp_one_monthly` | CBP One monthly appointment counts by port of entry and citizenship (five overlapping FOIA extracts; see source_file) | 27,731 | 19 |
## Query it remotely
```sql
INSTALL httpfs; LOAD httpfs;
ATTACH 'https://huggingface.co/datasets/Nason/cbp-database/resolve/main/cbp.duckdb' AS cbp (READ_ONLY);
SELECT EXTRACT(YEAR FROM event_datetime) AS year, citizenship, COUNT(*) AS apprehensions
FROM cbp.apprehensions WHERE event_datetime >= '2023-01-01'
GROUP BY 1, 2 ORDER BY 3 DESC LIMIT 20;
```
Or with the datapond packages: `pip install datapond` / `pak::pak("datapond-db/datapond-r")`.
Build pipeline, header crosswalk, tiling decisions and caveats: https://github.com/ian-nason/cbp-database
Source: https://deportationdata.org/data/cbp.html (CC0).