Step 1: the free government APIs
| API | Data | Auth | Notes |
|---|---|---|---|
| SEC EDGAR | Submissions, XBRL company facts and frames, full-text search; Form C crowdfunding filings | None; a User-Agent header with contact email is required | Rate limit about 10 requests per second; bulk ZIPs available |
| FRED | 800,000+ economic series with vintages (ALFRED) for point-in-time | Free API key | JSON and XML; 120 requests per minute |
| Census | Economic census, business patterns, trade, demographics | Free key for higher limits | Dozens of endpoints; variable names are the learning curve |
| BLS | Employment, CPI, wages | Free key for v2 | Daily query limits |
| USAspending.gov | Federal awards by recipient and agency | None | REST API and bulk downloads |
| Treasury Fiscal Data | Debt, receipts, outlays | None | REST |
A minimal SEC call: a GET to `https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json` with a descriptive User-Agent returns every reported XBRL fact for Apple. FRED: `https://api.stlouisfed.org/fred/series/observations?series_id=UNRATE&api_key=KEY&file_type=json` returns the unemployment rate. These two endpoints alone support fundamentals, insider trades and macro series for backtests.