← Back to directory

Punycode converter: IDN domain to ASCII and back, with IDNA2008 label validation

https://api.duoleads.com/v1/code/idn

Overview

Punycode converter: convert internationalised domain names between Unicode and ASCII punycode in either direction, label by label, and validate each label against IDNA2008: length, leading and trailing hyphens, the hyphen-hyphen rule at positions 3 and 4, disallowed code points and bidirectional rules. Returns both forms, the per-label breakdown and the first rule violated. Strict mode is IDNA2008 (UTS 46 non-transitional); it may reject names /v1/code/url displays.

Protocol x402
Price $0.05
Payment Asset USD Coin
Payment Network eip155:8453
Category developer-tools
Provider duoleads
Source bazaar
Indexed 2026-09-29 00:13:45

Health

Status healthy
Latency (p50) 433ms
Uptime (30d) 97.0%
Reliability Score 93.5/100
Last Checked 2026-10-31 07:02:49
Last Healthy 2026-10-31 07:02:49
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "domain": "bücher.example" }, "type": "http" }

Output Schema

{ "example": { "data": { "ascii": "xn--bcher-kva.example", "labels": [ { "ascii": "xn--bcher-kva", "index": 0, "length": 13, "punycoded": true, "reason": null, "unicode": "bücher", "valid": true }, { "ascii": "example", "index": 1, "length": 7, "punycoded": false, "reason": null, "unicode": "example", "valid": true } ], "reason": null, "total_length": 21, "unicode": "bücher.example", "valid": true }, "meta": { "computed_at": "2026-09-28T12:00:00.000Z", "deterministic": true, "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms", "price_usd": "0.05", "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D", "sources": [ { "attribution": "Unicode IdnaMappingTable via the tr46 package (MIT); (c) Unicode, Inc.", "id": "unicode-idna-tables", "licence": "Unicode License v3", "published": "2026-09-29", "version": "Unicode 17.0.0 (UTS #46 IdnaMappingTable via tr46 6.0.0)" } ] }, "ok": true, "route": "/v1/code/idn", "version": "1.0.0" }, "type": "json" }