如何搜索Web和图像来自Google自定义搜索JSON API?
我正在实施 Google的自定义搜索JSON API 将在我的应用程序中搜索网络和图像。我可以独立查询网络和图像。
for网络:https://www.googleapis.com/customsearch/v1?key=jekequent {key}& start = $ {start}& cx = $ {cx}
对于图像:https://www.googleapis.com/customsearch/v1?key=jekequejuntion {key}& searchType = image& start& start = $ {start}& amp; cx = $ {cx}& q = = = = = $ {搜索Val}
这很好。但是,如您所见,我必须提出2个单独的请求,以获取网络结果和单个查询值的图像。这是一个问题,因为它为要超过。因此,我需要找到一种方法来提出一个请求,以使我返回特定搜索值的Web和图像结果。
任何帮助或建议将不胜感激。
I'm implementing Google's Custom Search JSON API into my application which shall search for both web and images. I am able to query for web and images independently.
For web: https://www.googleapis.com/customsearch/v1?key=${key}&start=${start}&cx=${cx}&q=${searchVal}
For images: https://www.googleapis.com/customsearch/v1?key=${key}&searchType=image&start=${start}&cx=${cx}&q=${searchVal}
This works perfectly. However, as you can see, I have to make 2 separate requests to get the web results and the images for a single query value. This is an issue since it makes room for Google's search query quota to be exceeded. So, I need to find a way to make a single request which returns me both the web and image results for a particular search value.
Any help or recommendation would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论