A National Weather Service API alternative for testing

The National Weather Service API at api.weather.gov serves real forecasts, observations and alerts as open data, free of charge and without an API key. Its documentation asks every client to send a User-Agent that identifies the application, and says rate limits exist but are not published.

At a glance

the National Weather Service API compared with this playground, checked 2026-11-09.
 the National Weather Service APIFun API Playground
DataReal US weatherSynthetic, deterministic
AccessNo key; User-Agent requiredNo key
Rate limitsExist, not publishedAbuse protection only
Failure testingOnly when the service actually failsscenario=outage, timeout, stale
UnitsPer productunits=us or si

Where it stops

Real weather is exactly what a test does not want: the forecast changes every hour, an alert exists only when weather does, and an outage cannot be produced on demand. Forecasts also take two calls — /points for the grid, then the gridpoint forecast — which is right for production and extra setup for a tutorial.

What is different here

The Weather API here returns synthetic, deterministic conditions, daily and hourly forecasts and state alerts for a fixed set of locations, in °F/mph or °C/km/h. A scenario parameter turns on a 503 with Retry-After, a slow 504 or a stale response with a Warning header, so the failure paths can be tested as easily as the happy one.

What the National Weather Service API does better

What this playground does better

Which to use

Use api.weather.gov for real weather in a real product. Use this API in tutorials and tests where the answer must not change and the failures must be reproducible.

Checked against the National Weather Service API as of 2026-11-09.

Official sources and scope

This compares a training playground with the documented use case of the other tool. Plans, limits and hosted features can change. For current terms, use the official sources below.

Current Fun API behavior and limits · Run a practice example

Other comparisons

All 55 mock REST APIs · Getting started guide · About this playground

Last updated