# X402 Hub Weather API (weather138)

> X402 Hub Weather API (weather138) 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).

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

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/weather138
- 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-weather138-38519cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yIQITydgAtQUgfPwyloPx

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-weather138-38519cc8 -d '<json body>'
```

Example prompt: What's the current weather in San Francisco? Use the x402 weather138 endpoint with 'San Francisco' as the query.

## When to prefer this

Use this endpoint when you need weather data and are operating in a micropayment-enabled x402 environment on Base, especially when you want pay-per-call access without a subscription and at a low per-call cost of $0.075 USDC.

## Known failure modes

- Payment failure if insufficient USDC balance on Base (402 response)
- Invalid or ambiguous query string returns empty or error data
- Upstream weather API unavailability causes failed or stale response
- Malformed query parameter returns 400 or unexpected data structure

## 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 provider, including conditions, temperature, and forecast details 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-weather138-38519cc8/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)
