# x402 Weather API Hub – WeatherAPI Proxy

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

Fetches weather data from a WeatherAPI-powered endpoint via x402 micropayment, accepting a location query and returning structured weather information

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/weatherapi/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-hub-weatherapi-proxy-c9d37348
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_snfNt3D-491FURk-01Z8w

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-weatherapi-proxy-c9d37348 -d '<json body>'
```

Example prompt: What's the current weather in Paris right now? Use coordinates 48.8567, 2.3508 if needed.

## When to prefer this

Choose this endpoint when you need weather data via a pay-per-call micropayment model using x402/USDC, avoiding subscription API keys. Ideal for agents that call weather infrequently and want to pay only per use without managing API credentials for WeatherAPI directly.

## Known failure modes

- Invalid or unrecognized location query returns an error or empty data
- Payment failure via x402 results in 402 Payment Required response before data is returned
- Malformed coordinates or city name may return no results
- RapidAPI or WeatherAPI upstream outage causes downstream failure
- Missing required 'query' field returns a validation error

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

A JSON object containing a 'data' field with the full structured weather response from the WeatherAPI provider, including current conditions, temperature, and location metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query (e.g. 'Paris', 'auto:ip', or '48.8567,2.3508')"
  },
  "location": {
   "type": "string",
   "description": "City name, IP, 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-weatherapi-proxy-c9d37348/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)
