New Google Ranking Checker with Locale-Support

Important notice: Check google rankings become a very complicated task today. So many environment variables are important so that this simple ranking checker class don’t work any more. But there are some commercial tools that can still track your rankings like sistrix or seolytics.

A new release of the Google Ranking Checker Class is available now. The new version 1.2.0 is released under a Creative Commons license (by-sa 3.0) and supports locale settings for language and country.

You can test the Google Ranking Checker Class on BOHUCO Labs:

http://bohuco.net/labs/google-ranking-check

… or Download the Source-Code:

http://bohuco.net/labs/google-ranking-check/RankingChecker120.php.gz

Usage Example:

 
require_once 'RankingChecker.php';
$rankingChecker = new RankingChecker($apiKey);
$rankingChecker->setLocale('de', 'at');
$rankings = $rankingChecker->check(array('bohuco'), array('bohuco.net'));
 
var_dump($rankings);

Thanks for all the comments and suggestions.

  • Pingback: Google Ranking Checker Class in PHP | BOHUCO()

  • Soren

    Hi there

    Love the script – Although, I cant get it to work properly… For some keywords it’s ok, but for others it just dont return a result…

    I.e. I have a site called notebooktoshiba.net – I know for a fact that it is currently on position 13 on Google. The script turns up a blank for both “notebook toshiba” and for “notebooktoshiba” – Even “notebooktoshiba.net” gives a blank which should be a given 1st place position on Google. I have the same results for many other sites… What gives?

    I’ve set the locale to “$rankingChecker->setLocale(‘us’, ‘en’);”

    Good work btw ;) Would love to make this work and not jump on a Google scraper…

    • http://pulse.yahoo.com/_MG26SMUBDL2VBEDALRFXROUKOI Arthur J

      try ‘en’,’us’

  • http://jangedoo.co.cc Google Search Rank Checker

    You can use Google search rank checker to check your rankings

  • http://jangedoo.co.cc Google Search Rank Checker

    You can use Google search rank checker to check your rankings

  • Zabbath

    I just want to know how to modify your script become multi Ses, so I can chek rank using Google, yahoo and bing using your existing code

  • Zabbath

    I just want to know how to modify your script become multi Ses, so I can chek rank using Google, yahoo and bing using your existing code

  • http://twitter.com/__roger Roger Tschallener

    Ich habe eine kleine Anpassung in der Class vorgenommen, da diese ab dem zweiten Keyword des Arrays bei mir etwas gezickt hat.

    Folgender Bereich habe ich VOR das “foreach($keywords as $keyword) {” verschoben:
    if (! empty($this->country)) {
    $this->country = ‘&gl=’.$this->country;
    }

    Darfst du gerne für ein Update übernehmen ;)

  • http://twitter.com/__roger Roger

    Ich habe eine kleine Anpassung in der Class vorgenommen, da diese ab dem zweiten Keyword des Arrays bei mir etwas gezickt hat.

    Folgender Bereich habe ich VOR das “foreach($keywords as $keyword) {” verschoben:
    if (! empty($this->country)) {
    $this->country = ‘&gl=’.$this->country;
    }

    Darfst du gerne für ein Update übernehmen ;)

  • http://pulse.yahoo.com/_MG26SMUBDL2VBEDALRFXROUKOI Arthur J

    Does anyone know what’s the daily limit on querying Google?

  • http://pulse.yahoo.com/_MG26SMUBDL2VBEDALRFXROUKOI Arthur J

    Does anyone know what’s the daily limit on querying Google?

  • Vmukul111

    Thanks for the nice code!
    But I could not make it work properly. It always shows the same result unaffecting by locale settings.

    And Can I use your API in my code?
    I could not get one from the link given by you

  • Vmukul111

    Thanks for the nice code!
    But I could not make it work properly. It always shows the same result unaffecting by locale settings.

    And Can I use your API in my code?
    I could not get one from the link given by you

  • Msathesh

    Your script is accurately displaying the rankings but when I run it on my localhost, it’s getting me the rankings wrongly more often. I simply, do not understand why it’s display different results for same script. The only difference is API key. Which makes no sense to me. Do you know why? Thanks for the script though.

  • Msathesh

    Your script is accurately displaying the rankings but when I run it on my localhost, it’s getting me the rankings wrongly more often. I simply, do not understand why it’s display different results for same script. The only difference is API key. Which makes no sense to me. Do you know why? Thanks for the script though.

  • stevo

    Hey there,
    I tried the script on my server and while it does return results, they are different from those shown in the Bohuco Labs example (which are actually correct in my case). In both cases I use de/de for lang/country. Any idea why the script shows different results?
    Cheers,
    Stefan

  • stevo

    Hey there,
    I tried the script on my server and while it does return results, they are different from those shown in the Bohuco Labs example (which are actually correct in my case). In both cases I use de/de for lang/country. Any idea why the script shows different results?
    Cheers,
    Stefan

  • bejo6

    Google Scraper
    watch this for scrape link from google search results
    https://www.youtube.com/watch?v=VXEC0Ntm4nk
    visit my blog to download file
    http://bejo6.blogspot.com

  • http://pulse.yahoo.com/_MG26SMUBDL2VBEDALRFXROUKOI Arthur J

    try ‘en’,’us’