Census API: Examples for /data/2018/pep/charage

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 HierarchyGeography LevelExample URLNumber
5 examples
(default geography)N/Ahttps://api.census.gov/data/2018/pep/charage?get=GEONAME,POP,AGE&key=YOUR_KEY_GOES_HERE
state040https://api.census.gov/data/2018/pep/charage?get=GEONAME,POP,AGE&for=state:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2018/pep/charage?get=GEONAME,POP,AGE&for=state:06&key=YOUR_KEY_GOES_HERE
us010https://api.census.gov/data/2018/pep/charage?get=GEONAME,POP,AGE&for=us:*&key=YOUR_KEY_GOES_HERE
https://api.census.gov/data/2018/pep/charage?get=GEONAME,POP,AGE&for=us:1&key=YOUR_KEY_GOES_HERE