# AgentTools URL Encoder / Decoder

> AgentTools URL Encoder / Decoder is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

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

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/url-encoder?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-url-encoder-decoder-ddaedb38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m8wPlXxT1bTKwUcCbiD1I

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-ddaedb38
```

Example prompt: Can you percent-encode the string 'hello world & welcome!' so I can safely use it in a URL query parameter?

## When to prefer this

Use this endpoint when an agent needs to programmatically encode or decode URL components without running code locally — especially in no-code or low-code agent workflows where JavaScript's encodeURIComponent is unavailable. Prefer it over custom logic when strict RFC-compliant percent-encoding is needed for query strings.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid 'op' value (not 'encode' or 'decode') returns a validation error
- Passing already-encoded text to encode may double-encode it
- Passing malformed percent sequences to decode may return an error or partial result

## 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 text (with spaces as %20, special characters as their hex equivalents, etc.) or the decoded plain-text version of a percent-encoded input, following standard encodeURIComponent rules.

## 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-ddaedb38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
