Precision agriculture, environmental monitoring, and climate research all depend on accurate, context-aware weather data. WeatherLens delivers accuracy-scored forecasts, multi-year climate normals, and historical observed conditions — with the confidence metrics to know when to act and when to wait.
From planting calendars to carbon monitoring, WeatherLens powers weather-intelligent applications at every scale.
Farmers and climate scientists don't just need to know what the weather will be. They need to know if it's normal — and how much to trust the prediction.
/api/v1/climate for multi-year weighted averages at any lat/lon for any day of year. Surface baseline high/low temperatures, normal precipitation, and seasonal patterns so your application can contextualize every forecast reading automatically./accuracy endpoint scores how well forecasts have performed at your specific field coordinates — by lead time and by source. Know whether a 7-day rainfall forecast deserves 90% confidence or 60% confidence for better irrigation decision-making.Combine forecast, climate normal, and accuracy data in one workflow.
import httpx, os
KEY = os.environ["WEATHERLENS_KEY"]
BASE = "https://weatherlens.dev/api/v1"
FIELD = {"lat": 41.5868, "lon": -93.6250} # Central Iowa
# Pull 10-day forecast
forecast = httpx.get(f"{BASE}/forecast",
params={**FIELD, "days": 10},
headers={"X-API-Key": KEY}).json()
# Pull climate normals for seasonal context
climate = httpx.get(f"{BASE}/climate",
params=FIELD, headers={"X-API-Key": KEY}).json()
# Pull accuracy data for this region
accuracy = httpx.get(f"{BASE}/accuracy",
params=FIELD, headers={"X-API-Key": KEY}).json()
# Evaluate planting window
soil_safe_days = [
day for day in forecast["forecast"]
if day["lowF"] > 32 # no frost
and day["precipProbPct"] < 40 # dry enough to plant
]
print(f"Safe planting days next 10 days: {len(soil_safe_days)}")
print(f"Forecast confidence (7-day): {accuracy['tempWithin2F_7day']:.0%}")
print(f"Climate normal frost-free date: {climate['lastFrostDate']}")100 free API calls per day, including climate normals and accuracy scores. Historical archive on Pro. No credit card required to start.