# x402 Weather API Hub – OpenWeatherMap Proxy

> x402 Weather API Hub – OpenWeatherMap 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-19).

Fetches weather data from OpenWeatherMap via a micropayment-gated proxy endpoint, accepting a location query and returning structured weather data.

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/open-weather-map/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-hub-openweathermap-proxy-01a79a11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R_Yy2zyMfrqmG4Y_CzFB-

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-openweathermap-proxy-01a79a11 -d '<json body>'
```

Example prompt: Can you get me the current weather data for London using the OpenWeatherMap hub — just pass the city name and tell me what comes back?

## When to prefer this

Choose this endpoint when you need OpenWeatherMap data and want to pay per-call via x402 USDC micropayments without managing a separate OpenWeatherMap API key. Ideal for AI agents in crypto-native or x402-enabled environments that need lightweight, pay-as-you-go weather lookups without subscription overhead.

## Known failure modes

- Invalid or unrecognized city name returns an error or empty data
- Missing 'query' parameter causes a 400-level validation error
- Payment failure or insufficient USDC balance blocks the request with a 402 response
- RapidAPI or OpenWeatherMap upstream outage results in 500-level error or timeout
- Ambiguous location query (e.g. common city name without country) may return unexpected results

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a JSON object with a 'data' field containing the raw weather response from the underlying OpenWeatherMap/RapidAPI provider, typically including temperature, weather conditions, humidity, wind, and related meteorological fields for the queried location.

## Request schema (JSON Schema)

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

## 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-openweathermap-proxy-01a79a11/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)
