API Directory › 🌦 Weather › Stormglass
API KeyHTTPSCORS

Stormglass API

Marine and weather data aggregated from multiple sources — great for coastal/ocean apps.

Category
Auth
API Key
HTTPS
Yes
CORS
Yes
Open Stormglass docs ↗

What it does

Stormglass is a marine and weather API aggregating multiple global models. It specialises in ocean data — wave height and period, swell, water temperature, currents, and especially tide extremes and sea level — alongside standard air weather, all by latitude/longitude.

Base URL

https://api.stormglass.io/v2

Authentication

Free account at stormglass.io provides an API key. Send it in the Authorization header (no Bearer prefix — just the key). Request the model params you actually need; each param from each source counts toward your quota.

Code examples

curl
curl "https://api.stormglass.io/v2/weather/point?lat=6.45&lng=3.40&params=waveHeight,waterTemperature" \
  -H "Authorization: YOUR_KEY"
Python
import requests

r = requests.get(
    "https://api.stormglass.io/v2/weather/point",
    params={
        "lat": 6.45, "lng": 3.40,
        "params": ",".join(["waveHeight", "waterTemperature", "windSpeed"]),
    },
    headers={"Authorization": "YOUR_KEY"},
    timeout=15,
)
r.raise_for_status()
first = r.json()["hours"][0]
print(first["time"], first["waveHeight"])
JavaScript
const p = new URLSearchParams({
  lat: "6.45", lng: "3.40",
  params: "waveHeight,waterTemperature,windSpeed",
});
const res = await fetch(
  `https://api.stormglass.io/v2/weather/point?${p}`,
  { headers: { Authorization: "YOUR_KEY" } }
);
const { hours } = await res.json();
console.log(hours[0]);

Rate limits & quotas

The free tier is 10 requests/day. That sounds tiny, but one request returns a full time series (often 7–10 days hourly) for a point, so you cache per location and refresh a couple of times a day. Quota resets 00:00 UTC; a meta.requestCount / meta.dailyQuota pair is returned on every response.

Key response fields

hours[].timeISO-8601 UTC timestamp for that hour
hours[].waveHeight / swellHeight / wavePeriodEach is an object keyed by source model (sg = Stormglass blended)
hours[].waterTemperature / airTemperature°C by default
hours[].windSpeed / windDirection / gustStandard air weather
meta.requestCount / meta.dailyQuotaYour usage against the daily cap

Common errors

401Missing or wrong key. Header is Authorization: KEY — no Bearer.
402Daily quota exhausted (free tier: 10/day).
422Invalid params name or out-of-range coordinates.

When to use it (and alternatives)

Use Stormglass when you need marine data — surf/fishing/boating apps, coastal planning, tide tables (/tide/extremes/point). For general land weather with a big free quota, OpenWeatherMap or Open-Meteo are the better choice. For NOAA-grade US tide data specifically, the CO-OPS API is free.

FAQ

Why is the free Stormglass tier only 10 requests a day?

Because each request returns a full multi-day hourly forecast for a point from several models — it’s a lot of data per call. Cache by location and you rarely need more.

What does the ‘sg’ key mean in the response?

Each metric is an object with one entry per source model (noaa, dwd, meteo…). sg is Stormglass’s own blended best-estimate — use that unless you need a specific model.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Weather Checker

Related Weather APIs

← Back

More Weather APIs · All 196 APIs