谷歌自定义搜索API如何只获取网址

时间:2017-03-10 14:00:18

标签: google-custom-search

我使用谷歌自定义搜索API,这很好用,但我只需要获取网址。我没有发现这是怎么回事?有可能吗?

2 个答案:

答案 0 :(得分:0)

您是否考虑过:Customizing Results Snippets

答案 1 :(得分:0)

虽然问题太老了,但我正在为其他人写一个答案

是可以的

为此,您需要在fields=items(link)请求中添加一个附加参数Get

https://www.googleapis.com/demo/v1?key=YOUR-API-KEY&fields=items(link)

不仅url,您还可以从Google cse结果中获取任何字段

这是来源https://developers.google.com/custom-search/v1/performance

所有详细信息