Changes

Jump to navigation Jump to search
=Using api.census.gov=
The new approach is to use api.census.gov to request information. Each year has an API urlURL, 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.
For , example, for 2019, the URLs are:
*The 2019 ACS5 available geographies: https://api.census.gov/data/2019/acs/acs5/geography.html
*The 2019 ACS5 available variables: https://api.census.gov/data/2019/acs/acs5/variables.html
*Some example URLs for the API: https://api.census.gov/data/2019/acs/acs5/examples.html
*An example request: https://api.census.gov/data/2019/acs/acs5?get=NAME,B06011_001E&for=zip%20code%20tabulation%20area:
Example API calls for median income, educational attainment, and race from the 5yr ACS, using the 2019 dataset:
Other links:
*The documentation on the ACS5: https://www.census.gov/data/developers/data-sets/acs-5year.html
*A slide deck on how to use the API: https://www.census.gov/content/dam/Census/programs-surveys/acs/guidance/training-presentations/06212017_ACS_Census_API.pdf(Note that this guide uses an incorrect URL base that only works for specific years). Other datasets available using api.census.gov are listed here: https://www.census.gov/data/developers/data-sets.html.
=Old Approach using AFF=

Navigation menu