API Reference

Base URL: https://api.strataweather.com

GET/v1/point

Minute-by-minute precipitation nowcast for a specific location.

Parameters

lat(float)— Latitude
lon(float)— Longitude
minutes(int)— Forecast duration (default 60, max 120)

Example

GET /v1/point?lat=40.71&lon=-73.94&minutes=60
GET/v1/conditions

Current weather conditions from the nearest observation station that has reported in the last two hours. Fields are null when no station within 100 km qualifies.

Parameters

lat(float)— Latitude
lon(float)— Longitude

Example

GET /v1/conditions?lat=40.71&lon=-73.94
GET/v1/forecast/hourly

48-hour hourly forecast with temperature, precipitation, and wind.

Parameters

lat(float)— Latitude
lon(float)— Longitude
hours(int)— Number of hours (default 48)

Example

GET /v1/forecast/hourly?lat=40.71&lon=-73.94&hours=24
GET/v1/forecast/daily

7-day daily forecast with highs, lows, and conditions.

Parameters

lat(float)— Latitude
lon(float)— Longitude

Example

GET /v1/forecast/daily?lat=40.71&lon=-73.94
GET/v1/tiles/{z}/{x}/{y}.png

Precipitation radar tile for map overlays (256x256 PNG).

Parameters

z(int)— Zoom level (0-8)
x(int)— Tile X coordinate
y(int)— Tile Y coordinate
timestep(int)— Forecast timestep (0-23, each = 5 min)

Example

GET /v1/tiles/4/4/6.png?timestep=0
GET/v1/alerts

Active weather alerts for a location from NWS.

Parameters

lat(float)— Latitude
lon(float)— Longitude

Example

GET /v1/alerts?lat=40.71&lon=-73.94
GET/health

API health check endpoint.

Example

GET /health