# AgentTools URL Encoder/Decoder

> AgentTools URL Encoder/Decoder is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Percent-encodes text for safe inclusion in URLs and query strings, or decodes percent-encoded text back, using encodeURIComponent rules.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/dev/url-encoder?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-url-encoder-decoder-adf0bc7e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_btsITnoV8lPl-3BRYA_MY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-url-encoder-decoder-adf0bc7e
```

Example prompt: Can you percent-encode this text so I can safely use it in a URL query string: 'hello world & more=yes'?

## When to prefer this

Use this endpoint when an agent needs to safely prepare text for inclusion in URLs or query strings, or when it needs to interpret percent-encoded data received from web sources. Prefer this over custom logic when the agent must handle special characters, spaces, Unicode, or emoji in URL contexts reliably.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid 'op' value other than 'encode' or 'decode' may cause unexpected behavior
- Malformed percent-encoded input when decoding (e.g. a lone % sign) may return an error or partial result
- Network timeout on the Vercel serverless host under cold-start conditions

## How this service works

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.

## Output

Returns the transformed string: either the percent-encoded version of the input (with spaces as %20, special characters escaped per encodeURIComponent rules) when encoding, or the decoded plain-text string when decoding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "op": {
       "enum": [
        "encode",
        "decode"
       ],
       "type": "string",
       "description": "Direction"
      },
      "text": {
       "type": "string",
       "description": "Text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-url-encoder-decoder-adf0bc7e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
