# NWS Multi-Period Weather Forecast (US)

> NWS Multi-Period Weather Forecast (US) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14, last successful call 2026-07-28).

Returns a multi-period weather forecast (temperature, wind, conditions) for a US location given latitude and longitude, sourced from the National Weather Service.

## Facts

- Endpoint: GET https://agent402.tools/api/weather-forecast
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-28
- Success rate: 50% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nws-multi-period-weather-forecast-us-8ecf4277
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FFKyamPnwGwsv1FOSJoaz

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 nws-multi-period-weather-forecast-us-8ecf4277
```

Example prompt: What's the multi-period weather forecast for New York City — latitude 40.71, longitude -74.01 — for the next several days, including temperature, wind, and conditions?

## When to prefer this

Use this endpoint when you need a structured multi-period weather forecast for a US location and have latitude/longitude coordinates available. It pulls directly from the authoritative US National Weather Service (api.weather.gov), making it ideal for government-sourced, public-domain forecast data. Prefer this over commercial weather APIs when NWS data is sufficient and US-only coverage is acceptable.

## Known failure modes

- Coordinates outside the US return an error or no forecast data (US-only coverage)
- Invalid or missing lat/lon parameters return a 400-style error
- NWS API upstream outage causes a failed or empty response
- Very remote US locations (ocean areas, territories) may not have NWS grid coverage

## How this service works

Multi-period weather forecast for a US location from api.weather.gov (NWS, public domain). Give latitude and longitude; returns the place plus upcoming forecast periods (temp, wind, conditions). US coverage only. ?lat=40.71&lon=-74.01

## Output

Returns the place name for the given coordinates plus a list of upcoming forecast periods from the National Weather Service, each including temperature, wind speed and direction, and a plain-language description of weather conditions (e.g. 'Mostly Sunny', 'Chance of Rain').

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "latitude (US)"
      },
      "lon": {
       "type": "number",
       "description": "longitude (US)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "location",
      "lat",
      "lon",
      "periods"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "periods": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "unit": {
          "type": "string"
         },
         "wind": {
          "type": "string"
         },
         "temperature": {
          "type": "integer"
         },
         "shortForecast": {
          "type": "string"
         }
        }
       }
      },
      "location": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "state": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 40.71,
  "lon": -74.01,
  "periods": [
   {
    "name": "Today",
    "unit": "F",
    "wind": "10 mph",
    "temperature": 72,
    "shortForecast": "Sunny"
   }
  ],
  "location": {
   "city": "New York",
   "state": "NY"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nws-multi-period-weather-forecast-us-8ecf4277/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
