1. You'll have to write a regexp for this. In JS, something like  
textBox.value.match(/(\w+)/).length would probably come close, even if  
it wouldn't match special character operators, etc. Of course, the  
challenge would be that, even if you successfully count the number of  
words in your textbox, you'll have to account for search operators  
such as AND and OR, which would add to your tally but which Google may  
interpret very differently depending on the way in which they're used.

2. The only way to do this is to work through the results one at a  
time looking for the given text. The problem here is that Google may  
return results that contain all the different words of your phrase, or  
even variants of all the different words of your phrase, but a given  
result may not have the exact phrase. So your parsing mechanism will  
have to take that into account.

3. I don't know what you mean by this. If you're looking to  
automatically re-run the search monthly, I think you'll probably run  
into trouble with the TOS.

All of this said, I should note that your application sounds  
strikingly like SEO. I should warn you that, while SEO is not  
explicitly prohibited in the TOS, the API is designed to discourage  
it.  More specifically, the TOS expressly forbid you from using  
automated applications to submit queries, and the API will only return  
a maximum of 64 results, across 8 different requests. So if the result  
you're looking for is result number 65, you'll never know.  Just a  
friendly heads up.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!

And check out my blog, Adventures in Web Development, at 
http://jgeerdes.blogspot.com 
  !


On Aug 27, 2009, at 5:30 AM, Goel wrote:

>
> Hi
>
>  I am using google search ajax api in my .net application.
>  I need below requirement in this search functionality.
>
>  1. count number of words enter in the textbox and count number
> display in other textbox control on the aspx page.
>
>  2. Find Number of result of the particular text , entered in the
> search textbox.
>
> 3. Find global monthly search for that entered text.
>
> Please suggest me.
>
> Thanks
> vikas
>
> >


--~--~---------~--~----~------------~-------~--~----~
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