Skip to content

Storm Glass API

by stormglass.io

API keyHTTPSCORSWeather
Open documentation ↗

Overview

Global marine weather from multiple sources

Storm Glass is a weather API from stormglass.io. Requests are authenticated with an API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 1 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Yes
Category
Weather
Base URL
https://api.stormglass.io/
Version
1.0.1
Endpoints
1
Spec updated
2019-11-13

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.stormglass.io/forecast" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.stormglass.io/forecast", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.stormglass.io/forecast",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/forecastGet hourly forecasts by coordinates

Questions

Does the Storm Glass API need an API key?

Yes. The Storm Glass API uses API key authentication; the documentation explains how to get credentials.

Can I call the Storm Glass API from the browser?

Yes. The Storm Glass API sends CORS headers, so a web page can call it directly with fetch().

Does the Storm Glass API support HTTPS?

Yes, the Storm Glass API is served over HTTPS.

How many endpoints does the Storm Glass API have?

Its OpenAPI description lists 1 endpoint in version 1.0.1. All of them are shown on this page.

What are alternatives to the Storm Glass API?

Other Weather APIs include NOAA CO-OPS, NASA POWER, US Weather, AccuWeather, Aemet.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).