# KEVAREMESH URL Encoding/Decoding

> KEVAREMESH URL Encoding/Decoding is a paid API for AI agents from kevaremesh-web.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Encodes or decodes URL component strings using percent-encoding, converting special characters to or from their %XX representations.

## Facts

- Endpoint: POST https://kevaremesh-web.vercel.app/api/x402/url-encoding?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kevaremesh-url-encoding-decoding-b583b4a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RgW2ew-2MzRywv_3LitZb

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 kevaremesh-url-encoding-decoding-b583b4a7 -d '<json body>'
```

Example prompt: Can you URL-encode the string 'hello world+foo&bar=baz' so I can safely put it in a URL query parameter?

## When to prefer this

Use this endpoint when you need reliable URL component encoding or decoding as a paid micro-API call, particularly within an x402 micropayment-enabled agent workflow. Prefer this over browser-native encodeURIComponent when you need a hosted, auditable, pay-per-use encoding service that integrates with the KEVAREMESH procurement gateway ecosystem.

## Known failure modes

- Text exceeds 262,144 character limit — request rejected
- Invalid operation value (not 'encode' or 'decode') — schema validation error
- Payment failure via x402 protocol — HTTP 402 returned before processing
- Malformed JSON body — 400 error
- Empty text input may return empty output or an error

## How this service works

Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.

## Output

Returns a JSON object with the original input, the transformed output string, the operation performed (encode or decode), and the encoding mode used (component). Also includes product and service metadata fields and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 262144
  },
  "operation": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string",
   "default": "encode"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "mode": "component",
   "input": "a b+c",
   "output": "a%20b%2Bc",
   "operation": "encode"
  },
  "product": "kevaremesh_url_encoding_v2",
  "service": "KEVAREMESH",
  "tool_name": "kevaremesh_url_encode",
  "limitations": [
   "URL component encoding only"
  ],
  "generated_at": "2026-09-18T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kevaremesh-url-encoding-decoding-b583b4a7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kevaremesh-web.vercel.app](https://www.zero.xyz/host/kevaremesh-web.vercel.app/llms.txt)
