Google Optimization
  Home arrow Google Optimization arrow Page 3 - Using the Google SOAP Search API
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
GOOGLE OPTIMIZATION

Using the Google SOAP Search API
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 20
    2006-09-27

    Table of Contents:
  • Using the Google SOAP Search API
  • Performing a Google Search
  • Cached Pages
  • Asynchronous Calls

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using the Google SOAP Search API - Cached Pages


    (Page 3 of 4 )

    The SOAP Search API service also gives developers access to Google's cache of pages. The process is simple enough; it involves a call to the doGetCachedPage method of the GoogleSearchService class. The method takes two arguments, your license key and the page to retrieve. An array of bytes is returned:

            byte[] page = google.doGetCachedPage("x0x0",
    "http://aspfree.com");

    We can easily get the size of the cached page by checking the size of the array, and converting the array into a string isn't very complicated either. We simply have to call a static method of the System.Text.UTF8Encoding class:

            Console.WriteLine("Page is {0} bytes.", page.Length);
            Console.WriteLine("n" + UTF8Encoding.UTF8.GetString
    (page));

    Spelling Suggestions

    Google's spelling suggestion service, like Google's cache of pages, is easy to make use of. The doSpellingSuggestion method takes only two arguments. The first is, of course, your license key, and the second is the word you wish to run through Google. If Google has a spelling suggestion, that suggestion is returned as a string, as in this example:

            string spelling = google.doSpellingSuggestion("x0x0",
    "choclate");
            Console.WriteLine(""choclate" -> "{0}"", spelling);

    However, if Google does not have a suggestion, then an empty string is returned, as in this next example:

            string spelling2 = google.doSpellingSuggestion("x0x0",
    "computer");
            Console.WriteLine(""computer" -> "{0}"", spelling2);

    More Google Optimization Articles
    More By Peyton McCullough


       · The article was very informative. I liked it very much as i have got some...
       · Thank you for your comment!The Google SOAP Search API is pretty interesting, but...
       · Google seems to implictly (but not explicitly) accept everyone using their Google...
     

    GOOGLE OPTIMIZATION ARTICLES

    - Google Adwords Guide
    - Create a Customized Google XML Sitemap
    - Google Website Optimizer Review
    - Using Analytics to Understand Your Readers
    - Google Sandbox Effect
    - Improve Google Indexing on Your Ecommerce We...
    - Back Links and Google Page Rank
    - The Five Most Important Things You Can Do wi...
    - Advanced Traffic Analysis Techniques with Go...
    - How to Build an Online Survey with Google Do...
    - How to Analyze and Rate Keyword Difficulty i...
    - Using Analytics on Your Site
    - Google Algorithms
    - How Google`s Quality Raters Treat Web Spam
    - Google`s Quality Rater Guidelines Leaked





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek