81trust / 100

Encoding Detect

by encoding-detect in Developer tools

x402 APIPassing, checked 8 min ago

Detect whether hex-encoded bytes are ASCII, UTF-8, or UTF-16 with a BOM, by decode-validity and BOM presence (not statistical language detection).

POST https://x402.agentindex.world/encoding/detect

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
71 ms typical, 71 ms slowest 5%
Last check
8 min ago
Next check
in 21 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/encoding/detect" \
  -H "content-type: application/json" \
  -d '{"hex_bytes":"48656c6c6f"}'
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%2Fx402.agentindex.world%2Fencoding%2Fdetect
const res = await pay("https://x402.agentindex.world/encoding/detect", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hex_bytes":"48656c6c6f"}),
});
console.log(await res.json());

Example input

{
  "hex_bytes": "48656c6c6f"
}

Example output

{
  "encoding": "ascii",
  "has_bom": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
8 min agoPassed40271 ms$0.002
3 h agoPassed40243 ms$0.002
8 h agoPassed402107 ms$0.002