# x402-factory.com Weather Window Forecast

> x402-factory.com Weather Window Forecast is a paid API for AI agents from x402-factory.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Summarizes a ≤12-hour time window at a coordinate into decision-ready weather numbers (rain probability, precipitation, temp range, max gust, comfort index) plus a plain-English verdict.

## Facts

- Endpoint: GET https://x402-factory.com/v1/forecast/window
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-factory-com-weather-window-forecast-afb63ebb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_APTlFc6Kl7t695qEZeUss

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 x402-factory-com-weather-window-forecast-afb63ebb
```

Example prompt: What's the rain probability, temperature range, comfort score, and overall verdict for the area around 47.6062° N, 122.3321° W this Sunday from 10:00am to 4:00pm Pacific time — I need to decide whether to hold an outdoor market there.

## When to prefer this

Use this endpoint when you need a compact, decision-ready weather summary for a specific short time window (≤12 hours) at a precise coordinate, and want a pre-computed comfort index and plain-English verdict rather than raw hourly data. Prefer this over general weather APIs when building event, delivery, or travel planning agents that need a binary go/no-go signal with supporting numbers in a single call.

## Known failure modes

- Window exceeds 12 hours — endpoint may reject or truncate
- Invalid or out-of-range lat/lon coordinates return a 400 error
- start datetime after end datetime causes validation failure
- Datetime format not ISO 8601 with timezone returns schema error
- Payment of 0.02 USDC not completed via x402 returns 402 Payment Required
- Location over ocean or polar region may have reduced forecast quality
- Future window beyond forecast horizon (e.g. >10 days out) may return low-confidence results

## How this service works

One-call answer for a specific time window: rain odds, temps, comfort, verdict — Summarizes a ≤12-hour window at a coordinate into decision-ready numbers (rain probability, expected precip, temp range in °C, max gust, comfort index) plus a one-sentence plain-English verdict. Built for agents planning events, deliveries, and travel.

## Output

Returns a JSON object with rain_probability (0–1), expected_precip_mm, temp_range with low and high in °C, wind_max in km/h or m/s, comfort_index (0–1), an array of severity_flags (e.g. 'high wind', 'heavy rain'), and a one-sentence plain-English verdict summarizing the window, plus meta information about the forecast.

## 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": [
      "lat",
      "lon"
     ],
     "properties": {
      "end": {
       "type": "string",
       "format": "date-time",
       "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
       "description": "Window end (ISO-8601), ≤12h after start. Default: start + 6h."
      },
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "start": {
       "type": "string",
       "format": "date-time",
       "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
       "description": "Window start (ISO-8601). Default: the top of the next hour."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "rain_probability",
        "expected_precip_mm",
        "temp_range",
        "wind_max",
        "comfort_index",
        "severity_flags",
        "verdict"
       ],
       "properties": {
        "verdict": {
         "type": "string"
        },
        "wind_max": {
         "type": "number"
        },
        "temp_range": {
         "type": "object",
         "required": [
          "low",
          "high"
         ],
         "properties": {

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "verdict": "Looks good: mild, highs near 69.1°F, low rain risk.",
   "wind_max": 29.3,
   "temp_range": {
    "low": 18.1,
    "high": 20.6
   },
   "comfort_index": 0.86,
   "severity_flags": [],
   "rain_probability": 0.12,
   "expected_precip_mm": 0
  },
  "meta": {
   "docs": "https://x402-factory.com/docs/weather.forecast-window",
   "sources": [
    "stub-model"
   ],
   "version": "1.0.0",
   "endpoint": "/v1/forecast/window",
   "data_mode": "live",
   "freshness": "realtime",
   "request_id": "req_00000000",
   "generated_at": "2026-08-21T03:58:58.168Z"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-factory-com-weather-window-forecast-afb63ebb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-factory.com](https://www.zero.xyz/host/x402-factory.com/llms.txt)
