Sample Response

Successful API Responses will return a 200 status code and a json.

Unicode Example:

curl --request POST \
  --url https://api.deepinfo.com/v1/tools/punycode-converter \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'apikey: [YOUR_API_KEY]' \
  --data '{"target":"["unicode"]","text":["变流器\n點看"]}'
{
"results":[
  "xn--voro3dlv6a",
  "xn--c1yn36f"
]
}

Punycode Example:

curl --request POST \
  --url https://api.deepinfo.com/v1/tools/punycode-converter \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'apikey: [YOUR_API_KEY]' \
  --data '{"target":"["punycode"]","text":"xn--voro3dlv6a\nxn--c1yn36f"
  }'
{
"results":[
  "变流器",
  "點看"
]
}