US Census Data Scraper
Pricing
from $1.00 / 1,000 results
US Census Data Scraper
Extract US Census demographic data. Get population stats, income levels, housing data, and demographic breakdowns by location. Essential for market research and analysis.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer

Fortuitous Pirate
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
US Census Bureau Data Scraper
Scrapes demographic and economic data from the US Census Bureau API - population, income, housing, and more.
API Source
- Base URL: https://api.census.gov/data
- API Key: Optional but recommended (get free at api.census.gov/data/key_signup.html)
Without an API key, you're limited to 500 requests per day. With a key, the limit increases significantly.
Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
dataset | enum | "acs/acs5" | Census dataset to query |
years | array | ["2022"] | Data years to query (supports multiple for time-series) |
variables | array | ["NAME", "B01001_001E"] | Census variable codes to retrieve |
geography | enum | "state" | Geographic level for data |
stateFips | string | - | State FIPS code for sub-state geographies (e.g., "06" for California) |
apiKey | string | - | Census API key (optional but recommended) |
Available Years by Dataset
| Dataset | Years Available |
|---|---|
| ACS 5-Year | 2009-2023 |
| ACS 1-Year | 2005-2023 (areas 65k+ pop only) |
| Decennial | 2000, 2010, 2020 |
Dataset Options
| Value | Description |
|---|---|
acs/acs5 | ACS 5-Year Estimates (most detailed, all geographies) |
acs/acs1 | ACS 1-Year Estimates (most current, limited geographies) |
dec/pl | Decennial Census (redistricting data) |
pep/population | Population Estimates Program |
cbp | County Business Patterns |
abs/cb | Annual Business Survey |
Geography Options
| Value | Description |
|---|---|
us | United States (national level) |
state | All 50 states + DC + territories |
county | Counties (use stateFips to filter by state) |
tract | Census tracts (requires stateFips) |
place | Cities and places (use stateFips to filter) |
zip code tabulation area | ZIP codes (ZCTAs) |
State FIPS Codes (Common)
| State | FIPS |
|---|---|
| California | 06 |
| Texas | 48 |
| Florida | 12 |
| New York | 36 |
| Pennsylvania | 42 |
| Illinois | 17 |
| Ohio | 39 |
| Georgia | 13 |
| North Carolina | 37 |
| Michigan | 26 |
Full list: Census FIPS Codes
Common Variables
Population & Demographics
| Code | Description |
|---|---|
B01001_001E | Total Population |
B01002_001E | Median Age |
B03002_003E | White Alone Population |
B03002_004E | Black Alone Population |
B03002_006E | Asian Alone Population |
B03002_012E | Hispanic/Latino Population |
Economic
| Code | Description |
|---|---|
B19013_001E | Median Household Income |
B23025_005E | Unemployed Population |
B15003_022E | Bachelor Degree Holders |
Housing
| Code | Description |
|---|---|
B25077_001E | Median Home Value |
B25064_001E | Median Gross Rent |
Find more variables at the Census API Variable Explorer.
Output Fields
Each record includes:
| Field | Description |
|---|---|
dataset | Dataset identifier (e.g., "acs/acs5") |
year | Data year |
geography | Geography level |
NAME | Geographic area name |
[variable_code] | Value for each requested variable |
[variable_code]_name | Human-readable name (for common variables) |
stateFips | State FIPS code (when applicable) |
countyFips | Full county FIPS (state + county) |
tractFips | Full tract FIPS (state + county + tract) |
scrapedAt | ISO timestamp of scrape |
Example Input
Single year - California counties:
{"dataset": "acs/acs5","years": ["2022"],"variables": ["NAME", "B01001_001E", "B19013_001E", "B25077_001E"],"geography": "county","stateFips": "06"}
Multi-year time series - All states:
{"dataset": "acs/acs5","years": ["2015", "2018", "2020", "2022"],"variables": ["NAME", "B01001_001E", "B19013_001E"],"geography": "state"}
Example Output
{"dataset": "acs/acs5","year": 2022,"geography": "county","NAME": "Los Angeles County, California","B01001_001E": 9829544,"B01001_001E_name": "Total Population","B19013_001E": 77324,"B19013_001E_name": "Median Household Income","B25077_001E": 685600,"B25077_001E_name": "Median Home Value","state": "06","county": "037","stateFips": "06","countyFips": "06037","scrapedAt": "2024-01-15T10:30:00.000Z"}
Use Cases
- Market Research: Get population and income data for target markets
- Real Estate Analysis: Compare home values and rents across regions
- Demographic Studies: Analyze population composition by geography
- Business Planning: Identify high-opportunity areas based on economic indicators
- Academic Research: Access standardized census data for analysis
Notes
- ACS 5-year estimates cover all geographies but are less current
- ACS 1-year estimates are more current but only cover areas with 65,000+ population
- For tract-level data, you must specify a
stateFips(defaults to California if omitted) - ZIP code data uses ZCTAs which may not match exact ZIP code boundaries