80trust / 100
Convert Units
by Tanod utilpeek in Documents & files
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) unit conversion with exact factors: length, mass, temperature, volume, area, speed, pressure, energy, power, data size, time, fuel economy.
POST https://tanod.dev/v1/convert/units
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 272 ms typical, 2.2 s slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/convert/units' \
-H 'content-type: application/json' \
--data-raw '{"from":"in","to":"cm","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%2Ftanod.dev%2Fv1%2Fconvert%2Funits
const res = await pay("https://tanod.dev/v1/convert/units", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"from\":\"in\",\"to\":\"cm\",\"value\":1}",
});
console.log(await res.json());Example input
{
"from": "in",
"to": "cm",
"value": 1
}Example output
{
"category": "length",
"factor": 2.54,
"factor_decimal": "2.54",
"factor_exact": true,
"formula": "result = value * factor",
"from": "in",
"from_name": "inch",
"kind": "multiply",
"result": 2.54,
"to": "cm",
"to_name": "centimetre",
"value": 1
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 346 ms | $0.001 |
| 7 h ago | Passed | 402 | 260 ms | $0.001 |
| 11 h ago | Passed | 402 | 265 ms | $0.001 |
| 15 h ago | Passed | 402 | 267 ms | $0.001 |
| 19 h ago | Passed | 402 | 275 ms | $0.001 |
| 22 h ago | Passed | 402 | 2.2 s | $0.001 |
| 26 h ago | Passed | 402 | 274 ms | $0.001 |
| 29 h ago | Passed | 402 | 389 ms | $0.001 |
| 33 h ago | Passed | 402 | 272 ms | $0.001 |
| 36 h ago | Passed | 402 | 265 ms | $0.001 |
| 40 h ago | Passed | 402 | 270 ms | $0.001 |
| 43 h ago | Passed | 402 | 3.5 s | $0.001 |
| 2 days ago | Passed | 402 | 367 ms | $0.001 |
| 2 days ago | Passed | 402 | 274 ms | $0.001 |
| 2 days ago | Passed | 402 | 258 ms | $0.001 |