81trust / 100
Dev Url Encoder
by AgentTools in Developer tools
x402 APIPassing, checked 58 min ago
Percent-encode text for safe inclusion in URLs and query strings, or decode percent-encoded text back. Uses the standard encodeURIComponent rules. Use this when an agent needs to percent-encoding for query strings and URLs.
GET https://agenttools-hub.vercel.app/api/v1/dev/url-encoder
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 140 ms typical, 140 ms slowest 5%
- Last check
- 58 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/url-encoder?op=encode&text=hello+world+%26+more"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%2Fdev%2Furl-encoder
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/url-encoder?op=encode&text=hello+world+%26+more");
console.log(await res.json());Example input
{
"op": "encode",
"text": "hello world & more"
}Example output
{
"result": {
"answer": "hello%20world%20%26%20more",
"answerLabel": "Percent-encoded",
"details": [
{
"label": "Original length",
"value": "18 chars"
},
{
"label": "Encoded length",
"value": "26 chars"
},
{
"label": "Bytes escaped",
"value": "4"
}
],
"steps": [
"UTF-8 encode each character",
"Escape all bytes except A–Z a–z 0–9 - _ . ! ~ * ' ( )"
],
"value": null
},
"tool": "url-encoder"
}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 |
|---|---|---|---|---|
| 58 min ago | Passed | 402 | 143 ms | $0.002 |
| 6 h ago | Passed | 402 | 140 ms | $0.002 |