# Agent Commerce Desk Current Weather Forecast

> Agent Commerce Desk Current Weather Forecast is a paid API for AI agents from x402-wallet-readiness-service.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns current weather conditions and optional multi-day forecast for a given latitude/longitude coordinate pair, sourced from Open-Meteo.

## Facts

- Endpoint: GET https://x402-wallet-readiness-service.vercel.app/api/x402/weather/current
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-commerce-desk-current-weather-forecast-61d1e1e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jdHzUm_MVhIg-AqBVRUC_

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-commerce-desk-current-weather-forecast-61d1e1e3
```

Example prompt: What's the current weather and 3-day forecast for San Francisco (latitude 37.7749, longitude -122.4194) in Celsius with wind speed in km/h?

## When to prefer this

Use this endpoint when an agent needs real-time or short-range forecast weather data keyed to precise geographic coordinates (lat/lon), especially in a micropayment (x402/USDC) context. Prefer over general-purpose weather APIs when operating in a Base blockchain payment flow or when per-call cost accountability is required.

## Known failure modes

- Missing required latitude or longitude returns a 400/422 validation error
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) causes schema rejection
- Payment not provided or invalid results in 402 Payment Required
- Upstream Open-Meteo API unavailable causes 502 or timeout
- forecast_days exceeding 7 or below 1 causes validation failure
- Invalid enum value for temperature_unit or wind_speed_unit returns 400

## How this service works

Checks Base wallets for USDC receiving readiness, publishes paid x402 data APIs, and sells fixed-price agent payment, developer-tool, VPS, wallet-risk, and QA implementation work.

## Output

Returns a JSON object with current conditions (temperature, apparent temperature, humidity, wind speed/direction, precipitation, weather code) and optionally up to 7 days of daily forecast rows (max/min temperature, precipitation sum, precipitation probability). Includes request echo and source attribution.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "latitude": 40.7128,
   "longitude": -74.006,
   "forecast_days": 3,
   "wind_speed_unit": "mph",
   "temperature_unit": "fahrenheit"
  }
 }
}
```

## 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": [
      "latitude",
      "longitude"
     ],
     "properties": {
      "latitude": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "WGS84 latitude."
      },
      "longitude": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "WGS84 longitude."
      },
      "forecast_days": {
       "type": "integer",
       "maximum": 7,
       "minimum": 1,
       "description": "Number of daily forecast rows to return."
      },
      "wind_speed_unit": {
       "enum": [
        "kmh",
        "ms",
        "mph",
        "kn"
       ],
       "type": "string"
      },
      "temperature_unit": {
       "enum": [
        "celsius",
        "fahrenheit"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "daily": [
   {
    "date": "2026-05-24",
    "temperatureMax": 19.8,
    "temperatureMin": 12.4,
    "precipitationSum": 0.1,
    "precipitationProbabilityMaxPct": 12
   }
  ],
  "source": "Open-Meteo public forecast API",
  "current": {
   "time": "2026-05-24T12:00",
   "windSpeed": 16.1,
   "temperature": 18.2,
   "weatherCode": 2,
   "precipitation": 0,
   "apparentTemperature": 17.5,
   "relativeHumidityPct": 72,
   "windDirectionDegrees": 260
  },
  "request": {
   "latitude": 37.7749,
   "longitude": -122.4194,
   "forecastDays": 3,
   "windSpeedUnit": "kmh",
   "temperatureUnit": "celsius"
  },
  "service": "Agent Commerce Desk Current Weather Forecast Snapshot"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-commerce-desk-current-weather-forecast-61d1e1e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-wallet-readiness-service.vercel.app](https://www.zero.xyz/host/x402-wallet-readiness-service.vercel.app/llms.txt)
