Data Sources
FRED, SEC EDGAR, BLS, exchange feeds: how to pull them, parse them, and not misread them.
Data Sources is the plumbing behind every analysis here: where the numbers come from, how to pull them, and how not to misread them. Each note ships a script, and none of them needs an API key or a registration.
Start with pulling FRED series without an API key: FRED serves every series as a plain CSV, and the script downloads, merges and checks the coverage of any list of series ids. Where free market data actually comes from traces eight FRED series to the agency or exchange that produces them and computes each one's lag. Data revisions in FRED uses ALFRED vintages to show how far the first prints of payrolls and real GDP have moved since 2010, and why a final number is not final. For the Bureau of Labor Statistics, BLS data in Python pulls CPI components and payrolls from the keyless version 1 API, and the CPI basket explained reads the relative importance tables: shelter is 35.6 percent of the 2026 CPI-U basket and energy 6.4 percent, yet energy supplied 38 percent of the index's rise from December to August. For company filings, reading SEC EDGAR in Python covers submissions, full-text search and XBRL facts in one script.
The analyses built on these sources are in Data Analysis.
-
The CPI basket explained, from the BLS relative importance tables
Shelter is 35.6% of the CPI-U basket for 2026 and energy 6.4%, yet energy supplied 38% of the index's rise from December to August. The weights, and how to use them.
-
FRED data revisions: ALFRED vintages and the alfredgraph.csv URL
Every payroll and GDP vintage since 2010 from ALFRED without a key, the alfredgraph.csv vintage_date parameters tested, and how far first prints moved.
-
Reading SEC EDGAR in Python: submissions, full-text search, XBRL facts
The three free EDGAR JSON endpoints in one standard-library script: a company's filings by accession number, full-text search hits, and deduplicated XBRL facts.
-
Where free market data actually comes from, and what each source lags
Eight FRED series traced to the agency or exchange that produces them, with native frequency and the days between last observation and retrieval date, computed.
-
Pulling FRED series without an API key: fredgraph.csv in Python
FRED's fredgraph.csv URL needs no key: a standard-library script to download and merge series, plus cosd, coed, fq, fam, transformation and vintage_date tested.
-
BLS data in Python: CPI components and payrolls without a key
The BLS public API v1 needs no key. A script pulls CPI components and the jobs headline, handles the "-" returned for a missing month, and prints 12-month changes.