使用Google自定义搜索API获取Google图片中的图片网址?

我正尝试使用Google自定义搜索API来获取Google图片中的图片网址。 如何将我的自定义搜索网站设置为使用images.google.com作为其网站进行搜索? 当我坐起我的自定义搜索时,我试图使用Google图片网址(images.google.com),但这似乎不起作用。

当我尝试进行REST调用时,这是我得到的:

{
"title": "Google Custom Search - tomat",
"totalResults": "0",
"searchTerms": "tomat",
"count": 10,
"inputEncoding": "utf8",
"outputEncoding": "utf8",
"safe": "off",
"cx": "THIS IS WHERE THE CX NUMBER IS"
}

我试图在搜索查询中获取三个第一次点击的图片网址。 有任何想法吗?


我想到了。 您必须在控制台中启用图片搜索,并在查询中使用searchType =图片,但我必须添加* .google.com才能搜索网站。 当我在google.com上使用通配符时,它工作正常。 :)

链接地址: http://www.djcxy.com/p/83799.html

上一篇: Getting URL of images in Google Images with Google Custom Search API?

下一篇: Google Custom Search API for image searches