Census API: Examples for /data/2020/dec/dpas
All data queries to the Census Data API now require an API key.
Please cut and paste the Example Calls below into your web browser and replace YOUR_KEY_GOES_HERE with your personal API Key.
If you do not have an API Key, request one
here
Geography Hierarchy
Geography Level
Example URL
Number
11 examples
state
040
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=state:60&key=YOUR_KEY_GOES_HERE
state
›
county
050
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county:*&in=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county:050&in=state:60&key=YOUR_KEY_GOES_HERE
state
›
county
›
county subdivision
060
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county%20subdivision:*&in=state:60&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county%20subdivision:*&in=state:60&in=county:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=county%20subdivision:80900&in=state:60%20county:050&key=YOUR_KEY_GOES_HERE
state
›
place
160
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=place:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=place:*&in=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/dec/dpas?get=NAME&for=place:75300&in=state:60&key=YOUR_KEY_GOES_HERE