谷歌定制搜索API如何让只有网址

问题描述 投票:1回答:2

我用的是谷歌自定义搜索API,这项工作很好,但我需要只有网址。我怎么没发现做到这一点,这可能吗?

google-custom-search
2个回答
0
投票

你有没有到:Customizing Results Snippets


0
投票

虽然问题是太旧了,但我写别人的答案

对的,这是可能的

为您需要在您的fields=items(link)要求增加一个额外的参数Get

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

不仅url你可以从谷歌cse结果得到任何种类的字段,

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

所有细节

© www.soinside.com 2019 - 2024. All rights reserved.