# Punycode Encoder

> Punycode Encoder is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-29).

Encodes a text string using Punycode, converting Unicode characters to ASCII-compatible encoding (ACE) for use in domain names and internationalized text.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/punycode-encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/punycode-encoder-2908f63e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yqfHs8NrOzxU03maGRIOF

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 punycode-encoder-2908f63e -d '<json body>'
```

Example prompt: Can you punycode-encode the string 'münchen.de' for me so I can use it in a DNS lookup?

## When to prefer this

Use this endpoint when you need a deterministic, offline punycode encoding of a Unicode string without relying on an LLM or external network call. Prefer this over implementing punycode logic inline when working in a sandboxed agent environment. Note: the description recommends trying an unpaid POST /v1/sandbox/punycode-encode endpoint first to avoid the $0.001 USDC charge.

## Known failure modes

- Empty or missing 'text' field returns validation error
- Input exceeding 100,000 character limit rejected
- Network/service unavailability returns HTTP 5xx
- Payment failure or insufficient USDC balance returns HTTP 402

## How this service works

Call when an agent needs text encoded with punycode. No network and no LLM. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/punycode-encode first.

## Output

Returns the punycode-encoded ASCII-compatible representation of the input text string, suitable for use in DNS labels, domain names, or other contexts requiring ACE encoding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "münchen.de"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/punycode-encoder-2908f63e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
