weather

Official US weather forecast for a coordinate (US land +...

Official US weather forecast for a coordinate (US land + territories). Pass lat + lon. Returns the National Weather Service forecast as a list of periods — by default ~7 days of day/night periods; pass hourly=true for an hour-by-hour forecast. Each period gives the temperature + unit, wind speed/direction, chance of precipitation, and a short + detailed forecast, plus the resolved city/state and issuing office. Source: US National Weather Service (api.weather.gov), public domain. For active warnings use weather.alerts.

get/api/weather/forecast

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/weather/forecast
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

latnumber required

Latitude in decimal degrees (WGS84).

lonnumber required

Longitude in decimal degrees (WGS84).

hourlyboolean

Hourly.

limitinteger

Maximum number of results to return.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.