🌐 Lang:

VWeatherStation API

A small, focused JSON API for weather data that's useful to automated consumers: route risk for sailors and pilots, multi-model forecast confidence, and weather-station readings for prediction markets. Endpoints are metered per request using the x402 payment standard, so agents pay only for what they query.

For humans: everything on this website is free to browse. The API below is for developers and AI agents that want structured data programmatically.

Authentication & payment (x402)

These endpoints use HTTP 402 Payment Required. Your first request returns a 402 with a JSON body describing how to pay (network, asset, amount, pay-to address, and a facilitator to settle through). Pay via the facilitator, then retry the same request with an X-PAYMENT header carrying the payment proof. A valid payment returns 200 with the data.

Discovery document: /.well-known/x402.json · Agent index: /llms.txt

GET /api/v1/routes

Route risk between two points for sailing or flying. Samples the forecast along the great-circle path and returns an overall risk score, a per-leg breakdown, and plain-language advice.

ParamRequiredExample
fromyes50.9,-1.4
toyes49.5,-0.1
modenosailing (default) or flying
Price: $0.01 / request
GET /api/v1/routes?from=50.9,-1.4&to=49.5,-0.1&mode=sailing

{
  "ok": true,
  "mode": "sailing",
  "distance_km": 181.1,
  "distance_nm": 97.8,
  "risk_score": 24,
  "risk_band": "low",
  "advice": "Conditions look favourable along the route...",
  "legs": [ { "point": {...}, "wind_speed_kmh": 18, "wave_height_m": 0.8, "risk": 12 }, ... ],
  "disclaimer": "Advisory only. Not a substitute for official forecasts."
}

GET /api/v1/confidence

Forecast-confidence score for a location, from multi-model ensemble spread. Choose which models to include.

ParamRequiredExample
latyes51.5
lonyes-0.13
modelsnoweathernext,ecmwf,gfs,icon,gem
Price: $0.005 / request
GET /api/v1/confidence?lat=51.5&lon=-0.13&models=weathernext,ecmwf

{ "ok": true, "score": 82, "level": "high", "spread": 1.4, "band": {...}, "days": [...] }

GET /api/v1/markets

Live readings for the weather stations that settle temperature prediction markets (e.g. Kalshi / Polymarket daily-high markets), across 15 major cities.

ParamRequiredExample
citynolondon (omit for all cities)
metricnotemperature (default) or wind
Price: $0.02 / request
GET /api/v1/markets?city=london

{
  "ok": true,
  "data": [ {
    "city": "London",
    "stations": ["EGLL Heathrow","EGLC London City"],
    "current": { "temperature_c": 18.2, "temperature_f": 64.8, ... },
    "today": { "high_c": 21, "low_c": 12, ... }
  } ]
}

Notes