Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Application
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).
Posted 31-Aug-10 23:18pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
progDes at 1-Sep-10 6:19am
Ok, thanks. This seems to be what I need.
CIDev at 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)

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170

Advertise | Privacy | Mobile
Web04 | 2.8.150331.1 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100