# x402 Weather API Hub

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

Fetches weather data for a given location through a micropayment-gated hub of 21 RapidAPI weather endpoints, paid per-call via x402 USDC micropayments

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/ai-weather/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-hub-e84f59bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X4lAWP2ncuOWOwCbfpvAW

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-hub-e84f59bd -d '<json body>'
```

Example prompt: What's the current weather in San Francisco? Use the x402 weather hub to look it up — query it with 'San Francisco' as the location.

## When to prefer this

Choose this endpoint when you need pay-per-call weather data with no subscription commitment, using USDC micropayments via the x402 protocol. Ideal for AI agents that need on-demand weather lookups without managing API keys for individual weather providers, leveraging the hub's access to 21 different RapidAPI weather endpoints.

## Known failure modes

- Payment failure or insufficient USDC balance causing 402 rejection
- Invalid or unrecognized location string returning empty or error response
- Underlying RapidAPI provider downtime causing upstream fetch failure
- Malformed query input causing validation error
- Rate limiting or quota exhaustion on the underlying provider

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

A JSON object containing a 'data' field with weather information returned by the underlying RapidAPI provider, including conditions such as temperature, sky state, humidity, and related forecast data for the queried location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query string"
  },
  "location": {
   "type": "string",
   "description": "City or coordinates"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from the underlying RapidAPI provider"
  }
 }
}
```

## More

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