Click here to Skip to main content
11,927,711 members (37,195 online)
Rate this:
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 1-Sep-10 6:19am
Ok, thanks. This seems to be what I need.
CIDev 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.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