# AgentsTools Weather API

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

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

## Facts

- Endpoint: GET https://api.agentstools.dev/weather
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-weather-api-3e2a3c06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CH71i5ytxnrgelpMmTtQw

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 agentstools-weather-api-3e2a3c06
```

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

## When to prefer this

Choose this endpoint when you need real-time US weather conditions from the authoritative National Weather Service source, especially when you only have a street address (not coordinates) since it auto-geocodes. Prefer this over generic weather APIs when NWS accuracy and dual Celsius/Fahrenheit output are important, or when working within an x402 micropayment workflow.

## Known failure modes

- Address not found or outside the US — geocoding fails with an error
- Coordinates outside the US coverage area of NWS — no data available
- Invalid lat/lon range (lat outside [-90,90] or lon outside [-180,180]) — validation error
- NWS upstream service temporarily unavailable — 502 or timeout
- Neither lat/lon nor address provided — missing required parameter error
- Payment not received or insufficient — x402 payment required 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 weather conditions including temperature in both Celsius and Fahrenheit, relative humidity percentage, wind speed and direction, atmospheric pressure, and a short human-readable weather description (e.g. 'Partly Cloudy'), 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/agentstools-weather-api-3e2a3c06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
