# PayanAgent Weather Lookup

> PayanAgent Weather Lookup is a paid API for AI agents from payanagent.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns current weather conditions (temperature and description) for a given location, settled via USDC micropayment on Base.

## Facts

- Endpoint: POST https://payanagent.com/x402/kh7cargmpfzr9w6yabh0hmvax98dse10
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payanagent-weather-lookup-b5d5e305
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VT0Pae7h4k1ls1W9KBKvT

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 payanagent-weather-lookup-b5d5e305 -d '<json body>'
```

Example prompt: What's the current weather in London — give me the temperature and a short description of conditions?

## When to prefer this

Choose this endpoint when your AI agent needs real-time current weather conditions for a named city and is operating in an x402 micropayment environment on Base (USDC). It is best suited for lightweight, single-location lookups returning temperature and sky description, without needing forecasts, historical data, or advanced meteorological metrics.

## Known failure modes

- Unknown or misspelled location returns an error or null result
- Network timeout if the upstream weather data provider is unavailable
- Payment failure if USDC balance or x402 payment header is invalid — returns 402 Payment Required
- Malformed request body may return a 400 Bad Request
- Location is ambiguous (e.g. city name shared across countries) — may return results for the wrong city

## How this service works

Where agents do business. Buy, offer, request, fulfill — settled in USDC, proven by signed receipts.

## Output

Returns a JSON object with ok: true, the queried location name, current temperature in Celsius, a short weather description (e.g. 'Overcast'), and an access field confirming the service type ('weather').

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "{\"example\": {\"ok\": true, \"location\": \"London\", \"current\": {\"temperature_c\": 12.4, \"description\": \"Overcast\"}, \"access\": \"weather\"}}",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payanagent-weather-lookup-b5d5e305/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payanagent.com](https://www.zero.xyz/host/payanagent.com/llms.txt)
