网站站长工具 api 个维度

Webmaster tools api dimensions

我想知道是否有人有可用于网站站长工具的可用维度列表 API。

在官方文档中我找不到可用尺寸。

这是我的代码:

$webmastersService = new Google_Service_Webmasters($client);
$searchanalytics = $webmastersService->searchanalytics;
$request = new Google_Service_Webmasters_SearchAnalyticsQueryRequest;

$request->setStartDate('2013-01-01');
$request->setEndDate('2015-01-01');
$request->setDimensions(array("[query]"));

$qsearch = $searchanalytics->query("http://www.example.com", $request); 
$rows = $qsearch->getRows();

我想知道可以从网站管理员工具 api 获取哪些数据,并更改此行

$request->setDimensions(array("[query]"));

我的想法是从 google 网站管理员工具中获取最大类型的数据,例如查询、查询详细信息、页面、抓取统计信息、外部链接、反向链接……

您可以在搜索分析中找到有关搜索查询的信息。下面列出了支持的维度。

Acceptable values are:
"country": Filter against the specified country, as specified by 3-letter country code (ISO 3166-1 alpha-3).
"device": Filter results against the specified device type. Supported values:
DESKTOP
MOBILE
TABLET
"page": Filter against the specified URI string.
"query": Filter against the specified query string.

https://developers.google.com/webmaster-tools/v3/searchanalytics/query

您还可以生成抓取错误:

https://developers.google.com/webmaster-tools/v3/urlcrawlerrorscounts/query https://developers.google.com/webmaster-tools/v3/urlcrawlerrorssamples