80trust / 100
Convert
by Rook Convert in Documents & files
x402 APIPassing, checked 3 h ago
Convert between markdown, HTML, plain text, JSON and CSV. Body: { from, to, input }.
POST https://rook-x402-service.onrender.com/v1/convert
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 254 ms typical, 361 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://rook-x402-service.onrender.com/v1/convert" \
-H "content-type: application/json" \
-d '{"from":"html","input":"<h1>Hello</h1>","to":"markdown"}'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:84532",
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%2Frook-x402-service.onrender.com%2Fv1%2Fconvert
const res = await pay("https://rook-x402-service.onrender.com/v1/convert", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"from":"html","input":"<h1>Hello</h1>","to":"markdown"}),
});
console.log(await res.json());Example input
{
"from": "html",
"input": "<h1>Hello</h1>",
"to": "markdown"
}Example output
{
"from": "html",
"output": "# Hello",
"to": "markdown"
}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 | 251 ms | $0.02 |
| 6 h ago | Passed | 402 | 262 ms | $0.02 |
| 10 h ago | Passed | 402 | 257 ms | $0.02 |
| 14 h ago | Passed | 402 | 246 ms | $0.02 |
| 18 h ago | Passed | 402 | 281 ms | $0.02 |
| 21 h ago | Passed | 402 | 239 ms | $0.02 |
| 25 h ago | Passed | 402 | 361 ms | $0.02 |
| 28 h ago | Passed | 402 | 254 ms | $0.02 |
| 32 h ago | Passed | 402 | 252 ms | $0.02 |
| 37 h ago | Passed | 402 | 696 ms | $0.02 |