# TokenGuard Weather Endpoint

> TokenGuard Weather Endpoint is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Returns current weather conditions and forecast for a location, served from a crypto/DeFi-focused API platform via x402 micropayments

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/weather?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-weather-endpoint-0a47c34b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Cf4SJy5XqsgUlQV9K8fM

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 tokenguard-weather-endpoint-0a47c34b -d '<json body>'
```

Example prompt: What's the current weather in Tokyo right now — give me the temperature in Celsius, humidity, wind speed, and a few days of forecast?

## When to prefer this

Use this endpoint when you need weather data and are already operating in a crypto/Web3 payment context using x402 micropayments on Base, and want a low-cost ($0.005 USDC) per-call pricing model. It is a convenient choice if your agent stack already supports x402 payment flows.

## Known failure modes

- Invalid or unrecognized location name returns an error
- Payment not completed via x402 results in 402 Payment Required
- Network timeout from the Hugging Face Space hosting environment
- Malformed POST body causes 400 Bad Request
- Location outside supported regions may return empty or null forecast data

## How this service works

Current weather + multi-day forecast for any city or lat/lon via Open-Meteo. Temperature, humidity, wind, precipitation, WMO condition codes.

## Output

Returns a JSON object with current conditions (temperature in Celsius, wind speed in km/h, weather condition string, humidity percentage), plus a forecast array with daily date, condition, and max/min temperatures, along with the resolved location name and timezone string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "location": {
   "type": "string",
   "description": "City name or 'lat,lon' (default Tokyo)"
  },
  "forecast_days": {
   "type": "integer",
   "description": "Forecast days 1-7 (default 1)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "current": {
   "temp_c": 22.8,
   "wind_kmh": 4.5,
   "condition": "Overcast",
   "humidity_pct": 92
  },
  "forecast": [
   {
    "date": "2026-06-28",
    "condition": "Heavy rain",
    "temp_max_c": 22.8,
    "temp_min_c": 20.2
   }
  ],
  "location": "Tokyo, Japan",
  "timezone": "Asia/Tokyo"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-weather-endpoint-0a47c34b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
