Hi,

Yeah! what Jeremy said... Sorry I was not a bit more clear on it, but
that's what I do is pass the &cx=YOUR_CSE_ID param to the RESTful part
of the API query.

Another cool thing with it is you should be able to use the CSE labels
with it also, when using your CSE you can add as part of your query
(&q=) more:label_name to pull refinements from your CSE labels.

I have many sites in my CSE and say if I want to only use the ones
tagged as "webmaster" or "security" then that is what I did to make it
work.

For a quick demo....

Go here

http://www.visionjinx.net/

then enter in the search box

more:security Google

then click the "CSE" search tab above the search box to execute a CSE
search

Notice the results.... You can also click the "more results" link
(below the results) to go to my CSE page

Then back on my sites page change your query to

more:webmaster Google

Click the CSE tab again and see the results change... click the more
results link and you will see the refinements for that label also

Hope that helps :)

Cheers!
Vision Jinx

On Apr 16, 6:31 am, Convoyer <[email protected]> wrote:
> Thanks guru
>
> I think you are talking about the javascript that we get on adding a
> custom search, correct me if i am wrong.
> But i want to use google webservice api, so that i can parse the json
> response and use it.
>
> Is there a way to accomplish this with google search api.
> Logically thinking, something like 
> --http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=nike%20si...
> Is google providing such an option? is there a different syntax for
> this.
>
> Thanks
>
> On Apr 16, 4:58 pm, "Vision Jinx (Guru)" <[email protected]> wrote:
>
> > Hi,
>
> > You can probably use some google search operators for it, but probably
> > the most versatile solution would be to use the API with the Google
> > CSE (custom search engine)
>
> > In your CSE (under sites) you can add the sites you want then pass
> > your CSE ID to the search API and it should give you results from
> > those two sites.
>
> > Cheers!
> > Vision Jinx
>
> > On Apr 16, 3:28 am, Convoyer <[email protected]> wrote:
>
> > > Hi guys
>
> > > I have this specific requirement where I want to search something in
> > > TWO specific sites.
> > > For example I can search on one site by using the 
> > > url,http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=nike%20si...
>
> > > but how can i search the same nike on both ebay.com and rediff.com, on
> > > a single query.
> > > Is it possible with the google ajax api. Plz help
>
> > > Thanks
> > > con
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to