81trust / 100
Analytics Anomaly Score
by Market Intelligence API in Markets & finance
x402 APIPassing, checked 40 min ago
Use to flag outliers in any series ($0.01): send value and reference values; get a 0-100 anomaly score, the z-score, severity (NORMAL, LOW, MEDIUM, HIGH, EXTREME) and direction (ABOVE/BELOW). Fixed statistical thresholds, no AI and no data fetched; a score, not a probability.
POST https://api.marketintelligenceapi.com/api/v1/analytics/anomaly-score
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 54 ms typical, 54 ms slowest 5%
- Last check
- 40 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.marketintelligenceapi.com/api/v1/analytics/anomaly-score" \
-H "content-type: application/json" \
-d '{"value":106,"values":[100,104,98,101,97,103,99,102,100,96]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.marketintelligenceapi.com%2Fapi%2Fv1%2Fanalytics%2Fanomaly-score
const res = await pay("https://api.marketintelligenceapi.com/api/v1/analytics/anomaly-score", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"value":106,"values":[100,104,98,101,97,103,99,102,100,96]}),
});
console.log(await res.json());Example input
{
"value": 106,
"values": [
100,
104,
98,
101,
97,
103,
99,
102,
100,
96
]
}Example output
{
"anomalyScore": 64.959439,
"direction": "ABOVE",
"mean": 100,
"method": "SAMPLE",
"observations": 10,
"operation": "anomaly-score",
"result": 64.959439,
"scoring": "100*tanh(|z|/3)",
"severity": "MEDIUM",
"standardDeviation": 2.581989,
"value": 106,
"zScore": 2.32379
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 40 min ago | Passed | 402 | 54 ms | $0.01 |
| 6 h ago | Passed | 402 | 57 ms | $0.01 |