tldextract

JSON →
library 5.3.1 ·python
verified Jun 9, 2026 install

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.

total hits 20
actors 7 distinct systems
last hit 3d ago AhrefsBot
Amazonbot
4
ByteDance
3
Script
2
Perplexity-User
1
Search engines
3
Humans
2

top countries 🇺🇸 United States · 🇬🇧 United Kingdom · 🇨🇦 Canada · 🇸🇬 Singapore · 🇩🇪 Germany