Search Analytics API 现已支持 Google 探索、Google 新闻和正则表达式
2021 年 10 月 25 日,星期一
目前,如果您的网站有来自 Google 搜索、Google 探索和 Google 新闻的流量,则可以在 Google Search Console 效果报告中查看相关数据。自从我们推出 Google 探索和 Google 新闻效果报告,我们就不断收到用户请求,希望我们将这些统计信息也添加到 Search Analytics API 中。
我们非常高兴地宣布,从今天开始这些信息就添加到此 API 中了。
之前,您可以在 searchType
参数中根据 news
、video
、image
和 web
过滤 API 调用,现在我们将此参数重命名为 type
,并且将支持两个额外参数:discover
(适用于 Google 探索)和 googleNews
(适用于 Google 新闻)。请注意,虽然将参数重命名为 type
,但我们仍支持使用旧名称 searchType
。
在 Search Console 效果报告中,某些指标和维度仅与部分数据类型兼容;例如,Google 探索报告不支持查询和排名。同样,如果请求不受支持的维度,Search Analytics API 将返回错误消息。
此外,查询和网页维度现已支持正则表达式。
我们将向现有的匹配运算中添加两个新的运算符:includingRegex
和 excludingRegex
。
请参阅 Search Analytics API 文档了解详情。如果您有任何疑问,可以在搜索中心社区或 Twitter 上提问。
发布者:Search Console 团队的 Ziv Hodak 和 Roman Priborkin
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["Google Search Console's Search Analytics API now includes data for Discover and Google News, alongside existing Search data."],["The API's `searchType` parameter is renamed to `type` and supports new values `discover` and `googleNews` for filtering data."],["Unsupported dimensions with certain data types will result in error messages from the API, aligning with the Search Console Performance reports' behavior."],["Regex support is added to the API's query and page dimensions with new operators `includingRegex` and `excludingRegex` for enhanced filtering."]]],[]]