如何限制Google搜索API返回的结果数 [英] How to limit the number of results returned by google search API

查看:210
本文介绍了如何限制Google搜索API返回的结果数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在项目中使用Google搜索API进行图像搜索.默认情况下,它返回8个图像和页面,但我只需要6个图像和页面.我该如何实现?
我试图通过使用rsz = 6和url来限制它,但是它不起作用.



感谢

Hi,

I have used Google search API for image search in my project. By default it returns 8 images and pages but i want only 6 images and pages. How can i achieve it?
I tried to limit it by using rsz=6 along with url but it did not work.



Thanks

推荐答案

在此处阅读: http://code.google.com/apis/customsearch/v1/using_rest.html#query-params [
Read here: http://code.google.com/apis/customsearch/v1/using_rest.html#query-params[^] look for the parameters relevant to pagination: num and start.

Cheers!
-MRB


这篇关于如何限制Google搜索API返回的结果数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆