# OpenWeather 5-Day Forecast via Locus x402

> OpenWeather 5-Day Forecast via Locus x402 is a paid API for AI agents from openweather.x402.paywithlocus.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Returns a 5-day weather forecast in 3-hour intervals (up to 40 timestamps) for a given latitude/longitude, with unit and language options.

## Facts

- Endpoint: POST https://openweather.x402.paywithlocus.com/openweather/forecast-5day
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openweather-5-day-forecast-via-locus-x402-230b6167
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9iojQOJLgtkajywPcBqC5

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 openweather-5-day-forecast-via-locus-x402-230b6167 -d '<json body>'
```

Example prompt: Can you get me the 5-day weather forecast in metric units for Tokyo (lat 35.6895, lon 139.6917), showing all 40 time slots?

## When to prefer this

Choose this endpoint when you need multi-day (up to 5-day) forecast data in 3-hour increments for a specific geographic coordinate, especially when you need structured JSON output with granular timestamps and support for multiple unit systems and languages. Prefer over current-conditions endpoints when planning ahead is required.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error response
- cnt value outside 1–40 range may be rejected or clamped
- Invalid units string falls back to standard or returns an error
- Payment failure or insufficient USDC balance blocks the request
- Invalid language code may return descriptions in English as fallback
- Network timeout or upstream OpenWeatherMap outage returns a 5xx error

## How this service works

Global weather data — current conditions, 5-day forecasts, hourly forecasts, air quality index with pollutants, geocoding, and One Call 3.0 with full weather suite and government alerts.

## Output

A JSON object containing up to 40 forecast entries in 3-hour increments over 5 days, including temperature, feels-like, min/max temps, pressure, humidity, weather description, wind speed and direction, cloudiness, and precipitation probability, along with payment settlement metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cnt": {
   "type": "number"
  },
  "lat": {
   "type": "number"
  },
  "lon": {
   "type": "number"
  },
  "lang": {
   "type": "string"
  },
  "units": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openweather-5-day-forecast-via-locus-x402-230b6167/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openweather.x402.paywithlocus.com](https://www.zero.xyz/host/openweather.x402.paywithlocus.com/llms.txt)
