Run a GA4 pivot report by property id
google-analytics.x.analyticsdata-properties-runpivotreportproperties.runPivotReport — Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 0 chamadas
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-runpivotreportBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
property | string | Obrigatório | A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be un | |
- Parâmetros de caminho
propertystringObrigatórioA Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be un
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-runpivotreport' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-runpivotreport",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-runpivotreport", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
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.