# AgentUtility Current Weather

> AgentUtility Current Weather is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns current weather conditions and a multi-day forecast for any latitude/longitude, with optional hourly data, in metric or imperial units.

## Facts

- Endpoint: POST https://x402.agentutility.ai/current-weather?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-current-weather-fe2881bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F3PnFl6NVL9miuGasonP8

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 agentutility-current-weather-fe2881bc -d '<json body>'
```

Example prompt: What's the current weather and 5-day forecast for San Francisco (37.7749, -122.4194) in Fahrenheit, including hourly breakdowns?

## When to prefer this

Choose this endpoint when you need pay-per-call weather data with no API key or account setup, payable in USDC via x402 on Base or Solana. It is ideal for AI agents that need current conditions plus a short-range forecast (up to 7 days) for any global coordinate, with optional hourly granularity. Prefer it over free-tier weather APIs when you want a single consistent pay-as-you-go interface across many API types in the agentutility catalog. If you need historical climate data, air quality, or severe weather alerts, look for a more specialized endpoint.

## Known failure modes

- Latitude out of range [-90,90] or longitude out of range [-180,180] returns a validation error
- forecast_days outside 1-7 returns an error
- Missing required latitude or longitude fields returns a 400-level error
- x402 payment failure or insufficient USDC balance blocks the request
- Temporary Open-Meteo upstream outage may cause 5xx or timeout responses

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

A JSON object containing: current conditions (temperature, apparent temperature, humidity, wind speed/direction, precipitation, weather code, is_day flag, timestamp); a daily array covering up to 7 days (date, min/max temperature, precipitation, precipitation probability, weather code, sunrise, sunset, UV index max); optionally hourly arrays for temperature, precipitation, and weather code; plus location metadata (lat, lon, timezone, elevation) and the units used. The source is Open-Meteo.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "latitude",
      "longitude"
     ],
     "properties": {
      "units": {
       "enum": [
        "metric",
        "imperial"
       ],
       "type": "string",
       "description": "'metric' (°C, km/h, mm) or 'imperial' (°F, mph, inch). Default 'metric'."
      },
      "hourly": {
       "type": "boolean",
       "description": "If true, include hourly temperature, precipitation, and weather code arrays. Default false."
      },
      "latitude": {
       "type": "number",
       "description": "Decimal degrees, range [-90, 90]. Positive north."
      },
      "longitude": {
       "type": "number",
       "description": "Decimal degrees, range [-180, 180]. Positive east."
      },
      "forecast_days": {
       "type": "number",
       "description": "Number of forecast days, 1-7. Default 3."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "daily": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "sunset": {
          "type": "string"
         },
         "sunrise": {
          "type": "string"
         },
         "uv_index_max": {
          "type": "number"
         },
         "weather_code": {
          "type": "integer"
         },
         "temperature_max": {
          "type": "number"
         },
         "temperature_min": {
          "type": "number"
         },
         "precipitation_mm": {
          "type": "integer"
         },
         "precipitation_probability_max": {
          "type": "integer"
         }
        }
       }
      },
      "units": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "current": {
       "type
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "daily": [
   {
    "date": "2026-05-06",
    "sunset": "2026-05-06T20:11",
    "sunrise": "2026-05-06T06:08",
    "uv_index_max": 7.5,
    "weather_code": 3,
    "temperature_max": 67.3,
    "temperature_min": 53.1,
    "precipitation_mm": 0,
    "precipitation_probability_max": 5
   }
  ],
  "units": "imperial",
  "source": "https://open-meteo.com",
  "current": {
   "time": "2026-05-06T13:00",
   "is_day": true,
   "wind_speed": 8.2,
   "temperature": 62.1,
   "humidity_pct": 78,
   "weather_code": 3,
   "precipitation": 0,
   "wind_direction_deg": 270,
   "apparent_temperature": 60.4
  },
  "location": {
   "lat": 37.7749,
   "lon": -122.4194,
   "timezone": "America/Los_Angeles",
   "elevation_m": 18
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-current-weather-fe2881bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
