{
  "x402Version": 2,
  "id": 36296,
  "slug": "36296",
  "resource": "https://api.duoleads.com/v1/code/idn",
  "description": "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.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791433856/bazaar-icons/16212cbac45fe9af.png",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "ascii": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "labels": {
                "items": {
                  "properties": {
                    "ascii": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "index": {
                      "type": "integer"
                    },
                    "length": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "punycoded": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "unicode": {
                      "type": "string"
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "index",
                    "unicode",
                    "ascii",
                    "length",
                    "punycoded",
                    "valid",
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "total_length": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "unicode": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "valid": {
                "type": "boolean"
              }
            },
            "required": [
              "ascii",
              "unicode",
              "valid",
              "labels",
              "reason",
              "total_length"
            ],
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/code/idn"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "domain": "bücher.example"
          },
          "type": "http"
        },
        "output": {
          "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"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "domain": {
                    "description": "Domain name in Unicode or punycode form.",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "strict": {
                    "default": "true",
                    "description": "true (default) applies IDNA2008 strictly; false uses UTS 46 transitional (IDNA2003-compatible) processing, which maps e.g. ß to ss; current browsers and /v1/code/url use non-transitional processing, so its output can differ from them.",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "to": {
                    "default": "both",
                    "description": "ascii, unicode or both (default). Validated only: the response always carries both forms.",
                    "enum": [
                      "ascii",
                      "unicode",
                      "both"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "ascii": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "labels": {
                        "items": {
                          "properties": {
                            "ascii": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "index": {
                              "type": "integer"
                            },
                            "length": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "punycoded": {
                              "type": "boolean"
                            },
                            "reason": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "unicode": {
                              "type": "string"
                            },
                            "valid": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "index",
                            "unicode",
                            "ascii",
                            "length",
                            "punycoded",
                            "valid",
                            "reason"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "total_length": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "unicode": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "valid": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "ascii",
                      "unicode",
                      "valid",
                      "labels",
                      "reason",
                      "total_length"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/code/idn"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "code",
    "domains",
    "idna",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-08T04:30:56.249Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T04:30:56.03Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791433856/bazaar-icons/16212cbac45fe9af.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "domain": "bücher.example"
            },
            "type": "http"
          },
          "output": {
            "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"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "domain": {
                      "description": "Domain name in Unicode or punycode form.",
                      "maxLength": 512,
                      "type": "string"
                    },
                    "strict": {
                      "default": "true",
                      "description": "true (default) applies IDNA2008 strictly; false uses UTS 46 transitional (IDNA2003-compatible) processing, which maps e.g. ß to ss; current browsers and /v1/code/url use non-transitional processing, so its output can differ from them.",
                      "enum": [
                        "true",
                        "false"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "to": {
                      "default": "both",
                      "description": "ascii, unicode or both (default). Validated only: the response always carries both forms.",
                      "enum": [
                        "ascii",
                        "unicode",
                        "both"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "ascii": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "labels": {
                          "items": {
                            "properties": {
                              "ascii": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "index": {
                                "type": "integer"
                              },
                              "length": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "punycoded": {
                                "type": "boolean"
                              },
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "unicode": {
                                "type": "string"
                              },
                              "valid": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "index",
                              "unicode",
                              "ascii",
                              "length",
                              "punycoded",
                              "valid",
                              "reason"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "total_length": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "unicode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ascii",
                        "unicode",
                        "valid",
                        "labels",
                        "reason",
                        "total_length"
                      ],
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/code/idn"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "ascii": "string",
        "labels": [
          {
            "ascii": "string",
            "index": 0,
            "length": 0,
            "punycoded": true,
            "reason": "string",
            "unicode": "string",
            "valid": true
          }
        ],
        "reason": "string",
        "total_length": 0,
        "unicode": "string",
        "valid": true
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}