American Community Survey Data via API

The Census Bureau's Application Programming Interface (API) is a tool that you can use to access American Community Survey (ACS) data more efficiently.  It reduces the need for data storage and provides users with a set of standard commands to easily access statistics that can be incorporated into their programs and applications.  You can also use it to create simple queries to access ACS data through an internet browser.  Learn more about how to access ACS datasets via the API, as well as resources to learn more about using the API.

Building a Request - Four Easy Steps

Following these 4 steps will produce an API query for the Total Population for All Counties in Maryland using 2015-2019 ACS 5-Year estimates.

 

Step 1: Identify the dataset you want to use.

Review API datasets and the API homepage to see what is available.

Step 2: Identify items needed, such as variable names and geography codes (usually FIPS). 

Step 3: Request the variables and geographies.

?get=variable,names , separated,by,commas

&for=geography level:code 

Step 4: Put it all together.

Final Query: https://api.census.gov/data/2019/acs/acs5/profile?get=DP05_0001E&for=county:*&in=state:24

Census Data API Flyer Download Building an API Query for ACS [PDF - <1.0 MB]

Find ACS Data Available in the API

Need Help Getting Started?

Take the Intro to the API Course

Video Tutorials on Using the API with the ACS

Census API Basics: Simple Steps to Better Data Access

In this informative webinar, we'll show you how simple URL modifications can unlock vast datasets without complex programming.

Using the API to Access Census Data

In this tutorial, we’ll show you how to get data for only the variables you need from the 2023 ACS 1-Year Data Profiles, using all Congressional Districts in California as an example. Specifically, we’ll find data for the percent of households with no vehicles, people in poverty, and people with a disability. Each of these come from different tables, but the API allows us to see the results in a single view.

Webinar: Using the Census API with the American Community Survey

The U.S. Census Bureau’s Application Programming Interface (API) provides a powerful tool for users to build custom queries in order to quickly and consistently access the data they need. In this webinar, we provide tips and tricks on how to leverage the Census Bureau’s API to access American Community Survey (ACS) data.

More ACS Resources for API

On this page:

Page Last Revised - October 28, 2026