Google Web Search API(Deprecated) - How to increasethe number of results returned?

47 views
Skip to first unread message

Suhail Ansari

unread,
Mar 19, 2012, 11:14:00 AM3/19/12
to google-ajax...@googlegroups.com
Hello,

I am using the Web Search API(deprecated) and I am getting some results in JSON format, but only 4 results are returned for any query.
Is there a method to set a parameter's value to increase this number, maybe upto 10 at least.?


Adam Feldman

unread,
Mar 20, 2012, 6:55:39 PM3/20/12
to google-ajax...@googlegroups.com
You can use the rsz parameter in your query to request between 1-8 results by using, for instance, rsz=8.  4 is the default.

Please consider migrating to the non-deprecated Custom Search API, which will allow you to get up to 10 results:


--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/xIzLw9nkfXMJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Suhail Ansari

unread,
Mar 31, 2012, 5:53:14 PM3/31/12
to google-ajax...@googlegroups.com
Thank You, its working fine.
Reply all
Reply to author
Forward
0 new messages