Census API: Examples for /data/2019/pep/components
Geography HierarchyGeography LevelExample URLNumber
13 examples
us010https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=us:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=us:1&key=YOUR_KEY_GOES_HERE
state040https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=state:01&key=YOUR_KEY_GOES_HERE
statecounty050https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=county:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=county:*&in=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=county:002&in=state:01&key=YOUR_KEY_GOES_HERE
metropolitan statistical area/micropolitan statistical area310https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=metropolitan%20statistical%20area/micropolitan%20statistical%20area:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=metropolitan%20statistical%20area/micropolitan%20statistical%20area:01&key=YOUR_KEY_GOES_HERE
metropolitan statistical area/micropolitan statistical areametropolitan division314https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=metropolitan%20division:*&in=metropolitan%20statistical%20area/micropolitan%20statistical%20area:01&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=metropolitan%20division:002&in=metropolitan%20statistical%20area/micropolitan%20statistical%20area:01&key=YOUR_KEY_GOES_HERE
combined statistical area330https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=combined%20statistical%20area:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2019/pep/components?get=GEO_ID&for=combined%20statistical%20area:01&key=YOUR_KEY_GOES_HERE