# x402 Weather API

> x402 Weather API is a paid API for AI agents from x402tap.com, paid per call via x402, $0.001/call, live (last probed 2026-10-12, last successful call 2026-09-24).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Returns live current weather conditions (temperature, humidity, wind, feels-like) for any city via Open-Meteo

## Facts

- Endpoint: GET https://x402tap.com/api/weather?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-12
- Last successful call: 2026-09-24
- Success rate: 100% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-270113c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n8Qz7wFXXA36cw_Fc6o1r

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 x402-weather-api-270113c6
```

Example prompt: What's the current weather in Austin — temperature, humidity, wind speed, and what it feels like outside?

## When to prefer this

Choose this endpoint when you need real-time, point-in-time weather conditions for a specific city and only need current conditions (not forecasts). It is lightweight, costs only $0.001 USDC per call, and returns a clean structured JSON response. Prefer it over general web search for weather when you need machine-readable structured output rather than natural language text.

## Known failure modes

- Unrecognized or misspelled city name may return an error or default to New York
- Network or upstream Open-Meteo outage may result in a timeout or 5xx error
- Very small or ambiguous city names may resolve to the wrong location

## How this service works

Live current weather conditions for any city, sourced from Open-Meteo

## Output

A JSON object with the city name and country, observation timestamp, current weather description (e.g. 'partly cloudy'), temperature in Fahrenheit, feels-like temperature, wind speed in mph, humidity percentage, and the source (open-meteo.com).

## 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",
     "properties": {
      "city": {
       "type": "string",
       "description": "City name to fetch live current weather for (defaults to New York)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "report": {
   "weather": "partly cloudy",
   "windMph": 7,
   "feelsLike": 94,
   "temperature": 91,
   "humidityPercent": 48
  },
  "source": "open-meteo.com",
  "location": "Austin, Texas, United States",
  "observedAt": "2026-08-15T12:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-weather-api-270113c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402tap.com](https://www.zero.xyz/host/x402tap.com/llms.txt)
