Back to articles
9 Government APIs You Didn't Know Existed (All Free, Most Need No API Key)

9 Government APIs You Didn't Know Existed (All Free, Most Need No API Key)

via Dev.to PythonAlex Spinov

Your tax dollars paid for these APIs. You might as well use them. I spent a week exploring government data portals and found some genuinely useful APIs that most developers have never heard of. 1. SEC EDGAR β€” Every Public Company's Financials Tesla's revenue? Apple's debt? It's all here. Structured JSON, no API key. import requests headers = { " User-Agent " : " MyApp (email@example.com) " } url = " https://data.sec.gov/api/xbrl/companyfacts/CIK0001318605.json " data = requests . get ( url , headers = headers ). json () # Revenue, profit, assets, debt β€” everything πŸ“– Full tutorial 2. FRED β€” 816,000 Economic Datasets Inflation rates, GDP, unemployment, housing prices, interest rates β€” the Federal Reserve makes it all available. πŸ“– Full tutorial 3. Treasury FiscalData β€” National Debt in Real-Time The US national debt, updated daily. Plus exchange rates, auction results, government spending. πŸ“– Full tutorial 4. NASA APIs β€” Space Data for Free Asteroid tracking, Mars rover photos, satellite i

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
2 views

Related Articles