Get Tranco Rank

You can use this function to get the ranking of a domain:

D SELECT get_tranco_rank('microsoft.com') ASrank;
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  rank   β”‚
β”‚ varchar β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 2       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

D SELECT get_tranco_rank('cloudflare.com') ASrank;
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  rank   β”‚
β”‚ varchar β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 13      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

You can use the get_tranco_rank_category function to retrieve the category utility column that gives you the rank category of the domain. The category value is on a log10 scale with half steps (e.g. top 1k, top 5k, top 10k, top 50k, top 100k, top 500k, top 1M, top 5m, etc.) with each rank excluding the previous (e.g. top 5k is actually 4k domains, excluding top 1k).

D SELECT get_tranco_rank_category('microsoft.com') AScategory;
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ category β”‚
β”‚ varchar  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ top1k    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Last updated

Was this helpful?