Tranco Rank Check Access

if response.status_code == 200 and response.text.strip(): print(f"Tranco rank: response.text.strip()") else: print(f"domain not in top 1M Tranco list") Download the latest top 1 million list:

12345 If the domain is not in the top 1 million, the response is empty. tranco rank check

curl https://tranco-list.eu/rank/example.com if response

wget https://tranco-list.eu/download/YYYYMMDD/full.gz gunzip full.gz grep -n "example.com" full (The line number is the rank.) For bulk queries, Tranco offers a lightweight API (no authentication required for moderate use): tranco rank check

import requests domains = ["google.com", "facebook.com", "yourdomain.com"] response = requests.post( "https://tranco-list.eu/api/ranks", json="domains": domains ) print(response.json())

"google.com": 1, "facebook.com": 4, "yourdomain.com": null

import requests domain = "example.com" response = requests.get(f"https://tranco-list.eu/rank/domain")