US Census Bureau Demographics & Population Data API avatar

US Census Bureau Demographics & Population Data API

Pricing

from $0.01 / 1,000 results

Go to Apify Store
US Census Bureau Demographics & Population Data API

US Census Bureau Demographics & Population Data API

Access comprehensive US Census Bureau data including American Community Survey (ACS) demographics, population estimates, economic indicators, business statistics, and geographic data. Get population, income, education, housing, employment, and health data for any US location.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

12 days ago

Last modified

Share

US Census Bureau API - Demographics & Population Data

Access US Census Bureau data including ACS demographics, population estimates, economic indicators, business statistics, and geographic data. Get population by age, race, income, education, housing, and more for any US location down to ZIP code level.

BYOK (Bring Your Own Key) -- you provide your own API credentials.


Before You Start

This actor requires your own API credentials to fetch real data.

Where to get your key: Free API key from census.gov/developers (optional for limited use)

You can test with Demo Mode first (free, no key needed) to see the output format before committing.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true
}

Run with real data

{
"demoMode": false,
"task": "get_population",
"apiKey": "YOUR_API_KEY_HERE",
"dataset": "acs5",
"year": 2023
}

Input Parameters

ParameterTypeDefaultRequiredDescription
taskstring"get_population"Yes*Operation to perform
apiKeystring-Yes*Free API key from census.gov/developers (optional for limited use)
datasetstring"acs5"NoCensus dataset to query
yearinteger2023NoData year (e.g., 2023)
statestring-No2-digit state FIPS code (e.g., 06 for California, 36 for New York)
countystring-No3-digit county FIPS code within state
placestring-NoPlace (city/town) FIPS code
zipCodestring-No5-digit ZIP code (ZCTA)
tractstring-No6-digit census tract code
stateNamestring-NoState name (alternative to FIPS code)
variablesstring-NoComma-separated Census variable codes (e.g., B01001_001E,B01002_001E)
tableGroupstring-NoCensus table group (e.g., B01001 for Sex by Age)
compareStatesstring-NoComma-separated state FIPS codes to compare
naicsCodestring-NoIndustry code for business statistics
webhookUrlstring-NoURL to send results to (Zapier, Make, n8n, etc.)
demoModebooleantrueNoRun with sample data (no API key required)

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
API RequestEach Census API data request processed$0.01

Demo mode is free -- no charges for sample data.


Troubleshooting

"API key is required"

You have Demo Mode turned off but didn't provide an API key. Either:

  • Turn Demo Mode on to test with sample data
  • Add your API key in the input

"API error 403" or "Unauthorized"

Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • API key without proper permissions
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal