# AgniHub Custom Weather API

> AgniHub Custom Weather API is a paid API for AI agents from api.agnichub.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Returns weather data via a paid POST endpoint using x402 micropayment protocol on the Base network

## Facts

- Endpoint: POST https://api.agnichub.xyz/v1/custom/weather/?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-agnichub-xyz-7437db6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xSy6Y9ldGkb8i9Tk3-dEY

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 api-agnichub-xyz-7437db6a -d '<json body>'
```

Example prompt: What's the current weather in Toronto right now? Use the agnichub weather API and pay the $0.01 USDC fee via Base.

## When to prefer this

Use this endpoint when you need weather data and are operating in an x402-compatible micropayment environment on the Base blockchain, particularly when integrating with the agnichub platform or when you need a low-cost ($0.01 USDC) per-call weather lookup with crypto-native payment settlement.

## Known failure modes

- Payment not provided or insufficient — 402 Payment Required response
- Invalid or missing location parameter — 400 Bad Request
- Unsupported location outside service coverage — may return empty or error
- Network/server error — 500 Internal Server Error
- Expired or invalid payment token — payment rejected

## How this service works

Pay with base

## Output

A JSON response containing current weather conditions and/or short-term forecast data for the requested location, returned after a successful x402 micropayment of $0.01 USDC on the Base network.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-agnichub-xyz-7437db6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agnichub.xyz](https://www.zero.xyz/host/api.agnichub.xyz/llms.txt)
