74trust / 100

Statistics Summary

by Sindri in Productivity & SaaS

x402 APIPassing, checked 58 min ago

Descriptive statistics summary (mean, median, variance, standard deviation, and 25th/75th/90th percentiles via linear interpolation, matching R and numpy's default "type=7" method) over a numeric array of up to 10,000 elements.

POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/statisticsSummary

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
88.9%
Response time
417 ms typical, 465 ms slowest 5%
Last check
58 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/statisticsSummary" \
  -H "content-type: application/json" \
  -d '{"values":[1,2,3,4,5]}'
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%2Fppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws%2FstatisticsSummary
const res = await pay("https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/statisticsSummary", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"values":[1,2,3,4,5]}),
});
console.log(await res.json());

Example input

{
  "values": [
    1,
    2,
    3,
    4,
    5
  ]
}

Example output

{
  "data": {
    "mean": 3,
    "median": 3,
    "p25": 2,
    "p75": 4,
    "p90": 4.6,
    "params": {
      "values": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "stddev": 1.4142135623730951,
    "variance": 2
  },
  "ok": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
58 min agoPassed402436 ms$0.01
4 h agoPassed402465 ms$0.01
8 h agoPassed402404 ms$0.01
12 h agoPassed402640 ms$0.01
15 h agoPassed402416 ms$0.01
20 h agoPassed402417 ms$0.01
23 h agoPassed402422 ms$0.01
26 h agoPassed402373 ms$0.01
31 h agoTimed out---