Tranco Rank Check |best| «Direct ★»

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

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

Response:

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

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

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