DEV Community

Victoria
Victoria

Posted on

How to Check a Domain’s Historical PageRank

Ever wondered why some old websites still rank well despite having thin content? It’s not just backlinks. It’s residual authority. Before Google killed the public PageRank API in 2016, webmasters used that 0-10 score as the gold standard for link equity. Today, we’re stuck with Domain Authority (Moz) or Trust Flow (Majestic). But there’s a hidden truth: you can still check the archived PageRank history for any domain.

Why bother? Because historical PageRank tells you about the site’s link velocity and age. A domain that held a PR6 in 2014 likely had a strong editorial backlink profile. If that domain is now up for sale or has been repurposed, that legacy signal matters.

The trick: You can’t fetch live PR, but you can query the Wayback Machine’s CDX API for archived toolbar values. Or, you can use a modern equivalent that approximates the old score. I built a tiny Python script that does exactly this—it pulls the last known PageRank from the Wayback Machine and compares it to a current "Trust Rate" metric from SERPSpur (their tool at https://serpspur.com/tool/google-pagerank-checker/).

Here’s the core logic:

import requests
import json

def get_legacy_pr(domain):
    cdx_url = f"http://web.archive.org/cdx/search/cdx?url={domain}&output=json&filter=statuscode:200&filter=mimetype:text/html&limit=-5"
    resp = requests.get(cdx_url).json()
    # Parse the snapshot, extract the PageRank from the HTML snippet
    # This is a simplified placeholder
    for row in resp[1:]:
        if "pagerank" in row[2]:
            return row[2].split("pagerank=")[1][:1]
    return None

# Compare with current Trust Rate
current_trust = requests.get(f"https://serpspur.com/api/trust/{domain}").json()["trust_score"]
legacy = get_legacy_pr("example.com")
print(f"Legacy PR: {legacy}, Current Trust: {current_trust}")
Enter fullscreen mode Exit fullscreen mode

Why this matters for your SEO audit:

  1. Spam detection: If a domain has a high legacy PR but a low current Trust Rate, it likely lost its link equity or was penalized.
  2. Acquisition decisions: Buying an expired domain? Check if its historical PR supports the current metrics.
  3. Competitor analysis: See if a competitor’s authority is built on old foundations or fresh signals.

The SERPSpur tool does this comparison automatically—it shows you the legacy PR alongside its own Trust Rate, which is a more granular 0-100 scale that factors in backlink quality, not just quantity.

The caveat: Legacy PR is just a snapshot. It doesn’t reflect current anchor text diversity or link decay. Use it as a historical context layer, not a primary ranking factor.

Try it on a few sites you know were big in 2012. You’ll be surprised how many "authoritative" domains today are living off their 2015 PR9 ghosts. The real question is: is your site building new equity, or just resting on old laurels?

Top comments (2)

Collapse
 
rockjohan profile image
Rock

This is such a great reminder that simplicity often beats cleverness. I've definitely been guilty of over-engineering solutions just to feel productive — thanks for the nudge back to basics.

Collapse
 
mattjoshi profile image
Matt Joshi

This one's a clean slate—maybe you're leaving room for others to define the topic? If so, I'd love to hear what direction you're leaning toward yourself.