Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (26 sloc) 1002 Bytes


A library for looking up the Google PageRank of any given web page. Try a live example at

Build Status


npm install --save pagerank


var getPageRank = require('pagerank');

// pageRank will either be a number or null
getPageRank('', function(error, pageRank) {
    console.log(error, pageRank);

Breaking changes:

  • Starting with version 1.3, pagerank will return/emit an error event when a non-200 status code is received from Google. (Previously it gave a null pagerank, but no error.)
  • Starting with version 2.0, pagerank is no longer a readable stream / event emitter, it can only be used via callbacks.

Or, install it globally

npm install -g pagerank

and use it on the commandline:

Jump to Line
Something went wrong with that request. Please try again.