Search performance of your site — clicks, impressions, CTR
google-search-console.performanceGet your site's Google Search performance — clicks, impressions, CTR and top queries
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- 100%Últimos 30 dias · 23.864 chamadas
- Latência p50
- 161 msp95 610 ms
- Última verificação
- 28 de jul. de 2026Verificado e funcionando
POSThttps://toolswitch.dev/v1/tools/google-search-console.performanceBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
request shape previously live-verified via the registry entry's examples. Query data is retained 16 months
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
siteUrl | string | Obrigatório | 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 |
| Corpo (JSON) | ||||
type | string | Opcional | web (default) | image | video | news | discover | googleNews | web |
endDate | string | Obrigatório | 2026-06-28 | |
rowLimit | inteiro | Opcional | 1–25000, default 1000 | 100 |
startRow | inteiro | Opcional | pagination offset | 0 |
dataState | string | Opcional | final (default) | all — 'all' includes fresh, still-incomplete data | final |
startDate | string | Obrigatório | YYYY-MM-DD; data lags ~2 days, so 'today' is always empty | 2026-06-01 |
dimensions | matriz | Opcional | 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 | matriz | Opcional | filters, e.g. [{"filters":[{"dimension":"page","operator":"contains","expression":"/blog/"}]}] | |
- Parâmetros de caminho
siteUrlstringObrigatórioRaw 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
Exemplo:
sc-domain:example.com- Corpo (JSON)
typestringOpcionalweb (default) | image | video | news | discover | googleNews
Exemplo:
webendDatestringObrigatórioExemplo:
2026-06-28rowLimitinteiroOpcional1–25000, default 1000
Exemplo:
100startRowinteiroOpcionalpagination offset
Exemplo:
0dataStatestringOpcionalfinal (default) | all — 'all' includes fresh, still-incomplete data
Exemplo:
finalstartDatestringObrigatórioYYYY-MM-DD; data lags ~2 days, so 'today' is always empty
Exemplo:
2026-06-01dimensionsmatrizOpcionalany 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
Exemplo:
["query"]dimensionFilterGroupsmatrizOpcionalfilters, e.g. [{"filters":[{"dimension":"page","operator":"contains","expression":"/blog/"}]}]
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.