Community data Governmental Free & Open

US Census Bureau

The US Census Bureau is the nation's leading provider of quality demographic data. Beyond the decennial census, it provides vital statistics through various surveys including the American Community Survey (ACS), economic indicators, and population estimates

API Quickstart — Python — fetch population by state
Official docs →
import requests

API_KEY = "your_census_key"
url = "https://api.census.gov/data/2022/acs/acs5"
params = {
    "get": "NAME,B01001_001E",   # Name + total population
    "for": "state:*",
    "key": API_KEY
}
r = requests.get(url, params=params)
rows = r.json()
for row in sorted(rows[1:], key=lambda x: -int(x[1]))[:5]:
    print(row[0], f"{int(row[1]):,}")
💳 Access & Pricing
Visit source →

Cost

Free

Access type

open

Signup required

No

Update alerts

Not offered

Coverage

north america

Update frequency

varies

Source Documentation

What You're Getting

US Census Bureau provides the most granular US demographic and economic data: Decennial Census (10-year), American Community Survey (ACS, 1-year and 5-year estimates), Current Population Survey (CPS), Economic Census (5-year), County Business Patterns (annual), International Trade Statistics, Building Permits, and more. Data is organized by geographic unit (nation, state, county, tract, block group) and demographic/economic variables.

Ingestion Strategy

Use the Census API — free, no authentication required for basic use (key improves rate limits). ACS 5-year data is the workhorse for sub-state geography. Queries specify variables (e.g. B01001_001E for total population), geography (e.g. state, county), and dataset (e.g. acs/acs5).

import requests, pandas as pd

# ACS 5-year: median household income by county
url = "https://api.census.gov/data/2022/acs/acs5"
params = {
    "get": "NAME,B19013_001E",
    "for": "county:*",
    "in": "state:*",
    "key": "your_key"  # optional but recommended
}
r = requests.get(url, params=params)
df = pd.DataFrame(r.json()[1:], columns=r.json()[0])

Rate Limits & API Details

  • No key: 500 requests/day; with free key: higher limits
  • Key registration: api.census.gov/data/key_signup.html
  • API base: api.census.gov/data/{year}/{dataset}
  • TIGER/Line shapefiles for geographic boundaries: census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html

Schema Stability

Variable codes (e.g. B19013_001E) change between ACS releases — the table structure is re-published each year with some changes. Always pull the variable dictionary for the specific year you're loading. Geographic FIPS codes are stable; sub-county geographies can change with Decennial Census redistricting. ACS 5-year estimates are not comparable across overlapping periods — use non-overlapping periods for trend analysis.

Data Quality Gotchas

  • Estimates with margins of error: ACS data includes MOE columns (e.g. B19013_001M) — always store and surface these, especially for small geographies
  • Geography changes: county and census tract boundaries change with each Decennial Census; use GEOIDs carefully when building time series
  • ACS 1-year vs 5-year: 1-year is current but only for areas with 65,000+ population; 5-year covers all geographies but is a rolling average
  • Suppression: small cells are suppressed for privacy (shown as -666666666) — handle these explicitly

Tool Compatibility

  • Python: census PyPI package; cenpy; direct API calls
  • R: tidycensus (excellent, highly recommended)
  • Airbyte: no official connector
  • TIGER shapefiles: use geopandas for Python spatial analysis

Benchmarking Approach

US total population (ACS 5-year, B01001_001E): should match Census Bureau published estimate within 1%. County count: 3,143. After each December ACS release, verify new year data is available within 5 business days. Cross-check median household income for a known county against Census press release. Alert if MOE-to-estimate ratio exceeds 30% for more than 20% of county rows.

Notable Datasets

1 total
  • Decennial Census\nP1TOTAL POPULATION\n\nAmerican Community Survey\nS0101Age and Sex\n\nAmerican Community Survey\nDP05ACS Demographic and Housing Estimates\n\nAmerican Community Survey\nS1901Income in the Past 12 Months (in 2023 Inflation-Adjusted Dollars)\n\nAmerican Community Survey\nDP03Selected Economic Characteristics\n\nDecennial Census\nP2URBAN AND RURAL\n\nAmerican Community Survey\nDP02Selected Social Characteristics in the United States\n\nAmerican Community Survey\nDP04Selected Housing Characteristics\n\nAmerican Community Survey\nS1701Poverty Status in the Past 12 Months\n\nAmerican Community Survey\nS1501Educational Attainment\n\nEconomic Surveys\nIT00EXPORTENDUSEMonthly Exports by End-use code\n\nEconomic Surveys\nIT00EXPORTHITECHMonthly Exports by Advanced Technology Products code\n\nEconomic Surveys\nIT00EXPORTSITCMonthly Exports by SITC code\n\nEconomic Surveys\nIT00EXPORTSPORTHSMonthly Exports by Port and Harmonized System code\n\nEconomic Surveys\nIT00EXPORTUSDAMonthly Exports by Department of Agriculture code\n\nEconomic Surveys\nIT00IMPORTSENDUSEMonthly Imports by End-use code\n\nEconomic Surveys\nIT00IMPORTSHITECHMonthly Imports by Advanced Technology code\n\nEconomic Surveys\nIT00IMPORTSPORTHSMonthly Imports by Port and Harmonized System code\n\nEconomic Surveys\nIT00IMPORTSSITCMonthly Imports by SITC\n\nEconomic Surveys\nIT00IMPORTSUSDAMonthly Imports by Department of Agriculture code\n\nHousehold Pulse Survey\nHPS01All HPS Indicators for Phase 4.0 and Later\n\nSurvey of Market Absorption\nSOMACA0200Condominiums and Cooperative Units - Annual Estimates - Asking Sale Price\n\nSurvey of Market Absorption\nSOMACA0203Condominiums and Cooperative Units - Annual Estimates - Asking Sale Price by Asking Sale Price by Asking Sale Price\n\nSurvey of Market Absorption\nSOMACA0204Condominiums and Cooperative Units - Annual Estimates - Asking Sale Price by Number of Be\n\nSurvey of Market Absorption\nSOMACA0300Condominiums and Cooperative Units - Annual Estimates - Bedrooms\n\nSurvey of Market Absorption\nSOMACA0303Condominiums and Cooperative Units - Annual Estimates - Bedrooms by Asking Sale Price
Visit Data Source

Access

Cost
Free
Access type
Open
Update alerts
Not offered

Data Profile

Coverage
North America
Frequency
Varies
History from
1790
Source updated
Jan 2025

Data Formats

api csv other xlsx pdf

How to Access

  • 🌐 Browser/UI
  • 📦 Bulk Export

Index entry

Added: Apr 30, 2026

Last indexed: May 2, 2026

~ Community-sourced entry

Learn

Recent guides

View all →