Skip to content
Docs navigation

Weather

Smarter Weather covers the 50 US states and DC only. Coverage details

The unified weather endpoint returns current conditions, hourly and daily forecasts, alerts, outlooks, and astronomy for a location in a single request. A batch form covers many points in one round trip. Outlooks are also available as their own resource when you only need convective risk.

What you get

A single weather request returns a blended snapshot composed of multiple NOAA models and the live NWS alert feed. Pick include sections per request to keep payloads small.

Available data domains

current

Real-time conditions from RTMA analysis: temperature, wind, humidity, pressure, visibility.

hourly

Blended hourly forecast from NBM, HRRR, and GFS models. Includes temperature, precipitation probability, wind, cloud cover.

daily

Daily high/low temperatures, precipitation totals, wind, sunrise/sunset, and condition summaries.

alerts

Active NWS weather alerts affecting the location, with severity, event type, and description.

outlooks

SPC convective outlook risk levels (marginal, slight, enhanced, moderate, high).

astro

Sunrise, sunset, moonrise, moonset, and moon phase for the location.

Batch requests

For dashboards and bulk workflows, the endpoint also accepts a batch form that returns weather for many locations in a single round trip. The request body and the batch-size limit are in the embedded reference below.

Data sources

Weather data is blended from multiple NOAA models for accuracy across time horizons:

  • RTMA — Real-Time Mesoscale Analysis for current conditions
  • HRRR — High-Resolution Rapid Refresh for 0–18 hour forecasts
  • NBM — National Blend of Models for extended forecasts
  • GFS — Global Forecast System for day 7+ guidance
  • NWS — National Weather Service alert feed for active warnings
curl "https://api.smarterweather.com/v1/weather?lat=42.3601&lon=-71.0589" \
  -H "Authorization: Bearer ${SMARTERWEATHER_API_KEY:?set SMARTERWEATHER_API_KEY first, see developers.smarterweather.com/quickstart}"
// save as sample.mjs; run: node --env-file=.env sample.mjs (Node 20.6+, ESM top-level await)
const res = await fetch(
  "https://api.smarterweather.com/v1/weather?lat=42.3601&lon=-71.0589",
  { headers: { Authorization: `Bearer ${process.env.SMARTERWEATHER_API_KEY}` } },
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();
console.log(JSON.stringify(data, null, 2));
# pip install requests python-dotenv
import os, sys, requests
from dotenv import load_dotenv

load_dotenv(".env")  # ./.env in the current directory; variables already set are kept

r = requests.get(
    "https://api.smarterweather.com/v1/weather",
    params={"lat":"42.3601","lon":"-71.0589"},
    headers={"Authorization": f"Bearer {os.environ['SMARTERWEATHER_API_KEY']}"},
)
if not r.ok:
    sys.exit(f"{r.status_code} {r.text}")
data = r.json()
print(data)
package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest("GET", "https://api.smarterweather.com/v1/weather?lat=42.3601&lon=-71.0589", nil)
	if err != nil {
		log.Fatal(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("SMARTERWEATHER_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)
	if err != nil {
		log.Fatal(err)
	}
	if res.StatusCode < 200 || res.StatusCode > 299 {
		log.Fatalf("%s %s", res.Status, body)
	}
	fmt.Println(string(body))
}

Samples read your key from SMARTERWEATHER_API_KEY. Set it up in the Quickstart.

Weather reference

Rendered live from the canonical OpenAPI document. This is the canonical reference for the weather resource.

Paste a test key (sw_test_*) from your dashboard into Test Request. Test keys are never billed; their calls still count toward the key's rate limits and daily cap. Calls with your own live key count toward your plan.

Loading the API reference… The spec is also in openapi.yaml.