TLDapi

Do you know all the valid top level domains? If you're a developer, perhaps you need to validate email addresses. Or perhaps you're staying to think about adding support for IDNs in your app and you want to test all valid TLDs. You could just visit the official IANA list but an API is even better. Here you go!

Usage

/all
Get a JSON-encoded list of dictionaries containing all information found on the IANA site.
/check/[TLD]
Check whether the given TLD actually exists. Returns a dictionary either with the boolean property 'exists' and, if the TLD exists, all the information found on the IANA site.

P.S. Everything is in Unicode.

By Peter Robinett of Bubble Foundry. Last updated: 2009-12-06.