71trust / 100

Converters Data Size Converter

by AgentTools in Documents & files

x402 APIFailing, checked 13 min ago

Convert digital storage units: bits, bytes, KB, MB, GB, TB (decimal, ×1000) and KiB, MiB, GiB, TiB (binary, ×1024) — both systems side by side. Use this when an agent needs to decimal (KB/MB/GB) and binary (KiB/MiB/GiB) units.

GET https://agenttools-hub.vercel.app/api/v1/converters/data-size-converter

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
66.7%
Response time
142 ms typical, 142 ms slowest 5%
Last check
13 min ago: Expected HTTP 402, got 308
Next check
in 3 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/converters/data-size-converter?from=TB&to=GB&value=1"
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%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fconverters%2Fdata-size-converter
const res = await pay("https://agenttools-hub.vercel.app/api/v1/converters/data-size-converter?from=TB&to=GB&value=1");
console.log(await res.json());

Example input

{
  "from": "TB",
  "to": "GB",
  "value": 1
}

Example output

{
  "result": {
    "answer": "1,000 GB",
    "answerLabel": "1 Terabytes = ? Gigabytes",
    "details": [
      {
        "label": "Exact factor",
        "value": "1 TB = 1000 GB"
      },
      {
        "label": "Reverse",
        "value": "1 GB = 0.001 TB"
      }
    ],
    "steps": [
      "1 TB × 1000000000000 = 1,000,000,000,000 B",
      "1,000,000,000,000 B ÷ 1000000000 = 1,000 GB"
    ],
    "value": 1000
  },
  "tool": "data-size-converter"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
13 min agoExpected HTTP 402, got 30830867 ms-
4 h agoPassed402161 ms$0.002
9 h agoPassed402142 ms$0.002