N

Netzhandwerker Agent Tools · Series Anomaly

by Netzhandwerker Agent Tools

POSTBase

$0.004

per call · USD Coin on Base

Runs three detectors over one series and reports what each saw: a robust z score on median and median absolute deviation, a robust seasonal-trend decomposition with a z score on the residual, and an isolation forest over value and step-to-previous. Every score is returned per point, so callers set their own threshold instead of trusting a verdict. The forest draws from a fixed seed: same request, same result. Under three full cycles the seasonal figure is marked as not robust.

Endpoint

POST https://tools.halowerk.com/v1/series/anomaly

1

Calls / 30d

1

Unique payers / 30d

Aug 19

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://tools.halowerk.com/v1/series/anomaly", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "contamination": 0.1,
    "methods": [
      "robust_z",
      "isolation_forest"
    ],
    "min_votes": 2,
    "points": [
      12.1,
      12.4,
      11.9,
      12.3,
      12,
      12.2,
      48.7,
      12.1,
      11.8,
      12.5,
      12.2,
      12
    ],
    "seed": 42
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://tools.halowerk.com/v1/series/anomaly" \
  -H "Content-Type: application/json" \
  -d '{"contamination":0.1,"methods":["robust_z","isolation_forest"],"min_votes":2,"points":[12.1,12.4,11.9,12.3,12,12.2,48.7,12.1,11.8,12.5,12.2,12],"seed":42}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "anomalies": [
    {
      "flagged_by": [
        "robust_z",
        "isolation_forest"
      ],
      "index": 6,
      "scores": {
        "isolation_forest": 0.83,
        "robust_z": 123.4
      },
      "time": null,
      "time_unix_s": null,
      "value": 48.7
    }
  ],
  "anomaly_count": 1,
  "deterministic": true,
  "method_details": {
    "isolation_forest": {
      "contamination": 0.1,
      "features": [
        "value",
        "delta_to_previous"
      ],
      "flagged": 2,
      "sample_size": 12,
      "score_cutoff": 0.71,
      "seed": 42,
      "trees": 100
    },
    "robust_z": {
      "flagged": 1,
      "median": 12.15,
      "scale": 0.29652,
      "scale_basis": "mad",
      "threshold": 3.5
    }
  },
  "methods": [
    "robust_z",
    "isolation_forest"
  ],
  "min_votes": 2,
  "point_count": 12,
  "points": [
    {
      "flagged_by": [],
      "index": 0,
      "is_anomaly": false,
      "label": null,
      "scores": {
        "isolation_forest": 0.42,
        "robust_z": -0.169
      },
      "time": null,
      "time_unix_s": null,
      "value": 12.1
    }
  ],
  "seed": 42,
  "stateless": true,
  "statistics": {
    "max": 48.7,
    "mean": 15.016667,
    "median": 12.15,
    "min": 11.8,
    "stddev": 10.593
  }
}

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Netzhandwerker Agent Tools & similar services