使用谷歌API进行图像搜索

时间:2014-06-19 07:35:00

标签: image

https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=apple+icon

使用上述API获取搜索关键字的图像集。 API会返回搜索关键字的确切结果。但我想要的是限制搜索图像的大小和颜色。

是否可以将图像大小和图像颜色作为参数发送到API调用。 我搜索了文档,但都是徒劳的。

提前致谢。

1 个答案:

答案 0 :(得分:0)

来自Google的API documentation

可选的URl参数:

<强> imgsz

imgsz=icon

Restricts the search to images of the specified size, where size can be one of:

imgsz=icon restricts results to small images
imgsz=small|medium|large|xlarge restricts results to medium-sized images
imgsz=xxlarge restricts results to large images
imgsz=huge restricts resykts to extra-large images

对于颜色( imgcolor )就在那......

之上
相关问题