tldextract
JSON →tldextract accurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). It handles edge cases often missed by naive parsing methods. By default, it supports public ICANN TLDs and their exceptions, with optional support for private domains. The current version is 5.3.1, and the library maintains an active development and release cadence.
Traffic · last 30 days ↓29% vs prev 7d
total hits 21
actors 8 distinct systems
last hit 1h ago ClaudeBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇩🇪 Germany
API endpoints
full doc /v1/registry/tldextract
install /v1/registry/tldextract/install
compatibility /v1/registry/tldextract/compatibility