Census API: Examples for /data/2021/pep/population
Geography HierarchyGeography LevelExample URLNumber
8 examples
us010https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=us:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=us:1&key=YOUR_KEY_GOES_HERE
region020https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=region:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=region:1&key=YOUR_KEY_GOES_HERE
division030https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=division:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=division:1&key=YOUR_KEY_GOES_HERE
state040https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2021/pep/population?get=NAME,POP_2021&for=state:01&key=YOUR_KEY_GOES_HERE