
10 Free APIs You Can Use Without an API Key (Just Send a Request)
No signup. No OAuth. No API key. Just send an HTTP request and get data back. Here are 10 APIs that work immediately: 1. Open-Meteo (Weather) import requests r = requests . get ( " https://api.open-meteo.com/v1/forecast " , params = { " latitude " : 40.71 , " longitude " : - 74.01 , " current_weather " : True }) print ( f " NYC: { r . json ()[ ' current_weather ' ][ ' temperature ' ] } °C " ) 2. USGS Earthquakes r = requests . get ( " https://earthquake.usgs.gov/fdsnws/event/1/query " , params = { " format " : " geojson " , " minmagnitude " : 5 , " limit " : 3 }) for eq in r . json ()[ ' features ' ]: print ( f " M { eq [ ' properties ' ][ ' mag ' ] } — { eq [ ' properties ' ][ ' place ' ] } " ) 3. REST Countries r = requests . get ( " https://restcountries.com/v3.1/name/japan " ) c = r . json ()[ 0 ] print ( f " { c [ ' name ' ][ ' common ' ] } : { c [ ' population ' ] : , } people " ) 4. Crossref (150M+ Academic Articles) r = requests . get ( " https://api.crossref.org/works " , para
Continue reading on Dev.to Python
Opens in a new tab



