I've just started working with Census APIs, and so far I'm loving what this can do to improve my work flow when working with American Community Survey Data.
For most of the data work I'm doing, my primary geographic level is the county subdivision. BUT, I also like to include data for each of the counties I'm working with, and the state level.
I know how to access EACH of those three levels, but I'm not sufficiently familiar with JSON programming protocols to know how (or whether) I can combine multiple geographic LEVELS in a single API data call?
I have been looking at the EXAMPLES found here [https://api.census.gov/data/2019/acs/acs5/examples.html], and don't see any that combine multiple geographic levels, but I strongly suspect this is something I should be able to do?
Thanks for any assistance you can offer.
Hey there, does anyone have any advice on activating my Census Data API key? @halldjh65
I just received it via email, but when I click the
Please click here to activate your key link I get an error:
You've attempted to validate an unknown key. If it has been more than 48 hours since you submitted your request for this API key then the request has been removed from the system. Please request a new key and activate it within 48 hours.
I see similar error reports from 2020 but I'm wondering if this is working now. Thanks!
you have three choices -
1) ask geocoding.geo.census.gov to set
Access-Control-Allow-Origin header to
I think they should, public facing data apis should be CORS enabled.
2) ask geocoding.geo.census.gov to take jsonp seriously and return it as a function call. This is typically done with a callback parameter, say, callback=someFun, causing the response to be someFun(<JSONdata>). This would allow you to get the data through a script tag where you call the function in your code you want to consume the data.
3) deploy your own proxy with that CORS header set, such that making that api call will be returned with CORS enabled. I tend to do this with nodejs which comes with a nice non-blocking event listener.
Hello ! I'm trying to get quantity-reported data at the HS6 level for different periods of time, and I'm getting a total traded quantity of zero. Does this match the data in your databases? I'm querying this API endpoint:
I really appreciate any help. Thanks!
Hi, I am new to the Census Data, and would like to use import the American Community Survey 1-Year Data (2005-2019) to python using the Census Package. It requires a MY_API_KEY. Could anyone help me with getting the MY_API_KEY?
I think I got mine by signing up at https://api.census.gov/data/key_signup.html
Hi, I'm new to Census Data. I would like to download the country of origin data by county from the American Community Survey (ACS). Where do I need to look?
It’s been a while … maybe my notes will still be helpful, particularly the links to documentation are the top of: https://observablehq.com/@episphere/census