Global marine weather from multiple sources
Global weather API offering high-resolution forecasts and historical data for marine, green energy, and agricultural applications.
import requests
api_key = 'YOUR_API_KEY'
latitude = 59.9329
longitude = 10.7424
start_time = '2023-01-01T12:00:00Z'
end_time = '2023-01-01T13:00:00Z'
params = 'airTemperature,waveHeight'
url = f"https://api.stormglass.io/v2/weather/point?lat={latitude}&lng={longitude}&start={start_time}&end={end_time}¶ms={params}"
headers = {
'Authorization': f'Bearer {api_key}'
}
response = requests.get(url, headers=headers)
print(response.json())Last 50 checks (10 min intervals)