X

x402-factory · Forecast Window

by x402-factory

GETBase

$0.02

per call · USD Coin on Base

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.

Endpoint

GET https://x402-factory.com/v1/forecast/window

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402-factory.com/v1/forecast/window", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402-factory.com/v1/forecast/window?end=2026-07-19T22%3A00%3A00Z&lat=40.7829&lon=-73.9654&start=2026-07-19T16%3A00%3A00Z" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

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

Payment details

Pay to0xcc42ed39a06b6cf3f484307ef76b88bf56fb305f
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from x402-factory & similar services