You need to download the Java client library.

How do I create a CSE that searches the entire web?

From the Google Custom Search homepage, click “Create a Custom Search Engine” and follow the steps on the page to begin setting up your CSE. Under “Sites to Search,” enter at least one valid URL (e.g. www.google.com).

On the third page of the setup guide, click any of the links under the Next steps section to navigate to your Control panel. Open the Basics tab and select “Search the entire web but emphasize included sites” under the Preferences section. Be sure to save your changes.

Finally, open the Sites tab and delete the site you entered during the initial setup process.

GSON

You can use GSON (http://code.google.com/p/google-gson/) to parse the incoming JSON text and convert to Java object graph.

JSON

http://code.google.com/apis/language/translate/v1/using_rest_translate.html#json_snippets_java
http://www.json.org/java/
https://github.com/douglascrockford/JSON-java

Google Custom Search API

Leave a Reply

Your email address will not be published. Required fields are marked *