# 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.075/call, status unknown (last checked 2026-10-21).

Fetches weather data for a given location through one of 21 paid weather API endpoints, with each call billed via x402 micropayments at $0.075 USDC

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/weather-api/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.075/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-eb46d389
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T6oFbIRenGdtCte5_SUoA

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

Example prompt: Can you get me the current weather conditions for Tokyo using the x402 Weather API Hub?

## When to prefer this

Choose this endpoint when you need weather data and want to pay per-call via x402 USDC micropayments without a subscription, or when integrating weather lookups into an autonomous agent that handles payments programmatically. Useful when you want access to multiple weather data sources through a single unified hub.

## Known failure modes

- Invalid or unrecognized location query returns an error or empty data
- Payment failure if insufficient USDC balance for the $0.075 per-call fee
- Path parameter not matching a valid endpoint among the 21 available returns 404
- Network timeout or upstream RapidAPI provider unavailability

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a data object containing weather information sourced from the underlying RapidAPI weather provider, including current conditions, temperature, and other meteorological details depending on the specific path queried.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query (city name or lat,lon)"
  },
  "location": {
   "type": "string",
   "description": "Location identifier"
  }
 }
}
```

## 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-eb46d389/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)
