
7 Free Data APIs That Power My Side Projects (With Code)
I build a lot of side projects. And every single one needs data from somewhere. After months of trial and error, these are the 7 free APIs I keep coming back to. All of them work without an API key (or with a free one), return real data, and have solid documentation. 1. NASA Open APIs — Space Data for Free NASA gives away everything: satellite imagery, asteroid data, Mars rover photos, exoplanet catalogs. import requests # Astronomy Picture of the Day apod = requests . get ( " https://api.nasa.gov/planetary/apod " , params = { " api_key " : " DEMO_KEY " }). json () print ( f " { apod [ ' title ' ] } \n { apod [ ' url ' ] } " ) # Near Earth Objects today neo = requests . get ( " https://api.nasa.gov/neo/rest/v1/feed/today " , params = { " api_key " : " DEMO_KEY " }). json () print ( f " { neo [ ' element_count ' ] } asteroids near Earth today " ) Toolkit: nasa-open-data-toolkit 2. World Bank API — Global Economic Data 216 countries, 16,000+ indicators, 60 years of data. GDP, population,
Continue reading on Dev.to Python
Opens in a new tab




