Free PR API

Free Page Rank API


·What we offer: a free page rank tool that you can easily integrate in your site.

·Requirements: there are no special requirements, virtually anyone with basic HTML knowledge and/or some PHP/ASP programming knowledge can easily intergrate this tool on a site.

·Backlinks policy: we would appreciate if you link back to this page so others can enjoy our free PR API tool but you can use our tool even if you don't link back.

·API URL:
http://icons.geek-tools.org/api/show_pr.php?url=geek-tools.org
  or
http://icons.geek-tools.org/api/show_pr.php?url=geek-tools.org&icon_set=1

Explanations:
 - geek-tools.org can be changed with whatever domain you want.
 - icon_set can be for now 1,2 or 3 and if set the API will display a small icon like this:

·HTML code sample:
<a href='http://tools.geek-tools.org/page-rank/geek-tools.org' target='_blank'><img src='http://icons.geek-tools.org/api/show_pr.php?url=geek-tools.org&icon_set=1' border='0'></a>

·PHP code sample:
Here's simple PHP function example that you can use it to fetch PR for different domains:
function get_pr($domain)
{
  $ch = curl_init("http://icons.geek-tools.org/api/show_pr.php?url=$domain");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
  curl_setopt($ch, CURLOPT_USERAGENT, "GeekTools API - http://tools.geek-tools.org");
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  $retrievedHTML = curl_exec($ch);
  curl_close($ch);

  return $retrievedHTML;
}


You can call this fuction like this:
$pr_domain = get_pr($domain);
echo "$domain page rank: $pr_domain";


 

 


Other resources: :
· Content Monitor · Domains for any TLD · Web Promotion · Free Online Tools ·