78trust / 100

Demand Forecast

by handel.halowerk.com in Weather & location

x402 APIPassing, checked 5 h ago

Forecasts one SKU from a history you supply. The pipeline is fixed and fully disclosed in the response rather than hidden behind a score. The series is decomposed multiplicatively while every observation is positive and additively as soon as a zero or a negative appears, because a ratio is not defined there; the seasonal index is the median ratio per phase against a centred moving average, estimated only on periods that carry no promotion and no holiday so that a campaign in week twelve does…

POST
https://handel.halowerk.com/v1/demand-forecast
Price
$0.006
per call in USDC
Uptime
98.8%
last 30 days
Response time
123 ms
199 ms slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://handel.halowerk.com/v1/demand-forecast

Each call costs $0.006 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://handel.halowerk.com/v1/demand-forecast
content-type: application/json

{
  "backtest_periods": 4,
  "confidence_level": 0.9,
  "frequency": "weekly",
  "future_events": [
    {
      "period_start": "2026-06-15",
      "promotion": true
    }
  ],
  "history": [
    {
      "period_start": "2026-01-05",
      "quantity": 117
    },
    {
      "period_start": "2026-01-12",
      "quantity": 90
    },
    {
      "period_start": "2026-01-19",
      "quantity": 102
    },
    {
      "period_start": "2026-01-26",
      "quantity": 113
    },
    {
      "period_start": "2026-02-02",
      "promotion": true,
      "quantity": 191
    },
    {
      "period_start": "2026-02-09",
      "quantity": 104
    },
    {
      "period_start": "2026-02-16",
      "quantity": 115
    },
    {
      "period_start": "2026-02-23",
      "quantity": 120
    },
    {
      "period_start": "2026-03-02",
      "quantity": 145
    },
    {
      "holiday": true,
      "period_start": "2026-03-09",
      "quantity": 150
    },
    {
      "period_start": "2026-03-16",
      "quantity": 125
    },
    {
      "period_start": "2026-03-23",
      "quantity": 136
    },
    {
      "period_start": "2026-03-30",
      "quantity": 154
    },
    {
      "period_start": "2026-04-06",
      "promotion": true,
      "quantity": 188
    },
    {
      "period_start": "2026-04-13",
      "quantity": 137
    },
    {
      "period_start": "2026-04-20",
      "quantity": 144
    },
    {
      "period_start": "2026-04-27",
      "quantity": 174
    },
    {
      "period_start": "2026-05-04",
      "quantity": 133
    },
    {
      "holiday": true,
      "period_start": "2026-05-11",
      "quantity": 199
    },
    {
      "period_start": "2026-05-18",
      "quantity": 159
    },
    {
      "period_start": "2026-05-25",
      "quantity": 182
    },
    {
      "period_start": "2026-06-01",
      "quantity": 150
    }
  ],
  "horizon_periods": 4,
  "season_length_periods": 4
}

Parameters

ParameterTypeRequiredDescription
backtest_periodsintegerNoHow many of the last periods to hold back for the comparison against the baselines. Zero picks a quarter of the history, capped at the horizon. Default: 0.
confidence_levelnumberNoConfidence level of the prediction interval. One of: 0.8, 0.9, 0.95. Default: 0.9.
frequencystringYesLength of one period. Sets the default season length: 7 for daily, 52 for weekly, 12 for monthly. One of: daily, weekly, monthly.
future_eventsarray of objectNoPromotions and holidays you already know about for the forecast periods. Matched on period_start against the generated periods; an entry that matches no period is reported back as unmatched.
historyarray of objectYesThe demand history, one entry per period, oldest first. Periods must be consecutive and each period_start must be unique and ascending.
horizon_periodsintegerNoHow many periods to forecast. Default: 8.
season_length_periodsintegerNoOverride the season length in periods. Zero switches seasonality off. Omitted uses the default for the frequency.

Example response

The listing has no example response.

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.006.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://handel.halowerk.com/v1/demand-forecast' \
  -H 'content-type: application/json' \
  --data-raw '{"backtest_periods":4,"confidence_level":0.9,"frequency":"weekly","future_events":[{"period_start":"2026-06-15","promotion":true}],"history":[{"period_start":"2026-01-05","quantity":117},{"period_start":"2026-01-12","quantity":90},{"period_start":"2026-01-19","quantity":102},{"period_start":"2026-01-26","quantity":113},{"period_start":"2026-02-02","promotion":true,"quantity":191},{"period_start":"2026-02-09","quantity":104},{"period_start":"2026-02-16","quantity":115},{"period_start":"2026-02-23","quantity":120},{"period_start":"2026-03-02","quantity":145},{"holiday":true,"period_start":"2026-03-09","quantity":150},{"period_start":"2026-03-16","quantity":125},{"period_start":"2026-03-23","quantity":136},{"period_start":"2026-03-30","quantity":154},{"period_start":"2026-04-06","promotion":true,"quantity":188},{"period_start":"2026-04-13","quantity":137},{"period_start":"2026-04-20","quantity":144},{"period_start":"2026-04-27","quantity":174},{"period_start":"2026-05-04","quantity":133},{"holiday":true,"period_start":"2026-05-11","quantity":199},{"period_start":"2026-05-18","quantity":159},{"period_start":"2026-05-25","quantity":182},{"period_start":"2026-06-01","quantity":150}],"horizon_periods":4,"season_length_periods":4}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://handel.halowerk.com/v1/demand-forecast' \
  -H 'content-type: application/json' \
  --data-raw '{"backtest_periods":4,"confidence_level":0.9,"frequency":"weekly","future_events":[{"period_start":"2026-06-15","promotion":true}],"history":[{"period_start":"2026-01-05","quantity":117},{"period_start":"2026-01-12","quantity":90},{"period_start":"2026-01-19","quantity":102},{"period_start":"2026-01-26","quantity":113},{"period_start":"2026-02-02","promotion":true,"quantity":191},{"period_start":"2026-02-09","quantity":104},{"period_start":"2026-02-16","quantity":115},{"period_start":"2026-02-23","quantity":120},{"period_start":"2026-03-02","quantity":145},{"holiday":true,"period_start":"2026-03-09","quantity":150},{"period_start":"2026-03-16","quantity":125},{"period_start":"2026-03-23","quantity":136},{"period_start":"2026-03-30","quantity":154},{"period_start":"2026-04-06","promotion":true,"quantity":188},{"period_start":"2026-04-13","quantity":137},{"period_start":"2026-04-20","quantity":144},{"period_start":"2026-04-27","quantity":174},{"period_start":"2026-05-04","quantity":133},{"holiday":true,"period_start":"2026-05-11","quantity":199},{"period_start":"2026-05-18","quantity":159},{"period_start":"2026-05-25","quantity":182},{"period_start":"2026-06-01","quantity":150}],"horizon_periods":4,"season_length_periods":4}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.006 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.006" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.006 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhandel.halowerk.com%2Fv1%2Fdemand-forecast&method=POST
const res = await pay("https://handel.halowerk.com/v1/demand-forecast", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "backtest_periods": 4,
    "confidence_level": 0.9,
    "frequency": "weekly",
    "future_events": [
      {
        "period_start": "2026-06-15",
        "promotion": true
      }
    ],
    "history": [
      {
        "period_start": "2026-01-05",
        "quantity": 117
      },
      {
        "period_start": "2026-01-12",
        "quantity": 90
      },
      {
        "period_start": "2026-01-19",
        "quantity": 102
      },
      {
        "period_start": "2026-01-26",
        "quantity": 113
      },
      {
        "period_start": "2026-02-02",
        "promotion": true,
        "quantity": 191
      },
      {
        "period_start": "2026-02-09",
        "quantity": 104
      },
      {
        "period_start": "2026-02-16",
        "quantity": 115
      },
      {
        "period_start": "2026-02-23",
        "quantity": 120
      },
      {
        "period_start": "2026-03-02",
        "quantity": 145
      },
      {
        "holiday": true,
        "period_start": "2026-03-09",
        "quantity": 150
      },
      {
        "period_start": "2026-03-16",
        "quantity": 125
      },
      {
        "period_start": "2026-03-23",
        "quantity": 136
      },
      {
        "period_start": "2026-03-30",
        "quantity": 154
      },
      {
        "period_start": "2026-04-06",
        "promotion": true,
        "quantity": 188
      },
      {
        "period_start": "2026-04-13",
        "quantity": 137
      },
      {
        "period_start": "2026-04-20",
        "quantity": 144
      },
      {
        "period_start": "2026-04-27",
        "quantity": 174
      },
      {
        "period_start": "2026-05-04",
        "quantity": 133
      },
      {
        "holiday": true,
        "period_start": "2026-05-11",
        "quantity": 199
      },
      {
        "period_start": "2026-05-18",
        "quantity": 159
      },
      {
        "period_start": "2026-05-25",
        "quantity": 182
      },
      {
        "period_start": "2026-06-01",
        "quantity": 150
      }
    ],
    "horizon_periods": 4,
    "season_length_periods": 4
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.006 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.006"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://handel.halowerk.com/v1/demand-forecast",
        json={
            "backtest_periods": 4,
            "confidence_level": 0.9,
            "frequency": "weekly",
            "future_events": [
                {
                    "period_start": "2026-06-15",
                    "promotion": True,
                },
            ],
            "history": [
                {
                    "period_start": "2026-01-05",
                    "quantity": 117,
                },
                {
                    "period_start": "2026-01-12",
                    "quantity": 90,
                },
                {
                    "period_start": "2026-01-19",
                    "quantity": 102,
                },
                {
                    "period_start": "2026-01-26",
                    "quantity": 113,
                },
                {
                    "period_start": "2026-02-02",
                    "promotion": True,
                    "quantity": 191,
                },
                {
                    "period_start": "2026-02-09",
                    "quantity": 104,
                },
                {
                    "period_start": "2026-02-16",
                    "quantity": 115,
                },
                {
                    "period_start": "2026-02-23",
                    "quantity": 120,
                },
                {
                    "period_start": "2026-03-02",
                    "quantity": 145,
                },
                {
                    "holiday": True,
                    "period_start": "2026-03-09",
                    "quantity": 150,
                },
                {
                    "period_start": "2026-03-16",
                    "quantity": 125,
                },
                {
                    "period_start": "2026-03-23",
                    "quantity": 136,
                },
                {
                    "period_start": "2026-03-30",
                    "quantity": 154,
                },
                {
                    "period_start": "2026-04-06",
                    "promotion": True,
                    "quantity": 188,
                },
                {
                    "period_start": "2026-04-13",
                    "quantity": 137,
                },
                {
                    "period_start": "2026-04-20",
                    "quantity": 144,
                },
                {
                    "period_start": "2026-04-27",
                    "quantity": 174,
                },
                {
                    "period_start": "2026-05-04",
                    "quantity": 133,
                },
                {
                    "holiday": True,
                    "period_start": "2026-05-11",
                    "quantity": 199,
                },
                {
                    "period_start": "2026-05-18",
                    "quantity": 159,
                },
                {
                    "period_start": "2026-05-25",
                    "quantity": 182,
                },
                {
                    "period_start": "2026-06-01",
                    "quantity": 150,
                },
            ],
            "horizon_periods": 4,
            "season_length_periods": 4,
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402141 ms$0.006
2 days agoTimed out---
3 days agoPassed40240 ms$0.006
4 days agoPassed402113 ms$0.006
4 days agoPassed40250 ms$0.006
Show 10 older checks
5 days agoPassed40241 ms$0.006
5 days agoPassed402167 ms$0.006
6 days agoPassed40240 ms$0.006
6 days agoPassed402126 ms$0.006
6 days agoPassed40239 ms$0.006
6 days agoPassed402123 ms$0.006
7 days agoPassed402138 ms$0.006
7 days agoPassed40240 ms$0.006
7 days agoPassed402148 ms$0.006
8 days agoPassed402138 ms$0.006