Changes

Jump to navigation Jump to search
The new approach is to use api.census.gov to request information. Each year has an API URL, which specifies the dataset and that takes '''get''' and '''for''' name-value pairs that specify variables and geographies, respectively. Generally, one can request geography, variable, and examples HTML pages on the same URL (rather than specifying the params). The ACS5 data goes back to 2009 and the ACS1 goes back to 2005 using the base URL: '''https://api.census.gov/data/yyyy/acs/acsx/''', where yyyy is year and x is 1 or 5.
 
==get_ACS.py==
 
A script called '''get_ACS.py''' automates the retrieval and compiling of results from api.census.gov. It has the year, geographic unit, and dataset in a (user-editable) parameters dictionary and is called with variables as command line parameters. Note that groups of variables are called in the same way as individual variables. An example command is:
python3 get_ACS.py B06011_001E B06009 B02001
 
==Examples and Documentation==
For, example, for 2019, the URLs are:

Navigation menu