SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Find search position in Google,MSN and Yahoo

    Dear all,

    I want to know the position of my website on Google, MSN and Yahoo with a particular search keyword using PHP. I have tried with the help of the article of Sitepoint's article on the google search api but the result form that is not exact and i have not found any for MSN and Yahoo.

    Is there anyone having this experience? if any, share with me the ideas or code even if possible.

    Thanx in advance.

    With Regards
    Raju Gautam

  2. #2
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the position is high enough, you could try fetching top 10 or 20 results for a given keyword and then looping through them.

  3. #3
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by earl-grey View Post
    If the position is high enough, you could try fetching top 10 or 20 results for a given keyword and then looping through them.
    Yes i did that limiting the result. But still it does not give exact position for google api. I think you are talking about google right? So do u have any ideas about MSN and Yahoo?

  4. #4
    Web developer chrisranjana's Avatar
    Join Date
    Jan 2001
    Location
    chennai , tamil nadu , India
    Posts
    710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try http://www.e-axis-inc.com/rank/

    But sometimes it shows inaccurate results though.
    Chris, Programmer/Developer,
    Laravel Php Developers, Ruby on Rails programmers,
    Moodle, Opencart, Magento, Geodesic Classifieds/Auctions,
    www.chrisranjana.com

  5. #5
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello all,

    Anyone does have idea or php codes to find the position in yahoo and msn?

    I need this ASAP. Please help me

    Thank you very much in advance.
    With Regards
    Raju Gautam

  6. #6
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone reply this please? Please respond me whether it is possible in php or not and if possible to find position of google, msn and yahoo how could be done this from php.............

    please it would be very much appreciated.

  7. #7
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use their APIs maybe
    http://developer.yahoo.com/search/web/V1/webSearch.html
    That's Yahoo's. You can write a script to fetch the results for your query and use a regexp to check each returned item for your url.
    It wouldn't be very hard I don't think.

  8. #8
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should get you started if you do decide to actually do this.

    PHP Code:
    <?php
     
    // Build an array with the parameters we want to use:
     
    $params = array(
     
    'appid' => 'your yahoo key here',
     
    'query' => 'xml php',
     
    'results' => 10,
     ); 
     
     
    $call "http://search.yahooapis.com/WebSearchService/V1/webSearch?";
     
        foreach (
    $params as $key => $value){
            
    $call .= "$key=" urlencode($value) . "&";
        }

        
    #echo $call;
        
        
    $result file_get_contents($call);
        
        
    header('Content-type: text/xml');
        echo 
    $result;
        
    ?>

  9. #9
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where were you ikeo till now?

    Thank you very much ikeo for the code and idea. You know i had tried to look for this help in google for lots of times but i could not get this yahoo url neither anyone give me any help. I think i can do this now because i have got the XML here as a result.

    I know asking everything is not good at all because it may bother you. But i am compelled for this to ask now. Do you have any ideas for MSN too? If you have any ideas please share with me.
    I have for Google api for this but it is not working properly means it does show sometime in the high ranking and sometime it show low. I dont know why.

    Thank you very much.

  10. #10
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I lost track of this thread with the holidays and everything ... let me see about MSN ... with their move to Windows Live I'm not sure they provide and API but let me see.

  11. #11
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last edited by ikeo; Jan 2, 2007 at 10:01.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •