https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=apple+icon
使用上述API获取搜索关键字的图像集。 API会返回搜索关键字的确切结果。但我想要的是限制搜索图像的大小和颜色。
是否可以将图像大小和图像颜色作为参数发送到API调用。 我搜索了文档,但都是徒劳的。
提前致谢。
答案 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 )就在那......
之上