# Otto AI Weather Forecast

> Otto AI Weather Forecast is a paid API for AI agents from x402.ottoai.services, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns current conditions and daily forecast for any city or lat/lon coordinate via a pay-per-call x402 endpoint

## Facts

- Endpoint: GET https://x402.ottoai.services/weather
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/otto-ai-weather-forecast-x402-6019a944
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lYSAo_aB8SsYeOtSs4kq2

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 otto-ai-weather-forecast-x402-6019a944
```

Example prompt: What's the current weather and 5-day forecast for London — give me temperature, wind, humidity, and chance of rain each day?

## When to prefer this

Choose this endpoint when you need real-time or near-real-time weather data (current conditions + short-range daily forecast) for any global city or coordinate, especially when operating in an x402 micropayment context on Base, Polygon, or Solana. At $0.001 per call it is extremely cost-effective for one-off lookups. Prefer over scraping or free-tier APIs when you need structured JSON output with freshness metadata and reliability guarantees.

## Known failure modes

- Unknown or misspelled city name returns an error or empty data
- Invalid lat/lon format causes a 400 bad request
- Payment not included or insufficient USDC causes a 402 Payment Required response
- Network timeout or upstream weather provider outage returns degraded or stale data
- Location string ambiguity may resolve to wrong city

## How this service works

Live weather for any city or lat/lon worldwide. Returns current conditions — temperature, feels-like, humidity, wind and sky — plus a 5-day forecast with daily highs/lows and precipitation probability. City names auto-geocode (no coordinates needed). Refreshed hourly with transparent freshness metadata. Keyless, pay-per-call, agent-ready JSON.

## Output

Returns a JSON object with current conditions (temperature in Celsius, feels-like, wind speed in kph, humidity percentage, conditions string, observation timestamp) and a daily forecast array with high/low temps, conditions, and precipitation probability percentage for upcoming days, plus resolved location name, country, lat/lon, and freshness metadata.

## 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": [
      "location"
     ],
     "properties": {
      "location": {
       "type": "string",
       "description": "City name (e.g. \"Tokyo\", \"São Paulo\") or a \"lat,lon\" pair (e.g. \"51.5,-0.12\")"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status"
     ],
     "properties": {
      "data": {},
      "meta": {
       "type": "object"
      },
      "reason": {
       "type": "string",
       "description": "status=unavailable only; every >=400 is UNCHARGED"
      },
      "status": {
       "enum": [
        "success",
        "unavailable"
       ],
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "lat": 51.50853,
   "lon": -0.12574,
   "daily": [
    {
     "date": "2026-06-24",
     "maxC": 21.4,
     "minC": 12.1,
     "conditions": "Partly cloudy",
     "precipProbPct": 10
    },
    {
     "date": "2026-06-25",
     "maxC": 23,
     "minC": 13.5,
     "conditions": "Clear sky",
     "precipProbPct": 5
    }
   ],
   "country": "United Kingdom",
   "current": {
    "tempC": 18.2,
    "windKph": 14,
    "conditions": "Partly cloudy",
    "feelsLikeC": 17.6,
    "observedAt": "2026-06-24T15:00",
    "humidityPct": 63
   },
   "location": "london",
   "generatedAt": "2026-06-24T15:05:00.000Z",
   "resolvedName": "London"
  },
  "meta": {
   "degraded": false,
   "validUntil": "",
   "generatedAt": "",
   "stalenessSec": 0
  },
  "status": "success"
 }
}
```

## More

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