Google Web Services Example
Google.com is a well-known web search engine. Google has made a web service available that allows developers to interface with their search engine within their own applications. A user can search for any topic on the web. A query will return data about the web pages that are found. This example demonstrates a Wolfram Language interface to the Google web service.
The Google web service provides a good demonstration of the use of web services to retrieve data. This example searches the Google database for web pages containing a certain keyword. The example code then places the results in the notebook.
To try this example, evaluate all the initialization cells. (You can do this using Evaluation ▶ Evaluate Initialization Cells.) Then go to the examples here.
Example
Find the top 10 wolfram.com web pages containing all the given strings.
![](Files/GoogleExample.en/Image_1.gif)
![](Files/GoogleExample.en/Image_2.gif)
![](Files/GoogleExample.en/Image_3.gif)
![](Files/GoogleExample.en/Image_4.gif)
![](Files/GoogleExample.en/Image_5.gif)
![](Files/GoogleExample.en/Image_6.gif)
![](Files/GoogleExample.en/Image_7.gif)
![](Files/GoogleExample.en/Image_8.gif)
![](Files/GoogleExample.en/Image_9.gif)
![](Files/GoogleExample.en/Image_10.gif)
Search for pages containing all the given strings, and return only the top two results.
![](Files/GoogleExample.en/Image_11.gif)
![](Files/GoogleExample.en/Image_12.gif)
Display less verbose results and do not filter near-duplicate content and host crowding.
![](Files/GoogleExample.en/Image_13.gif)
![](Files/GoogleExample.en/Image_14.gif)
![](Files/GoogleExample.en/Image_15.gif)
![](Files/GoogleExample.en/Image_16.gif)
![](Files/GoogleExample.en/Image_17.gif)
![](Files/GoogleExample.en/Image_18.gif)
![](Files/GoogleExample.en/Image_19.gif)
![](Files/GoogleExample.en/Image_20.gif)
![](Files/GoogleExample.en/Image_21.gif)
![](Files/GoogleExample.en/Image_22.gif)