77trust / 100

Traffic Classify

by HALOWERK Agent Tools in Company & people data

x402 APIPassing, checked 6 h ago

Classifies supplied access logs when an agent needs to distinguish people, tools, crawlers and harvesters. Send timestamped request records; optional IP and user-agent fields improve grouping. Returns masked client groups, evidence-weighted labels, cadence, path, status, method and session signals. This is an estimate, not proof of identity; records are not stored and raw IP addresses are not returned.

POST
https://tools.halowerk.com/v1/traffic/classify
Price
$0.004
per call in USDC
Uptime
98.0%
last 30 days
Response time
134 ms
209 ms slowest 5%
Last check
Passed
6 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://tools.halowerk.com/v1/traffic/classify

Each call costs $0.004 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://tools.halowerk.com/v1/traffic/classify
content-type: application/json

{
  "group_by": "ip_user_agent",
  "requests": [
    {
      "ip": "203.0.113.44",
      "method": "GET",
      "path": "/products/100",
      "status": 200,
      "time_unix_s": 1786000000,
      "user_agent": "python-requests/2.32.3"
    },
    {
      "ip": "203.0.113.44",
      "method": "GET",
      "path": "/products/101",
      "status": 200,
      "time_unix_s": 1786000060,
      "user_agent": "python-requests/2.32.3"
    },
    {
      "ip": "203.0.113.44",
      "method": "GET",
      "path": "/products/102",
      "status": 200,
      "time_unix_s": 1786000120,
      "user_agent": "python-requests/2.32.3"
    },
    {
      "ip": "203.0.113.44",
      "method": "GET",
      "path": "/products/103",
      "status": 404,
      "time_unix_s": 1786000180,
      "user_agent": "python-requests/2.32.3"
    },
    {
      "ip": "203.0.113.44",
      "method": "GET",
      "path": "/products/104",
      "status": 200,
      "time_unix_s": 1786000240,
      "user_agent": "python-requests/2.32.3"
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
group_bystringNoHow records are grouped into clients. One of: ip, user_agent, ip_user_agent, none. Default: "ip_user_agent".
max_clientsintegerNoHow many clients are reported, largest first. Default: 100.
min_requests_per_clientintegerNoClients below this many requests are skipped and counted in clients_skipped. Default: 2.
requestsarray of objectYesAccess records. Each needs path and either time_unix_s or time. The service caps the whole request body at 256 KB, so long records reach that limit before maxItems.
session_gap_sintegerNoSilence after which the next request starts a new session. Default: 1800.

Example response

The provider's example. We can't check it without paying.

Example response, 33 lines
{
  "client_count": 1,
  "clients": [
    {
      "first_seen_unix_s": 1786000000,
      "last_seen_unix_s": 1786000240,
      "request_count": 5
    }
  ],
  "clients_skipped": 0,
  "group_by": "ip_user_agent",
  "label_distribution": {
    "automated_purpose_unclear": 0,
    "crawler": 0,
    "human": 0,
    "scraper": 1,
    "tool": 0,
    "unknown": 0
  },
  "privacy": {
    "ip_masking": "IPv4 to /24, IPv6 to /48",
    "raw_ip_returned": false,
    "stored": false,
    "user_agent_returned": "product token only, never the full header"
  },
  "request_count": 5,
  "session_gap_s": 1800,
  "stateless": true,
  "window": {
    "first_unix_s": 1786000000,
    "last_unix_s": 1786000240
  }
}

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.004.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tools.halowerk.com/v1/traffic/classify' \
  -H 'content-type: application/json' \
  --data-raw '{"group_by":"ip_user_agent","requests":[{"ip":"203.0.113.44","method":"GET","path":"/products/100","status":200,"time_unix_s":1786000000,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/101","status":200,"time_unix_s":1786000060,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/102","status":200,"time_unix_s":1786000120,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/103","status":404,"time_unix_s":1786000180,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/104","status":200,"time_unix_s":1786000240,"user_agent":"python-requests/2.32.3"}]}'

# 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://tools.halowerk.com/v1/traffic/classify' \
  -H 'content-type: application/json' \
  --data-raw '{"group_by":"ip_user_agent","requests":[{"ip":"203.0.113.44","method":"GET","path":"/products/100","status":200,"time_unix_s":1786000000,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/101","status":200,"time_unix_s":1786000060,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/102","status":200,"time_unix_s":1786000120,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/103","status":404,"time_unix_s":1786000180,"user_agent":"python-requests/2.32.3"},{"ip":"203.0.113.44","method":"GET","path":"/products/104","status":200,"time_unix_s":1786000240,"user_agent":"python-requests/2.32.3"}]}' \
  | 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.004 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.004" });
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.004 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftools.halowerk.com%2Fv1%2Ftraffic%2Fclassify&method=POST
const res = await pay("https://tools.halowerk.com/v1/traffic/classify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "group_by": "ip_user_agent",
    "requests": [
      {
        "ip": "203.0.113.44",
        "method": "GET",
        "path": "/products/100",
        "status": 200,
        "time_unix_s": 1786000000,
        "user_agent": "python-requests/2.32.3"
      },
      {
        "ip": "203.0.113.44",
        "method": "GET",
        "path": "/products/101",
        "status": 200,
        "time_unix_s": 1786000060,
        "user_agent": "python-requests/2.32.3"
      },
      {
        "ip": "203.0.113.44",
        "method": "GET",
        "path": "/products/102",
        "status": 200,
        "time_unix_s": 1786000120,
        "user_agent": "python-requests/2.32.3"
      },
      {
        "ip": "203.0.113.44",
        "method": "GET",
        "path": "/products/103",
        "status": 404,
        "time_unix_s": 1786000180,
        "user_agent": "python-requests/2.32.3"
      },
      {
        "ip": "203.0.113.44",
        "method": "GET",
        "path": "/products/104",
        "status": 200,
        "time_unix_s": 1786000240,
        "user_agent": "python-requests/2.32.3"
      }
    ]
  }),
});
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.004 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.004"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tools.halowerk.com/v1/traffic/classify",
        json={
            "group_by": "ip_user_agent",
            "requests": [
                {
                    "ip": "203.0.113.44",
                    "method": "GET",
                    "path": "/products/100",
                    "status": 200,
                    "time_unix_s": 1786000000,
                    "user_agent": "python-requests/2.32.3",
                },
                {
                    "ip": "203.0.113.44",
                    "method": "GET",
                    "path": "/products/101",
                    "status": 200,
                    "time_unix_s": 1786000060,
                    "user_agent": "python-requests/2.32.3",
                },
                {
                    "ip": "203.0.113.44",
                    "method": "GET",
                    "path": "/products/102",
                    "status": 200,
                    "time_unix_s": 1786000120,
                    "user_agent": "python-requests/2.32.3",
                },
                {
                    "ip": "203.0.113.44",
                    "method": "GET",
                    "path": "/products/103",
                    "status": 404,
                    "time_unix_s": 1786000180,
                    "user_agent": "python-requests/2.32.3",
                },
                {
                    "ip": "203.0.113.44",
                    "method": "GET",
                    "path": "/products/104",
                    "status": 200,
                    "time_unix_s": 1786000240,
                    "user_agent": "python-requests/2.32.3",
                },
            ],
        },
    )
    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
6 h agoPassed402131 ms$0.004
17 h agoPassed402127 ms$0.004
28 h agoPassed402141 ms$0.004
37 h agoPassed402137 ms$0.004
2 days agoPassed402293 ms$0.004
Show 10 older checks
2 days agoPassed402126 ms$0.004
3 days agoPassed402156 ms$0.004
4 days agoTimed out---
6 days agoTimed out---
7 days agoPassed402123 ms$0.004
7 days agoPassed402144 ms$0.004
8 days agoPassed402126 ms$0.004
8 days agoPassed402116 ms$0.004
8 days agoPassed402153 ms$0.004
9 days agoPassed402164 ms$0.004