# AmanChain Weather Now + Forecast

> AmanChain Weather Now + Forecast is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.001866/call, status unknown (last checked 2026-09-14).

Returns current weather conditions and a 3-day forecast for any city, paid per call via x402 in USDC on Base

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-weather
- Price: $0.001866/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-weather-now-forecast-b0bec6a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Gsf9Qtpba-qGsEjZqNJ6

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 amanchain-weather-now-forecast-b0bec6a3 -d '<json body>'
```

Example prompt: What's the current weather and 3-day forecast for Tokyo right now?

## When to prefer this

Choose this endpoint when you need a quick, no-account, no-API-key weather lookup paid per call in USDC via x402 — ideal for agent workflows that require weather data without managing subscriptions or credentials. Best for scenarios needing both current conditions and a short-range (3-day) forecast in a single call.

## Known failure modes

- Unknown or misspelled city name returns an error or empty result
- Network timeout from the AmanChain relay worker
- Insufficient USDC balance for x402 payment fails the call before execution
- Malformed JSON body (missing serviceId or request field) returns a 4xx error
- Upstream weather data provider outage causes stale or missing data

## How this service works

Weather forecast API — current conditions plus hourly and 3-day weather forecast with temperature, wind and humidity for any city worldwide; live weather data for agents. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-weather","request":"<input>"}.

## Output

Returns current weather conditions (temperature, description, humidity, wind) and a 3-day forecast for the requested city, including daily highs/lows and conditions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-weather-now-forecast-b0bec6a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
