The U.S. Census Data API Template lets anyone pull reliable, up-to-date demographic, economic, social, and housing data directly from the Census Bureau—no coding required. Users simply enter their free API key, choose a year, state, county, and measures, and the sheet automatically retrieves clean, formatted results from the American Community Survey (ACS) 5-Year Data Profile.
Get your free copy of the template below and start exploring U.S. Census data today.
Request your API key Get a free key at api.census.gov/data/key_signup.html and paste it into the API Key sheet. Your key stays private in your copy of the template—Simplify Sheets never accesses it.
Select a year On the Census Data sheet, pick the end-year (for example 2023). The sheet automatically treats this as a five-year period (2019–2023).
Select a region Choose a State and County for each row you want to analyze.
Select census measures Each column header offers a dependent dropdown: choose a Topic (Demographic, Social, Economic, Housing) and then a Measure.
Review your results Data automatically populates the table and formats correctly; population as a value, education as a percentage, median household income as dollars, and commute time as minutes.
Value → comma-formatted number
Percent → whole %
Dollar → $ with commas, no decimals
Time → minutes (e.g., 33 min)
View data source Each row includes a clickable link: View source: ACS 5-Year {Year} – {County, State} The link opens the raw API response so users can verify metrics directly.
What is the American Community Survey?
The American Community Survey (ACS) 5-Year Estimates are one of the most reliable sources of community-level data in the United States. Collected continuously by the U.S. Census Bureau, the ACS 5-Year combines five years of responses to provide detailed, statistically stable insights on population, housing, education, income, and employment for every county, city, and neighborhood—large or small.
This matters because it lets researchers, businesses, and policymakers make informed decisions using consistent, comparable data across time and geography.
The Simplify Sheets – U.S. Census Data API Template makes this information instantly accessible in Google Sheets. Instead of manually searching datasets or downloading tables, users can pull live ACS data directly from the Census API, visualize it in seconds, and build custom dashboards that update automatically as new data is released each year.
We made this sheet to help make this data more accessible and use this opportunity to help users understand how powerful Google Sheets can be!
At a high level, this formula automates an API request to the U.S. Census Bureau and formats the returned value inside Google Sheets. It takes a few key inputs selected by the user (year, state, county, and chosen metric) and turns them into a live query that fetches the selected ACS 5-Year data. The logic can be summarized as:
Inputs: the user sets the ACS end-year, picks a state and county, and selects a measure (such as population or income).
Goal: use those inputs to build a valid API URL, retrieve the corresponding number from the Census API, and format it based on its data type.
Functions in action
LET – defines local variables so the long expression stays readable and efficient.
XLOOKUP – matches the selected measure label to its Census API variable ID and identifies its data type for formatting.
FILTER – returns the correct county FIPS code based on the selected state and county.
IMPORTDATA – calls the Census API endpoint and imports the JSON-style CSV response directly into the sheet.
INDEX + VALUE – extract the numeric value from the API response and convert it from text to a number.
TEXT – formats the result according to the data type: comma-separated Value, whole-number Percent, Dollar with $ symbol, or Time in minutes.
Together these functions build a fully dynamic API call where each cell acts independently. No scripts, no add-ons, no manual refresh. It’s a lightweight, formula-only way to connect live government data to an interactive Google Sheet.
Included Measures
The hidden Variables sheet includes a curated set of commonly used ACS metrics:
Topic
Measure
API Variable
Data Type
Demographic
Total population
DP05_0001E
Value
Demographic
Median age (years)
DP05_0018E
Value
Demographic
Under 18 (%)
DP05_0019PE
Percent
Demographic
65 and over (%)
DP05_0024PE
Percent
Social
Total households
DP02_0001E
Value
Social
High school grad or higher (%)
DP02_0067PE
Percent
Social
Bachelor’s degree or higher (%)
DP02_0068PE
Percent
Economic
Unemployment rate (%)
DP03_0009PE
Percent
Economic
Median household income ($)
DP03_0062E
Dollar
Economic
Per capita income ($)
DP03_0088E
Dollar
Economic
Persons in poverty (%)
DP03_0119PE
Percent
Economic
Mean travel time to work (min)
DP03_0025E
Time
Housing
Housing units
DP04_0001E
Value
Housing
Owner-occupied housing rate (%)
DP04_0046PE
Percent
Housing
Renter-occupied housing rate (%)
DP04_0047PE
Percent
Housing
Median home value ($)
DP04_0089E
Dollar
Housing
Median gross rent ($)
DP04_0134E
Dollar
Users can easily expand this list by adding new rows with:
Topic | Measure | API Variable | Data Type
The API Key sheet includes a direct link to the official ACS API variable list — for example, Explore Available ACS 2023 5-Year API Variables. From there, users can discover all available metrics in the Census API. You can easily extend the template by adding new Topics, defining a Measure description, including the official API Variable (NAME), and specifying its Data Type (Value, Percent, Dollar, or Time). This flexibility makes the sheet fully dynamic and customizable, allowing it to adapt to your specific data and analysis needs.
Why the Census API Matters
The U.S. Census Bureau API gives direct, consistent access to the same data used in federal research and policy. With this sheet, you can:
Track demographic or economic changes by county
Compare markets for business expansion
Build dashboards that update annually
Explore the API documentation to design your own queries
Each API call uses a transparent URL so users can click and verify the exact data source.
Who This Template Is For
Analysts who need consistent, source-verified Census data
Small-business owners exploring local markets
Students and educators learning data analysis
Anyone building dashboards with reliable government data
Anyone looking to better understand Google Sheets or API functionality
Have questions or suggestions?
Leave a comment below if you’d like help using the sheet or want to see additional features or data added in future updates.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
var complianz = {"prefix":"cmplz_","user_banner_id":"1","set_cookies":[],"block_ajax_content":"","banner_version":"31","version":"7.4.4","store_consent":"","do_not_track_enabled":"","consenttype":"optout","region":"us","geoip":"","dismiss_timeout":"","disable_cookiebanner":"","soft_cookiewall":"","dismiss_on_scroll":"1","cookie_expiry":"365","url":"https:\/\/simplifysheets.com\/wp-json\/complianz\/v1\/","locale":"lang=en&locale=en_US","set_cookies_on_root":"","cookie_domain":"","current_policy_id":"28","cookie_path":"\/","categories":{"statistics":"statistics","marketing":"marketing"},"tcf_active":"","placeholdertext":"Click to accept {category} cookies and enable this content","css_file":"https:\/\/simplifysheets.com\/wp-content\/uploads\/complianz\/css\/banner-{banner_id}-{type}.css?v=31","page_links":{"us":{"cookie-statement":{"title":"","url":"https:\/\/simplifysheets.com\/blog\/apis\/us-census-data-api-template-google-sheets"},"privacy-statement":{"title":"Privacy Policy","url":"https:\/\/simplifysheets.com\/privacy-policy"}}},"tm_categories":"1","forceEnableStats":"","preview":"","clean_cookies":"","aria_label":"Click to accept {category} cookies and enable this content"};