# Agent Data Desk Weather

> Agent Data Desk Weather is a paid API for AI agents from x402-seller.zshnfaizal.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns current weather conditions, 24-hour forecast, and air quality data for a given city or coordinates, billed per-call via USDC on Base.

## Facts

- Endpoint: GET https://x402-seller.zshnfaizal.workers.dev/v1/weather
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-desk-weather-96dea87c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__jx8IPbDb77LYn_qeuCYB

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 agent-data-desk-weather-96dea87c
```

Example prompt: What's the weather like right now in Chicago — give me the current temperature in Fahrenheit, humidity, wind, and whether it's expected to rain in the next 24 hours.

## When to prefer this

Choose this endpoint when you need a no-account, pay-per-call weather lookup with combined current conditions, 24-hour hourly forecast, and air quality data in a single response. It is ideal for AI agents that need weather data on-demand without managing API keys or subscriptions, and for workflows where USDC micropayments on Base are already in use. Prefer alternatives if you need multi-day extended forecasts beyond 24 hours, historical weather data, or weather radar imagery.

## Known failure modes

- City name not recognized — returns error if the city string cannot be geocoded
- Missing required parameter — omitting both city and lat+lon returns a 400-level error
- Payment failure — x402 micropayment not completed or insufficient USDC balance blocks the request
- Rate or network error from upstream Open-Meteo — may return a 502 or timeout
- Invalid coordinate range — lat outside -90..90 or lon outside -180..180 causes a validation error

## How this service works

Pay-per-call data for AI agents: weather ($0.005), defi_yields ($0.002), token_balance ($0.002), markdown ($0.01). USDC on Base mainnet via x402 v2; no API keys, no accounts.

## Output

A JSON object containing: location metadata (name, lat/lon, timezone, country), current conditions (temperature in C and F, feels-like, humidity, wind speed/direction, precipitation, weather description, is_day flag), a next_24h block with hourly forecasts and aggregate daily high/low/precipitation/dominant weather, an air_quality block (PM2.5, PM10, ozone, US AQI with category), and a source block indicating Open-Meteo as the data provider with a fetched_at timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "city"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude (-90..90). Use with lon instead of city."
      },
      "lon": {
       "type": "number",
       "description": "Longitude (-180..180). Use with lat instead of city."
      },
      "city": {
       "type": "string",
       "description": "City name, e.g. Chicago or 'Paris, FR'. Required unless lat+lon are given."
      },
      "units": {
       "enum": [
        "metric",
        "imperial"
       ],
       "type": "string",
       "description": "Primary unit system for the compact fields. Both C and F are always included for temperature."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "location",
      "current",
      "next_24h",
      "source"
     ],
     "properties": {
      "source": {
       "type": "object"
      },
      "current": {
       "type": "object",
       "properties": {
        "time": {
         "type": "string"
        },
        "is_day": {
         "type": "integer"
        },
        "temp_c": {
         "type": "number"
        },
        "temp_f": {
         "type": "number"
        },
        "weather": {
         "type": "string"
        },
        "wind_kmh": {
         "type": "number"
        },
        "wind_mph": {
         "type": "number"
        },
        "feels_like_c": {
         "type": "number"
        },
        "humidity_pct": {
         "type": "number"
        },
        "weather_code": {
         "type": "integer"
        },
        "wind_dir_deg": {
         "type": "number"
        },
        "precipitation_mm": {
         "type": "number"
        }
       }
      },
      "location": {
       "type": "object",
       "properties": {
        "lat": {
         "type": "number"
        },
        "lon": {
         "type": "number"
        },
        "name"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": {
   "weather": "open-meteo.com",
   "fetched_at": "2026-08-29T20:05:12.000Z",
   "air_quality": "open-meteo.com"
  },
  "current": {
   "time": "2026-08-29T20:00",
   "is_day": 0,
   "temp_c": 21.4,
   "temp_f": 70.5,
   "weather": "Clear sky",
   "wind_kmh": 10.6,
   "wind_mph": 6.6,
   "feels_like_c": 22.3,
   "humidity_pct": 76,
   "weather_code": 0,
   "wind_dir_deg": 152,
   "precipitation_mm": 0
  },
  "location": {
   "lat": 41.85003,
   "lon": -87.65005,
   "name": "Chicago",
   "admin1": "Illinois",
   "country": "US",
   "timezone": "America/Chicago"
  },
  "next_24h": {
   "hourly": [
    {
     "time": "2026-08-29T21:00",
     "temp_c": 20.9,
     "weather_code": 1,
     "precip_prob_pct": 5
    }
   ],
   "temp_max_c": 27.3,
   "temp_min_c": 18.1,
   "precip_total_mm": 0.2,
   "dominant_weather": "Partly cloudy",
   "precip_prob_max_pct": 30
  },
  "air_quality": {
   "pm10": 6.6,
   "time": "2026-08-29T20:00",
   "ozone": 83,
   "pm2_5": 6.3,
   "us_aqi": 55,
   "us_aqi_category": "Moderate"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-desk-weather-96dea87c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller.zshnfaizal.workers.dev](https://www.zero.xyz/host/x402-seller.zshnfaizal.workers.dev/llms.txt)
