1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Use Google Search API to find related post in each post

Discussion in 'Google API' started by pcwilleasy, Jul 8, 2009.

  1. #1
    http://www.askapache.com/seo/404-google-wordpress-plugin.html
    http://wordpress.org/extend/plugins/askapache-google-404/

    Can we use that plugin to use Google Search API to find related post in each post based on the URL but display not videos, image but only some result of web.
    Or everyone have anotther plugin or idea to do fix it.
     
    pcwilleasy, Jul 8, 2009 IP
  2. reply2kmk

    reply2kmk Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why Google Stops giving APIs
     
    reply2kmk, Jul 9, 2009 IP
  3. pcwilleasy

    pcwilleasy Banned

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use Google Search API to find related post of your site base on title in wordpress. You can check it in my website:

    http://pcwilleasy.co.cc/
    or
    http://pcwilleasy.co.cc/technology-tips/use-google-search-api-to-find-related-post-in-each-post/

    It have function like

    http://www.askapache.com/seo/404-google-wordpress-plugin.html

    but my code have display not videos, image only some result of your website.


    Every can me a idea that is good or not.

    Here is the code:
    Code:
    
    <p>Related post</p> <head> <script src="http://www.google.com/jsapi" type="text/javascript"> </script> <script language="Javascript" type="text/javascript"> google.load("search", "1"); function OnLoad() { var searchControl = new google.search.SearchControl(); searchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); var webSearch = new google.search.WebSearch(); webSearch.setSiteRestriction('pcwilleasy.co.cc'); options = new google.search.SearcherOptions(); options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN); searchControl.addSearcher(webSearch, options); searchControl.draw(document.getElementById("searchcontrol")); document.getElementById('searchcontrol').firstChild.style.width='100%'; searchControl.execute("<?php the_title(); ?>"); } google.setOnLoadCallback(OnLoad); </script> </head> <body> <div id="searchcontrol">Loading...</div> </body> </html>
    
    Code (markup):
    change the webSearch.setSiteRestriction('pcwilleasy.co.cc');
    with your website.
     
    pcwilleasy, Jul 18, 2009 IP
  4. mpreyesmr

    mpreyesmr Banned

    Messages:
    175
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wonder why Google stops is giving you APIs?
     
    mpreyesmr, Jul 24, 2009 IP
  5. mixDev

    mixDev Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just wondering. If it is an AJAX call how exactly it is search engine friendly? Are you talking about serverside http call that works like AJAX call?
     
    mixDev, Aug 6, 2009 IP
  6. adsenserobo

    adsenserobo Peon

    Messages:
    408
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I too cant get API key can some one suggest to get and what is API
     
    adsenserobo, Aug 6, 2009 IP
  7. pakidesigner

    pakidesigner Peon

    Messages:
    310
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its easy to get a api by google. you have to proivide a api key ..in order to get the api code.
     
    pakidesigner, Aug 8, 2009 IP
  8. natizano

    natizano Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can use Similar Sites API. It has the same functionality as a Google Related API but with Sites.
    this will enable you to get related sites based on the URLs you're in. You can see more here: dev.similarsites.com/similar-websites-api/
     
    natizano, Oct 30, 2012 IP