Mobile app version of vmapp.org
Login or Join
Vandalay111

: How to find Google PageRank without third party tools? How do third party applications and PageRank checking websites check for the PageRank number? Does Google provide this rank number with an

@Vandalay111

Posted in: #Pagerank

How do third party applications and PageRank checking websites check for the PageRank number? Does Google provide this rank number with an API or can I retrieve it by entering something into the search box? I would like to make a simple script to record my page rank and work with it as a variable and I prefer to use only Google as a source.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

3 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

As of March 7th 2016, Google has removed the public PageRank metric completely. Google's John Mueller confirmed it via Twitter. Prior to this, Google had been allowing access to this data through APIs. Those APIs are all now deprecated and now no longer function.

Public PageRank has been dying a slow death. Even when the APIs were active, Google did not frequently refresh the data. The last data refresh was in December 2013.

Google still uses PageRank internally. Their ranking algorithms depend on it. Googlebot crawls pages with higher PageRank more frequently. However, Google is no longer making this metric available to the public at all.

10% popularity Vote Up Vote Down


 

@Shakeerah822

Try this code
class GOOGLEPR
{
CONST SOURCE = 'http://toolbarqueries.google.com/';
public function __construct()
{ }

static function getPageRank($page)
{
$hash = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer.";
$c = 16909125;
$length = strlen($page);
$hashpieces = str_split($hash);
$urlpieces = str_split($page);
for($d = 0; $d<$length; $d++){
$c = $c ^ (ord($hashpieces[$d]) ^ ord($urlpieces[$d]));
$c = (($c >> 23) & 0x1ff) | $c << 9;
}
$c = -(~($c & 4294967295) + 1);
$prHash = '8' . dechex($c);
$prUrl = self::SOURCE.'tbr?client=navclient-auto&ch=' . $prHash . '&features=Rank&q=info:' . urlencode($page);
$out = file_get_contents($prUrl);
if(strlen($out) > 0) {
return trim(substr(strrchr($out, ':'), 1));
} else {
return 0;
}
}
}

10% popularity Vote Up Vote Down


 

@Jennifer507

After reading comments to my question and a lot of searching I found the answer. To retrieve Google Page Rank, a query against one of Google's sub-domain toolbarqueries.google.com can be done. This sub-domain is actually only one of the ways I have found it may be done.

The basic query syntax is in this format:
toolbarqueries.google.com/tbr?client=navclient-auto&ch=[HASH]features=Rank&q=info:[URL]&num=100&filter=0

It returns the Google Page Rank number, but [HASH] and [URL] must be provided, I have found several PHP, Python and Java functions to retrieve Page Rank from Google and generate this hashed query correctly. As result when done correctly, it still works at the date of me writing this answer and you will still get response directly from Google's server. For PHP, I found this code working and easiest to customize, I checked against several websites that I know very well and it gives me same response as third party Page Rank applications.

I have also found several blogs and articles supporting evidence of Page Rank retirement, it really looks like it does not change its value over time and all the Page Rank values are frozen.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme