Google Rank Checker API

I read the other day, It would make life so much easier if Google had a paid rank checker API. Google might not have one, but Raven Tools does

Dec-7 2012 Update

Raven Tools no longer supplies SERP rank data. Use Microsite Masters instead

It would make life so much easier if Google had a paid rank checker API


Matt Sawyer

Not many people know this, but Raven Tools has an API.

Part of the Raven Tools API is the SERP tracker. First, you have to go to your Profile page, and get an API key. Once you have your key, you’ll see links to the documentation and API testing tool.

One of Raven Tool’s API calls is Domain Keyword Rank. Since there’s 1,000 different things you could do with this data, I’ll show you how to fetch it, but it’s up to you to finish the script for your own use (or, hire me and I’ll finish it for you):


$cAPIKey = 'xxxxxxxxxxxxxxxx';
$cKeyword = 'raven tools review';
$cDomain = 'www.ericnagel.com';


$cURL = 'http://api.raventools.com/api?key=' . urlencode($cAPIKey) . '&format=xml';

$cURL .= '&method=rank';
$cURL .= '&domain=' . urlencode($cDomain);
$cURL .= '&keyword=' . urlencode($cKeyword);
$cURL .= '&engine=all';
$cURL .= '&start_date=2011-06-01';
$cURL .= '&end_date=' . date("Y-m-d");


$cXML = file_get_contents($cURL);

$oXML = simplexml_load_string($cXML);

What you get back is an XML document, which you can then parse & handle as necessary

<results engine="google">
	<result date="2011/06/27" status="match">
	<result date="2011/06/20" status="match">
	<result date="2011/06/13" status="match">
	<result date="2011/06/06" status="match">
	<result date="2011/05/30" status="no data" />

So it’s not exactly a paid rank checker from Google, but for $19 / month, it’s probably the best solution out there.

Share this Story:
  • facebook
  • twitter
  • gplus


  1. Matt Pardo
    2723 days ago

    Is this pulling the page rank metric?

  2. Eric Nagel
    2723 days ago

    No, not PR, but rank in the SERPs.

  3. Matt Pardo
    2723 days ago

    Ah, got it, I missed the cKeyword on my first scan. Thanks!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.