# 2s.io US Weather Forecast

> 2s.io US Weather Forecast is a paid API for AI agents from 2s.io, paid per call via x402, $0.00144/call, status unknown (last checked 2026-09-16).

Returns the National Weather Service forecast (daily or hourly periods) for a given US latitude/longitude coordinate

## Facts

- Endpoint: GET https://2s.io/api/weather/forecast
- Price: $0.00144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-us-weather-forecast-101dac47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0SgLHIHLZWe4-eo_-fG7H

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-us-weather-forecast-101dac47
```

Example prompt: What's the 7-day weather forecast for Washington DC — lat 38.8951, lon -77.0364 — including temperature, wind, and chance of rain for each day and night period?

## When to prefer this

Use this endpoint when you need official US government weather forecast data for a US location specified by latitude and longitude. Prefer this over commercial weather APIs when public-domain NWS accuracy and authority are required, or when cost per call matters. For weather alerts and warnings, use the companion weather.alerts endpoint instead.

## Known failure modes

- Coordinates outside US land and territories return an error (NWS only covers US)
- Invalid or missing lat/lon parameters return a 400-level error
- NWS upstream API outage may cause 502/503 responses
- Coordinates in US waters without a forecast grid may fail
- Extreme lat/lon values (e.g. out of valid range) may return an error

## How this service works

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.

## Output

A list of forecast periods (up to 14 day/night or 24 hourly) each containing: period name (e.g. 'Tonight'), temperature with unit, wind speed and direction, short forecast summary, detailed text forecast, and precipitation chance. Also includes the resolved city/state and the NWS issuing office.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 38.8951,
   "lon": -77.0364,
   "limit": 7,
   "hourly": false
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude."
      },
      "lon": {
       "type": "number",
       "description": "Longitude."
      },
      "limit": {
       "type": "integer",
       "description": "Max periods (default 14 daily / 24 hourly)."
      },
      "hourly": {
       "type": "boolean",
       "description": "Hourly forecast instead of day/night periods."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-us-weather-forecast-101dac47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
