Census API: Examples for /data/2020/pdb/statecounty
Geography HierarchyGeography LevelExample URLNumber
6 examples
(default geography)N/Ahttps://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&key=YOUR_KEY_GOES_HERE
state040https://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&for=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&for=state:01&key=YOUR_KEY_GOES_HERE
statecounty050https://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&for=county:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&for=county:*&in=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2020/pdb/statecounty?get=Males_CEN_2010,Females_CEN_2010,Tot_Population_CEN_2010&for=county:037&in=state:01&key=YOUR_KEY_GOES_HERE