Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API to list top level domains

Tags:

rest

Anyone recommend any good web service to query and list all possible TLDs.

I'm currently looking at http://domainapi.com/ right now. I can query TLDs, but I cant find a way to list them. If anyone can think of any other good examples that have updated TLDs.

like image 418
madphp Avatar asked Sep 24 '12 18:09

madphp


1 Answers

Looks like ICANN does provide a computer-readable list of all valid TLDs:
https://data.iana.org/TLD/tlds-alpha-by-domain.txt (found via this page)

I'm not sure how frequently it's updated, but the couple times I've checked it's not been older than 24 hours.

I don't know how often you can query it without bothering them, so I wouldn't do it too often. It's not like the list changes frequently.

like image 175
Nick S Avatar answered Oct 18 '22 11:10

Nick S