# 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-15).

Fetches weather data for a given query via a micropayment-protected proxy endpoint on Base

## Facts

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

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-1146b5c9 -d '<json body>'
```

Example prompt: What's the current weather in London right now? Use the X402 Hub weather API with the query 'London'.

## When to prefer this

Choose this endpoint when you need weather data and are operating in a Web3/x402 micropayment context on Base, paying per-call in USDC at $0.075 per request without requiring a subscription or API key. Prefer it for lightweight, on-demand weather lookups in agent workflows that already handle x402 payment flows.

## Known failure modes

- Payment not included or insufficient — returns 402 Payment Required
- Invalid or empty query string — may return upstream API error
- Location not recognized by upstream weather service — returns error or empty data
- Network timeout or upstream API unavailable — returns 5xx error
- Rate limiting from upstream provider — returns error in data field

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object with a 'data' field containing weather information from the upstream API, including current conditions, temperature, and related meteorological data 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-1146b5c9/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)
