Search performance of your site — clicks, impressions, CTR
google-search-console.performanceGet your site's Google Search performance — clicks, impressions, CTR and top queries
- 价格
- free按目录价
- 成功率
- 100%近 30 天 · 23,864 次
- 延迟 p50
- 161 毫秒p95 610 毫秒
- 最后验证
- 2026年7月28日实测可用
POSThttps://toolswitch.dev/v1/tools/google-search-console.performanceBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
request shape previously live-verified via the registry entry's examples. Query data is retained 16 months
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
siteUrl | 字符串 | 必填 | Raw property id accepted — treg encodes it: 'sc-domain:example.com' for a domain property, or 'https://example.com/' (with trailing slash) for a URL-prefix one. treg's connection picker lists both forms | sc-domain:example.com |
| 请求体(JSON) | ||||
type | 字符串 | 可选 | web (default) | image | video | news | discover | googleNews | web |
endDate | 字符串 | 必填 | 2026-06-28 | |
rowLimit | 整数 | 可选 | 1–25000, default 1000 | 100 |
startRow | 整数 | 可选 | pagination offset | 0 |
dataState | 字符串 | 可选 | final (default) | all — 'all' includes fresh, still-incomplete data | final |
startDate | 字符串 | 必填 | YYYY-MM-DD; data lags ~2 days, so 'today' is always empty | 2026-06-01 |
dimensions | 数组 | 可选 | any of query, page, country, device, date, searchAppearance. OMIT for a site TOTAL — summing a dimension does NOT equal the total, because rows below the privacy threshold are withheld | ["query"] |
dimensionFilterGroups | 数组 | 可选 | filters, e.g. [{"filters":[{"dimension":"page","operator":"contains","expression":"/blog/"}]}] | |
- 路径参数
siteUrl字符串必填Raw property id accepted — treg encodes it: 'sc-domain:example.com' for a domain property, or 'https://example.com/' (with trailing slash) for a URL-prefix one. treg's connection picker lists both forms
示例:
sc-domain:example.com- 请求体(JSON)
type字符串可选web (default) | image | video | news | discover | googleNews
示例:
webendDate字符串必填示例:
2026-06-28rowLimit整数可选1–25000, default 1000
示例:
100startRow整数可选pagination offset
示例:
0dataState字符串可选final (default) | all — 'all' includes fresh, still-incomplete data
示例:
finalstartDate字符串必填YYYY-MM-DD; data lags ~2 days, so 'today' is always empty
示例:
2026-06-01dimensions数组可选any of query, page, country, device, date, searchAppearance. OMIT for a site TOTAL — summing a dimension does NOT equal the total, because rows below the privacy threshold are withheld
示例:
["query"]dimensionFilterGroups数组可选filters, e.g. [{"filters":[{"dimension":"page","operator":"contains","expression":"/blog/"}]}]
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X POST 'https://toolswitch.dev/v1/tools/google-search-console.performance' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"endDate":"2026-07-21","rowLimit":2,"startDate":"2026-07-01"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-search-console.performance",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"endDate\":\"2026-07-21\",\"rowLimit\":2,\"startDate\":\"2026-07-01\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-search-console.performance", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"endDate\":\"2026-07-21\",\"rowLimit\":2,\"startDate\":\"2026-07-01\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。