# X402 Hub Weather API

> X402 Hub Weather API is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.075/call, status unknown (last checked 2026-09-16).

Fetches weather data for a given location or query via a micropayment-gated proxy to WeatherAPI.com

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/weatherapi
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-weather-api-c5871e73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zbZc0r931g24jniCYf9SG

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-hub-weather-api-c5871e73 -d '<json body>'
```

Example prompt: What's the current weather in San Francisco — temperature, conditions, and humidity?

## When to prefer this

Choose this endpoint when you need programmatic weather data access with per-call micropayment billing on Base (USDC), avoiding subscription API key management. Ideal for AI agents that need on-demand weather lookups without pre-negotiated API keys, or when building on the x402 payment rail for pay-as-you-go access.

## Known failure modes

- Invalid or unrecognized location query returns an error or empty data
- Payment failure (402) if x402 micropayment is not properly attached
- Upstream WeatherAPI.com outage results in proxy error
- Malformed query string causes upstream API rejection
- Rate limiting or quota exhaustion on the underlying WeatherAPI.com account

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

A JSON object containing weather data from WeatherAPI.com, including current conditions such as temperature, humidity, wind speed, weather description, and related meteorological fields for the queried location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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