Supported Input Formats

Domain name variable can be sent to API in different forms, such as punycode, unicode, lower-case and upper-case. If domain name variable sent with subdomain, API extracts the domain from input and returns whois data successfully.

Examples of Supported Input Formats

  • Domain in punycode form.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=xn--deepinfo-s0e.com (deepİnfo.com)
https://api.deepinfo.com/v1/lookup/whois?domain=xn--deepinfo-s0e.com (deepİnfo.com)
  • Domain in Unicode form.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=deep%c4%b0nfo.com (deepİnfo.com)
https://api.deepinfo.com/v1/lookup/whois?domain=deep%c4%b0nfo.com (deepİnfo.com)
  • Domain in punycode form with a subdomain.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=www.xn--deepinfo-s0e.com (www.deepİnfo.com)
https://api.deepinfo.com/v1/lookup/whois?domain=www.xn--deepinfo-s0e.com (www.deepİnfo.com)
  • Domain in Unicode form with a subdomain.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=www.deep%c4%b0nfo.com (www.deepİnfo.com)
https://api.deepinfo.com/v1/lookup/whois?domain=www.deep%c4%b0nfo.com (www.deepİnfo.com)
  • Upper-cased domain in punycode form.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=xn--DEEPINFO-s0e.COM (DEEPİNFO.com)
https://api.deepinfo.com/v1/lookup/whois?domain=xn--DEEPINFO-s0e.COM (DEEPİNFO.com)
  • Upper-cased domain in Unicode form.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=DEEP%c4%b0NFO.COM (DEEPİNFO.COM)
https://api.deepinfo.com/v1/lookup/whois?domain=DEEP%c4%b0NFO.COM (DEEPİNFO.COM)
  • Upper-cased domain in punycode form with a subdomain.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=WWW.xn--DEEPINFO-s0e.COM (WWW.DEEPİNFO.COM)
https://api.deepinfo.com/v1/lookup/whois?domain=WWW.xn--DEEPINFO-s0e.COM (WWW.DEEPİNFO.COM)
  • Upper-cased domain in Unicode form with a subdomain.
$ curl https://api.deepinfo.com/v1/lookup/whois?domain=WWW.DEEP%c4%b0NFO.COM (WWW.DEEPİNFO.COM)
https://api.deepinfo.com/v1/lookup/whois?domain=WWW.DEEP%c4%b0NFO.COM (WWW.DEEPİNFO.COM)

Did this page help you?