# X402 Hub – Visual Crossing Weather

> X402 Hub – Visual Crossing Weather is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Fetches weather data from Visual Crossing via a micropayment-gated proxy on Base using x402

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/visual-crossing
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-visual-crossing-weather-bc0f71c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bayC6X4VJqEB6TnG4hABk

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-visual-crossing-weather-bc0f71c3 -d '<json body>'
```

Example prompt: Can you get me the weather forecast for San Francisco for the next 5 days — I need temperature highs and lows plus any rain expected?

## When to prefer this

Choose this endpoint when you need weather data on a per-call pay-as-you-go basis without managing a Visual Crossing API subscription. It is ideal for agents that need occasional weather lookups and want to pay in USDC micropayments via x402 on Base rather than maintaining separate API keys.

## Known failure modes

- Invalid or unrecognized location query returns an error
- Malformed query string causes upstream API failure
- Payment failure (insufficient USDC balance) blocks the request with a 402 response
- Visual Crossing upstream API downtime propagates as a server error
- Missing required 'query' field returns a validation error

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a data object containing weather information from Visual Crossing, which may include current conditions, multi-day forecasts, historical observations, temperature, precipitation, wind speed, humidity, and other meteorological fields depending on the query.

## 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-visual-crossing-weather-bc0f71c3/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)
