Top level domain (TLD)
ID tld
DatatypeNot PIIidentifier
Last label of a domain name, the level directly below the DNS root, such as com, org, ru or de. Country-code TLDs have two letters and mostly follow ISO 3166-1 alpha-2 codes; generic TLDs such as com, info or app are longer. Internationalized TLDs are stored in Punycode form starting with xn--, such as xn--p1ai for .рф. IANA lists the delegated TLDs in the Root Zone Database. Data often writes a TLD with a leading dot, which the regexp allows; the regexp checks the form, not whether the TLD is delegated.
- Categories
- Internet
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Wikidata
- P78
- Quality
- 100/100
- Metacrafter rules
- no detection rule yet
- Supported by tools
- Great Expectations Semantic Types Expectations
Regular expression
^\.?(?:[A-Za-z]{2,63}|[Xx][Nn]--[A-Za-z0-9-]{1,59})$
Python re syntax.
Examples
| Value | Description |
|---|---|
| com | Generic TLD |
| .org | Generic TLD written with a leading dot |
| ru | Country-code TLD of Russia |
| xn--p1ai | Internationalized country-code TLD .рф in Punycode |
| example.com invalid | A domain name with two labels |
| c invalid | One letter; TLDs have at least two characters |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Домен верхнего уровня (TLD) | Последняя метка доменного имени, например com, org или ru; национальные домены состоят из двух букв. |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Top-level_domain
- wikidata: https://www.wikidata.org/wiki/Q14296
- doc: https://www.iana.org/domains/root/db
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/tld - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/internet/tld.yamlon GitHub