# YRUZ URL Encode/Decode Utility

> YRUZ URL Encode/Decode Utility is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Encodes or decodes a string using URL percent-encoding (urlencode/urldecode)

## Facts

- Endpoint: POST https://yruz.one/api/util/urlencode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-url-encode-decode-utility-97ea0c70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dWkcJPec18ssNSMWx1p_T

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 yruz-url-encode-decode-utility-97ea0c70 -d '<json body>'
```

Example prompt: URL-encode this string for me so I can safely put it in a query parameter: 'hello world & goodbye/world?yes=true'

## When to prefer this

Use this when you need a quick, pay-per-call URL encode/decode operation without setting up a local library or function. Useful in agent workflows where the runtime environment doesn't expose native URL encoding, or when chaining with other yruz.one utility endpoints.

## Known failure modes

- Missing 'text' field returns an error or empty result
- Invalid 'mode' value may default to encode or return an error
- Very long strings may time out or be truncated
- Non-UTF-8 input may produce unexpected encoding results

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

A JSON object with a 'tool' field set to 'urlencode' and a 'result' field containing the encoded or decoded output string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "encode (default) | decode"
  },
  "text": {
   "type": "string",
   "description": "input (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "urlencode",
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yruz-url-encode-decode-utility-97ea0c70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from yruz.one](https://www.zero.xyz/host/yruz.one/llms.txt)
