Google Custom Search Engine - search by image

亡梦爱人 提交于 2020-05-12 07:10:06

问题


Right now I'm using Custom Search Engine (CSE) to search through entire web by search term. The request looks like:

GET "https:/www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&q=SEARCH_TERM"

And this request returns me list of search results.

But, I need to implement search by image or image url. Do Google API provide such a url param? Maybe something like "image_url"? So, the request can look the following:

https://www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&image_url=http://www.example.com/image.png

Basically, I need to implement the same functionality as images.google.com/ but using my Custom Search Engine. Thanks.

Example of what I need to implement:

 implement


回答1:


As far as I know, what you're looking for is only supported by Vision AI service (partially at least, never used it before). Google CSE API only allows you to search images and not by images as you may noticed.



来源:https://stackoverflow.com/questions/42925323/google-custom-search-engine-search-by-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!