# Punycode Domain Converter

> Punycode Domain Converter is a paid API for AI agents from url-text-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Converts a domain name between Unicode and Punycode (xn--) representation label by label per RFC 3492, with mixed-script detection.

## Facts

- Endpoint: GET https://url-text-tools.x402tookit.com/punycode?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/punycode-domain-converter-6bd25430
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D7hcf7OFXpfux-aN5w0Ow

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-domain-converter-6bd25430
```

Example prompt: Can you convert münchen.de to its punycode xn-- form, and tell me if any of its labels mix scripts?

## When to prefer this

Use this endpoint when you need standards-compliant RFC 3492 punycode conversion with per-label detail and mixed-script detection, especially for IDN security checks (homograph attack detection) or preparing internationalized domains for DNS registration. Prefer it over generic string-encoding tools because it understands DNS label structure and Unicode script categorization.

## Known failure modes

- Invalid or malformed domain input returns an error or degraded result
- Domain already fully ASCII with no IDN labels may return trivial identity conversion
- Extremely long labels exceeding DNS limits may fail or be flagged
- Network timeout or service unavailability returns a non-200 response
- Missing required 'domain' query parameter causes a validation error

## How this service works

Convert a domain to punycode (xn--) or back to Unicode label by label per RFC 3492, flagging mixed scripts.

## Output

Returns the ASCII punycode encoding, the Unicode form, a label-by-label breakdown (each with its ASCII, Unicode, and original input forms), the scripts seen across labels, a boolean flag for mixed-script labels, a verdict string, a human-readable summary, and a degraded/disclaimer notice if the conversion was only partially successful.

## 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": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "A domain name, Unicode or xn-- form, for example münchen.de"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "ascii": {
       "type": [
        "null",
        "string"
       ]
      },
      "input": {
       "type": [
        "null",
        "string"
       ]
      },
      "labels": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "ascii": {
          "type": [
           "null",
           "string"
          ]
         },
         "input": {
          "type": [
           "null",
           "string"
          ]
         },
         "unicode": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "unicode": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "scriptsSeen": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/punycode-domain-converter-6bd25430/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from url-text-tools.x402tookit.com](https://www.zero.xyz/host/url-text-tools.x402tookit.com/llms.txt)
