# PayAI AgentsTools Weather (NWS)

> PayAI AgentsTools Weather (NWS) is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns current US weather conditions (temperature in °C and °F, humidity, wind, pressure, and description) from the National Weather Service for a given coordinate pair or auto-geocoded US address.

## Facts

- Endpoint: GET https://payai.agentstools.dev/weather
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payai-agentstools-weather-nws-362e5b35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Vzhbo9PBQ4I5fe8JPsPK

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 payai-agentstools-weather-nws-362e5b35
```

Example prompt: What are the current weather conditions — temperature, humidity, and wind — for 1600 Pennsylvania Ave NW, Washington, DC?

## When to prefer this

Use this endpoint when you need real-time, authoritative US weather conditions from the National Weather Service and your input is either a lat/lon coordinate pair or a US street address. Prefer this over general weather APIs when you need official NWS data, dual Celsius/Fahrenheit output, and support for address-based lookups via auto-geocoding — all in a single call.

## Known failure modes

- Non-US coordinates or address returns an error since NWS only covers the United States
- Ambiguous or unrecognizable address fails geocoding and returns no data
- Coordinates outside [-90,90] lat or [-180,180] lon are rejected by schema validation
- NWS API outage or rate limit may cause upstream failures
- Missing both lat/lon and address results in a missing required parameter error

## How this service works

Current US weather conditions (temp in C+F, humidity, wind, pressure, description) from the NWS for coordinates OR a US address (auto-geocoded).

## Output

A JSON object containing current temperature in both Celsius and Fahrenheit, relative humidity percentage, wind speed and direction, atmospheric pressure, and a human-readable weather description sourced from the National Weather Service.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude [-90,90] (with lon)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude [-180,180] (with lat)"
      },
      "address": {
       "type": "string",
       "description": "US address (alternative to lat/lon)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payai-agentstools-weather-nws-362e5b35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
