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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc0-1.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- real-estate
|
| 7 |
+
- housing
|
| 8 |
+
- building-permits
|
| 9 |
+
- urban-economics
|
| 10 |
+
- construction
|
| 11 |
+
- united-states
|
| 12 |
+
- time-series
|
| 13 |
+
pretty_name: PermitBase — U.S. Residential Building Permits 1980-2024
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100K<n<1M
|
| 16 |
+
task_categories:
|
| 17 |
+
- time-series-forecasting
|
| 18 |
+
- tabular-regression
|
| 19 |
+
source_datasets:
|
| 20 |
+
- original
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# PermitBase — U.S. Residential Building Permits 1980–2024
|
| 24 |
+
|
| 25 |
+
**The most comprehensive historical residential building permit dataset available at the place level.**
|
| 26 |
+
|
| 27 |
+
Place-level | Annual | 1980–2024 | SF/MF differentiated | 51 jurisdictions | 683,986 records
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## Dataset Description
|
| 32 |
+
|
| 33 |
+
This dataset contains annual residential building permit data for permit-issuing places
|
| 34 |
+
(cities, towns, and unincorporated county areas) across the United States, covering
|
| 35 |
+
1980 through 2024. It is derived from the U.S. Census Bureau's Building Permits Survey (BPS)
|
| 36 |
+
and has been cleaned, normalized, and enriched with Census region labels, housing cycle
|
| 37 |
+
annotations, and multifamily share calculations.
|
| 38 |
+
|
| 39 |
+
**Source:** U.S. Census Bureau, Building Permits Survey (BPS)
|
| 40 |
+
**License:** CC0 1.0 (source data is U.S. federal government, public domain)
|
| 41 |
+
**API access:** [permitbase.org](https://permitbase.org) — query the live dataset via REST API or MCP
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## What Makes This Dataset Unique
|
| 46 |
+
|
| 47 |
+
Most existing permit datasets start around 2000. This dataset begins in **1980** — capturing:
|
| 48 |
+
- The S&L crisis (1989–1991)
|
| 49 |
+
- The 1990s long expansion
|
| 50 |
+
- The housing bubble and crash (2001–2009)
|
| 51 |
+
- The post-crisis recovery
|
| 52 |
+
- The COVID-era surge
|
| 53 |
+
- The current rate correction
|
| 54 |
+
|
| 55 |
+
It also provides **clean SF/MF differentiation** at the place level:
|
| 56 |
+
- 1-unit (single family)
|
| 57 |
+
- 2-unit (duplex)
|
| 58 |
+
- 3–4 unit
|
| 59 |
+
- 5+ unit (multifamily)
|
| 60 |
+
- Pre-computed MF total and MF% per record
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## Schema
|
| 65 |
+
|
| 66 |
+
| Column | Type | Description |
|
| 67 |
+
|--------|------|-------------|
|
| 68 |
+
| `Year` | int | Survey year (1980–2024) |
|
| 69 |
+
| `Region` | string | Census region (Northeast, Midwest, South, West) |
|
| 70 |
+
| `State_Code` | int | 2-digit FIPS state code |
|
| 71 |
+
| `State` | string | State name |
|
| 72 |
+
| `County_Code` | int | 3-digit FIPS county code |
|
| 73 |
+
| `Place` | string | City, town, or unincorporated area name |
|
| 74 |
+
| `Months_Reported` | int | Months of data reported (0–12; <12 = partial) |
|
| 75 |
+
| `SF_Units` | int | 1-unit (single family) units permitted |
|
| 76 |
+
| `MF_2Unit` | int | 2-unit (duplex) units permitted |
|
| 77 |
+
| `MF_34Unit` | int | 3–4 unit structures, total units |
|
| 78 |
+
| `MF_5Plus` | int | 5+ unit structures, total units |
|
| 79 |
+
| `MF_Total` | int | Sum of MF_2Unit + MF_34Unit + MF_5Plus |
|
| 80 |
+
| `Total_Units` | int | SF_Units + MF_Total |
|
| 81 |
+
| `MF_Pct` | float | MF_Total / Total_Units (0.0–1.0) |
|
| 82 |
+
| `Cycle` | string | Housing market cycle label (see below) |
|
| 83 |
+
|
| 84 |
+
### Housing Cycle Labels
|
| 85 |
+
|
| 86 |
+
| Cycle | Years |
|
| 87 |
+
|-------|-------|
|
| 88 |
+
| Early 80s Contraction | 1980–1981 |
|
| 89 |
+
| Mid-80s Expansion | 1982–1988 |
|
| 90 |
+
| S&L Crisis Downturn | 1989–1991 |
|
| 91 |
+
| 90s Long Expansion | 1992–2000 |
|
| 92 |
+
| Housing Bubble | 2001–2005 |
|
| 93 |
+
| Financial Crisis Bust | 2006–2009 |
|
| 94 |
+
| Post-Crisis Trough | 2010–2012 |
|
| 95 |
+
| Long Recovery | 2013–2019 |
|
| 96 |
+
| COVID Shock | 2020 |
|
| 97 |
+
| Post-COVID Boom | 2021–2022 |
|
| 98 |
+
| Rate Correction | 2023–present |
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
## Coverage Notes
|
| 103 |
+
|
| 104 |
+
| Region | Full Coverage | Partial / Missing |
|
| 105 |
+
|--------|--------------|-------------------|
|
| 106 |
+
| South (17 states) | 1980–2021, 2023 | 2022 (Feb only), 2024 (Mar only) |
|
| 107 |
+
| Midwest (12 states) | 1980–2020 | 2021–2024 not yet added |
|
| 108 |
+
| Northeast (9 states) | 1980–2018 | 2019 (Jan only), 2020–2024 not added |
|
| 109 |
+
| West (15 states) | 1980–2018 | 2019 (Jan only), 2020–2024 not added |
|
| 110 |
+
|
| 111 |
+
For live, fully updated national data, use the [PermitBase API](https://permitbase.org).
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Usage Examples
|
| 116 |
+
|
| 117 |
+
```python
|
| 118 |
+
import pandas as pd
|
| 119 |
+
|
| 120 |
+
df = pd.read_csv("national_permits_master.csv")
|
| 121 |
+
|
| 122 |
+
# National annual totals
|
| 123 |
+
nat = df.groupby('Year')[['SF_Units','MF_Total','Total_Units']].sum()
|
| 124 |
+
print(nat.loc[2005]) # Peak: 2.16M units
|
| 125 |
+
|
| 126 |
+
# Top 10 most active cities all-time
|
| 127 |
+
top = df.groupby(['State','Place'])['Total_Units'].sum().nlargest(10)
|
| 128 |
+
print(top)
|
| 129 |
+
|
| 130 |
+
# MF-heavy markets (min 5,000 units, ranked by MF share)
|
| 131 |
+
by_place = df.groupby(['State','Place']).agg(
|
| 132 |
+
MF=('MF_Total','sum'), Tot=('Total_Units','sum')).reset_index()
|
| 133 |
+
by_place = by_place[by_place['Tot'] >= 5000]
|
| 134 |
+
by_place['MF_Pct'] = by_place['MF'] / by_place['Tot']
|
| 135 |
+
print(by_place.nlargest(10,'MF_Pct'))
|
| 136 |
+
|
| 137 |
+
# Texas post-GFC recovery
|
| 138 |
+
tx = df[(df['State']=='Texas') & (df['Year'].between(2009,2015))]
|
| 139 |
+
tx_yr = tx.groupby('Year')['Total_Units'].sum()
|
| 140 |
+
print(tx_yr.pct_change())
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
---
|
| 144 |
+
|
| 145 |
+
## API Access
|
| 146 |
+
|
| 147 |
+
The live, continuously updated dataset is available via the PermitBase REST API and MCP server:
|
| 148 |
+
|
| 149 |
+
```bash
|
| 150 |
+
# Annual trends for any state
|
| 151 |
+
curl https://api.permitbase.org/v1/permits/annual \
|
| 152 |
+
-H "X-API-Key: your_key" \
|
| 153 |
+
-d "state=California&year_from=2000"
|
| 154 |
+
|
| 155 |
+
# Top multifamily markets
|
| 156 |
+
curl https://api.permitbase.org/v1/permits/rankings \
|
| 157 |
+
-H "X-API-Key: your_key" \
|
| 158 |
+
-d "ranked_by=mf&limit=25"
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
Free tier: 50 calls/month, no credit card. Get your key at [permitbase.org](https://permitbase.org).
|
| 162 |
+
|
| 163 |
+
---
|
| 164 |
+
|
| 165 |
+
## Citation
|
| 166 |
+
|
| 167 |
+
If you use this dataset in research, please cite:
|
| 168 |
+
|
| 169 |
+
```bibtex
|
| 170 |
+
@dataset{permitbase2024,
|
| 171 |
+
title = {PermitBase: U.S. Residential Building Permits 1980--2024},
|
| 172 |
+
author = {PermitBase},
|
| 173 |
+
year = {2024},
|
| 174 |
+
url = {https://huggingface.co/datasets/thanna94/us-building-permits},
|
| 175 |
+
note = {Derived from U.S. Census Bureau Building Permits Survey (BPS)}
|
| 176 |
+
}
|
| 177 |
+
```
|
| 178 |
+
|
| 179 |
+
---
|
| 180 |
+
|
| 181 |
+
## Related Research
|
| 182 |
+
|
| 183 |
+
- LaPoint & Cortes (2024): "Housing Is the Financial Cycle: Evidence from 100 Years of Local Building Permits"
|
| 184 |
+
- U.S. Census Bureau Building Permits Survey: https://www.census.gov/construction/bps/
|