Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Google Api question: how to control the output result?

2:02 pm on Sep 18, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:July 8, 2007
votes: 0

Hi, I'd like to adopt Google ajax api on my website but i find it very difficult to use.

By using the code below, I can roughly get 1 result by entering a keyword.

My question is:
1. How to get more results? ( I've spent an hour searching the documentation in google code but still fail to get the relevant guiding...)

2. The current search output shows both titles and abstracts of each result, just like an ordinary search output we can see in Google search. Is it possible to strip the abstract and display only titles?

please give me some hints. Even a link to relevant documentation will be very useful.... I'm totally lost. Please help.

<script language="Javascript" type="text/javascript">

google.load('search', '1');

function OnLoad() {
var searchControl = new google.search.SearchControl(null);

searchControl.addSearcher(new google.search.WebSearch());