Click here to Skip to main content
15,888,065 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I need to embed a Google search engine in my desktop application. I need to search in web.

The problem, that I don't want any browser window in my application. What I want is workflow similar to this:
1) Connect to the google server.
2) Request for the search.
3) Get search results in some structured format.
4) Display search results using my own UI.

So, is it possible with one of the current Google APIs?
Btw, I'm using Qt as a framework (if it might help).

Thanks.
Posted

1 solution

You can use the Google AJAX APIs in your desktop application, the API exposes a raw RESTful interface that returns JSON encoded results that are easily processed by most languages and run-times,however, a few special considerations that you want to take into account (e.g., the userip parameter which identifies the IP address of the client for which the query is being made). You also want to make sure to review the TOS in detail to make certain that your application won't be in violation of clauses such as the prohibition of robots, spiders, and other applications which make automated queries, etc. You can find a number of relevant resources, including code snippets for various languages that you might be considering using, at the links below.
TOS: http://code.google.com/apis/ajaxsearch/terms.html[^]
Documentation:
http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje[^]
http://code.google.com/apis/ajaxsearch/documentation/reference.html[^]
 
Share this answer
 
Comments
progDes 1-Sep-10 6:19am    
Ok, thanks. This seems to be what I need.
BillW33 21-Aug-12 12:37pm    
If it gives you the solution you need you should mark it as the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900