There are a couple of problems with your task as far as the Google AJAX Search API is concerned. First, the closest thing to a result count that the API offers is the cursor.estimatedResultCount property. Unfortunately, it is known to be highly inconsistent and wildly inaccurate. It is generally a good idea NOT to rely on it for mission- critical functionality. And second, the API's TOS explicitly forbid the use of applications which submit automated queries. In other words, you would have to write your application in such a way that you would have some sort of user interaction before each of your queries was run. For a set of several thousand, that would probably be a problem.
I would suggest that you use a different search API (e.g., Bing or Yahoo!), but I know that at least Yahoo has a similar restriction on automated queries. And frankly, I can't imagine that Bing wouldn't as well. 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 28, 2009, at 1:41 AM, mjc147 wrote: > > I want to run several thousand search queries for the sole purpose to > find out the number of results for each search. The actual search > results are of no interest to me. > > What is the best way to do this? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
