Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web 是否有显示';相关搜索';使用谷歌自定义搜索API时_Web_Google Custom Search - Fatal编程技术网

Web 是否有显示';相关搜索';使用谷歌自定义搜索API时

Web 是否有显示';相关搜索';使用谷歌自定义搜索API时,web,google-custom-search,Web,Google Custom Search,我正在使用谷歌自定义搜索API在我的网站上显示谷歌搜索结果,但是,我希望显示“相关搜索”,就像普通谷歌搜索底部显示的搜索一样 这可能吗?如果是的话,你怎么做 提前感谢我知道relatedQueries.enabled可以“get”格式使用。有关返回的结果,请参见示例,如下所示,所有这些都来自此链接 这几乎是一个复制品,只是为了购物? GET https://www.googleapis.com/shopping/search/v1/public/products?country=US&

我正在使用谷歌自定义搜索API在我的网站上显示谷歌搜索结果,但是,我希望显示“相关搜索”,就像普通谷歌搜索底部显示的搜索一样

这可能吗?如果是的话,你怎么做


提前感谢

我知道relatedQueries.enabled可以“get”格式使用。有关返回的结果,请参见示例,如下所示,所有这些都来自此链接


这几乎是一个复制品,只是为了购物?
GET https://www.googleapis.com/shopping/search/v1/public/products?country=US&q=shoes&relatedQueries.enabled=true&key=key

{
 "kind": "shopping#products",
 ...
 "relatedQueries": [
  "jordan shoes",
  "nike shoes",
  "dc shoes",
  "puma shoes"
 ]
 ...
 "items": [
  ...
 ]
}