# X402 Hub AI Weather

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

Returns AI-powered weather information for a given query, paid per-call via x402 micropayments on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/ai-weather
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-ai-weather-28c2d50b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j3FuWcTpCGJT7FcaR1B4v

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-ai-weather-28c2d50b -d '<json body>'
```

Example prompt: What's the current weather in San Francisco — is it warm and sunny, or should I expect rain?

## When to prefer this

Choose this endpoint when you need AI-mediated weather lookups within a micropayment-gated ecosystem on Base, especially when building agents that already integrate x402 payment flows and need weather data without managing separate API keys or subscriptions.

## Known failure modes

- Missing or empty query string returns validation error
- Unrecognized or ambiguous location query may return empty or irrelevant data
- Payment failure via x402 protocol results in 402 response before data is returned
- Upstream weather API outage causes timeout or error in response data
- Malformed query may return generic or null data object

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object containing weather data from an upstream provider, including current conditions, temperature, and potentially forecast information for the queried location or time period.

## 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-ai-weather-28c2d50b/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)
