Most weather APIs are expensive, over-engineered, or designed for enterprise procurement teams. WeatherLens is different. One API key. Clean JSON. Four endpoints. Up and running in under 5 minutes. No SDK, no OAuth, no XML.
Four clean endpoints. Predictable JSON schema. No surprise billing.
/api/v1/forecastUp to 16 days of temperature, precipitation probability, wind, UV index, and humidity. NWS precision for US days 1–7, Open-Meteo global coverage to day 16.
/api/v1/climateMulti-year weighted climate averages for any coordinate and day-of-year. Surface seasonal baselines, anomaly detection, and historical context alongside every forecast.
/api/v1/accuracyThis is what no other API gives you. Forecast accuracy by source, lead time, and month for any location. Show users a confidence score backed by real data.
/api/v1/historical365 days of observed weather actuals for any global coordinate. Retroactive analysis, model training, loss validation — all via one simple GET request. Pro plan.
We obsessed over the details that slow developers down.
Pick your language. Copy. Paste. Run.
# cURL
curl -H "X-API-Key: YOUR_KEY" \
"https://weatherlens.dev/api/v1/forecast?lat=40.7128&lon=-74.0060&days=7"
# JavaScript (fetch)
const res = await fetch(
"https://weatherlens.dev/api/v1/forecast?lat=40.7128&lon=-74.0060&days=7",
{ headers: { "X-API-Key": "YOUR_KEY" } }
);
const data = await res.json();
# Python
import httpx
data = httpx.get(
"https://weatherlens.dev/api/v1/forecast",
params={"lat": 40.7128, "lon": -74.0060, "days": 7},
headers={"X-API-Key": "YOUR_KEY"}
).json()
# Go
req, _ := http.NewRequest("GET",
"https://weatherlens.dev/api/v1/forecast?lat=40.7128&lon=-74.0060&days=7", nil)
req.Header.Set("X-API-Key", "YOUR_KEY")
resp, _ := http.DefaultClient.Do(req)
# Ruby
require "net/http"
uri = URI("https://weatherlens.dev/api/v1/forecast?lat=40.7128&lon=-74.0060&days=7")
req = Net::HTTP::Get.new(uri)
req["X-API-Key"] = "YOUR_KEY"
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }Modern, open, and transparent. No black-box magic.
100 free requests per day. No credit card. No sales call. Sign up and get your key in 30 seconds.