CenterOnBudget / getcensus

Load American Community Survey data from the U.S. Census Bureau API into Stata
https://centeronbudget.github.io/getcensus/
MIT License
14 stars 3 forks source link

Make API key optional #62

Closed c-zippel closed 1 year ago

c-zippel commented 1 year ago

Following tidycensus v 1.3. Max daily queries without a key is 500

shingtgen commented 1 year ago

I commented out my API key in my profile.do and then ran: getcensus S2001_C01_001, sample(5) clear

I got the following message:

You have not provided an API key. Without a key, you are limited to 500 API queries per day. To use an API key, specify key() or store your API key in a global macro named censuskey in your profile.do.

Looks good!

Separately, I checked the documentation for the key() option just for fun and spotted the tiniest thing you might want to fix while you're updating--an extra space after the URL and before the period here:

key(string) specifies your Census Bureau API key. If you do not have an API key, you may acquire at
    https://api.census.gov/data/key_signup.html . 
c-zippel commented 1 year ago

Thanks! I've fixed the extra space in 1af2ec9.