
9 Free APIs You Probably Didn't Know Existed
Everyone knows about the GitHub API and Google Maps API. But these 9 APIs fly under the radar — and they're incredibly useful. 1. Open-Meteo — Weather Without API Key Most weather APIs require registration. Open-Meteo doesn't. import requests # Get weather for any city — no key, no registration resp = requests . get ( ' https://api.open-meteo.com/v1/forecast ' , params = { ' latitude ' : 51.5 , ' longitude ' : - 0.1 , # London ' current ' : ' temperature_2m,wind_speed_10m ' , ' daily ' : ' temperature_2m_max,temperature_2m_min ' , ' timezone ' : ' auto ' }) data = resp . json () print ( f " London: { data [ ' current ' ][ ' temperature_2m ' ] } °C " ) 16-day forecast + historical data. Free forever. 2. Shodan InternetDB — IP Intelligence Without Key Shodan's premium API costs $59/month. But InternetDB is free. def scan_ip ( ip ): data = requests . get ( f ' https://internetdb.shodan.io/ { ip } ' ). json () print ( f " Open ports: { data . get ( ' ports ' , []) } " ) print ( f " Known C
Continue reading on Dev.to Python
Opens in a new tab




