{"id":2466,"date":"2023-08-28T22:03:55","date_gmt":"2023-08-28T21:03:55","guid":{"rendered":"https:\/\/bornoe.org\/blog\/?p=2466"},"modified":"2023-11-30T02:06:57","modified_gmt":"2023-11-30T01:06:57","slug":"the-tld-counter","status":"publish","type":"post","link":"https:\/\/bornoe.org\/blog\/2023\/08\/the-tld-counter\/","title":{"rendered":"The TLD Counter"},"content":{"rendered":"\n<p>I built a tiny website and API service that simple returns the number of active top-level domains (TLDs) in the <a href=\"https:\/\/www.iana.org\/domains\/root\/db\" data-type=\"link\" data-id=\"https:\/\/www.iana.org\/domains\/root\/db\">IANA Root Zone Database<\/a>. The project is just called The TLD Counter and is available at <a href=\"https:\/\/tlds.bornoe.net\/\">https:\/\/tlds.bornoe.net\/<\/a><\/p>\n\n\n\n<p>A short recap of what a TLD is. A TLD is the last segment of a domain name, e.g., example.com, found in the domain name system (DNS) hierarchy. It appears after the final dot in a web address, such as .com, .org, .net, .gov, .edu, .uk, .jp, etc. The Internet Corporation for Assigned Names and Numbers (ICANN) manages and oversees the distribution and administration of all domain names and TLDs world wide.<\/p>\n\n\n\n<p>Besides answering the question &#8220;How many TLDs are there?&#8221; for those interested, the API can also be used for development in case you need ultra-simple input for a project.<\/p>\n\n\n\n<p>The API provides access to the two endpoints listed below. It has open access and does not require an API key.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>URL<\/th><th>Response type<\/th><th>Example output<\/th><\/tr><\/thead><tbody><tr><td>https:\/\/tlds.bornoe.net\/api\/tlds.txt<\/td><td>Text<\/td><td>1465<\/td><\/tr><tr><td>https:\/\/tlds.bornoe.net\/api\/tlds.json<\/td><td>JSON<\/td><td>{&#8220;tlds&#8221;:1465}<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I built a tiny website and API service that simple returns the number of active top-level domains (TLDs) in the IANA Root Zone Database. The project is just called The TLD Counter and is available at https:\/\/tlds.bornoe.net\/ A short recap of what a TLD is. A TLD is the last segment of a domain name, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-2466","post","type-post","status-publish","format-standard","hentry","category-domains"],"_links":{"self":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/comments?post=2466"}],"version-history":[{"count":8,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2466\/revisions"}],"predecessor-version":[{"id":2587,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2466\/revisions\/2587"}],"wp:attachment":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/media?parent=2466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/categories?post=2466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/tags?post=2466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}