# x402 Weather API

> x402 Weather API is a paid API for AI agents from agentx402pay.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Returns live current weather conditions for a specified city, powered by Open-Meteo data

## Facts

- Endpoint: GET https://agentx402pay.com/api/weather?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-23025838
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CYWUOgEmCZbW7tKGhQ49w

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-23025838
```

Example prompt: What's the current weather in Tokyo right now — temperature, conditions, all of it?

## When to prefer this

Choose this endpoint when you need lightweight, real-time current weather conditions for a city by name and are operating in an x402 micropayment context. It is ideal for agents that need quick weather lookups without complex setup, leveraging Open-Meteo as a reliable free data source behind a simple pay-per-call interface. Prefer alternatives if you need forecast data, historical weather, or weather by coordinates rather than city name.

## Known failure modes

- Invalid or unrecognized city name returns an error or defaults to New York
- City parameter omitted defaults to New York rather than returning an error
- Ambiguous city names (e.g. 'Springfield') may resolve to an unexpected location
- Open-Meteo upstream downtime may cause request failures
- Payment of $0.01 USDC required per call; missing payment results in 402 response

## How this service works

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

## Output

Returns live current weather conditions for the requested city, including temperature and meteorological conditions sourced from Open-Meteo. Response is a JSON object containing real-time weather data for the specified location.

## 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"
    }
   }
  }
 }
}
```

## More

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