← Project hub
AIER · Data-Center Paper · Setup

API Keys & Data Access

Sign up with your own email so the keys are yours. Do Part 1 (4 keys, ~10 min) and you can run the pipeline with the large majority of the data. Part 2 adds free accounts to max it out.

4 keys
required · ~10 minutes
~49 / 56
datasets unlocked by Part 1
+ 3 free
web accounts for the rest (Part 2)
Part 1 · Required keys
Free, email-delivered, and everything the R pipeline pulls.
1
CENSUS_KEYCensus Bureau
County Business Patterns, ACS controls & Quarterly Workforce Indicators — three datasets from one key.
Sign up at api.census.gov →email + activation link
2
BEA_KEYBureau of Economic Analysis
County personal income & county GDP.
Sign up at apps.bea.gov →email (36-char key)
3
EIA_KEYEnergy Information Administration
State electricity prices, sales & the EIA Open Data API.
4
CONGRESS_KEYCongress.gov
Federal data-center / AI bills (powers your legislation pull).
Part 2 · Optional — for max data
Not needed to run the pipeline; these open up the rest of the 56-dataset catalog.
5
FRED_KEYSt. Louis Fed (FRED)
Convenience county series; redistributes BEA/BLS.
6
BLS_KEYBLS Public Data API
Optional — QCEW & LAUS work with no key; this only raises API rate limits.
7
Lincoln Institute accountSignificant Features of the Property Tax
Property-tax program data (free web login, no key).
8
C2ER accountState Business Incentives Database
State incentive programs (free web login, no key).
9
ISO/RTO accountsPJM / ERCOT / MISO / CAISO
Grid load & price detail (only for a deep electricity dive).
10
NREL_API_KEYNREL via api.data.gov
Optional — only if pulling NREL OEDI data by API.
Part 3 · Paid / restricted
You can't self-signup by email — note them and skip unless AIER provides access.
No signup needed for 42 sources — they download directly or are exported once by hand (each script prints the link + save path): BLS QCEW/LAUS, Census Building Permits/BDS/LODES/TIGER/finances, IRS SOI, Zillow, FHFA, USGS, NOAA, EIA Forms 860/861/923/930, EPA eGRID, FERC Form 1, LBNL, OpenStreetMap, SEC EDGAR, FCC broadband, USDA ERS, HUD crosswalk, the DOE/PNNL atlas, the Good Jobs First Subsidy Tracker, and the EFSY imputed CBP.

Put the keys in .Renviron

From the repo root (the folder with CLAUDE.md):

1. Copy the template:

cp .Renviron.example .Renviron

2. Open .Renviron and paste each key after the = (no quotes, no spaces):

CENSUS_KEY=your_census_key_here
BEA_KEY=your_36_char_bea_userid_here
EIA_KEY=your_eia_key_here
CONGRESS_KEY=your_congress_key_here
FRED_KEY=your_fred_key_here      # optional
BLS_KEY=your_bls_key_here        # optional

3. Save, restart R, then run Rscript code/R/99_run_all.R — it prints a FIX / OK line per step so you can see what's still missing.

Checklist

#Key / accountSign upNeed it?
1CENSUS_KEYapi.census.gov/data/key_signup.htmlrequired
2BEA_KEYapps.bea.gov/api/signuprequired
3EIA_KEYeia.gov/opendata/register.phprequired
4CONGRESS_KEYapi.congress.gov/sign-uprequired
5FRED_KEYfredaccount.stlouisfed.org/apikeysoptional
6BLS_KEYdata.bls.gov/registrationEngineoptional
7Lincoln Institute acctlincolninst.eduoptional
8C2ER acctstateincentives.orgoptional
9ISO/RTO acctsdataminer2.pjm.com (+ others)optional
10NREL_API_KEYapi.data.gov/signupoptional

Bottom line: do the 4 required keys and you're ready to run with the bulk of the data; add Part 2 later to max it out.