Googleapis Analyticsdata
Google Analytics Data API is a Google API for retrieving Google Analytics 4 reporting data.
- Base URL:
https://analyticsdata.googleapis.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
analyticsdata_properties_getmetadata— GET /v1beta/{name} — Returns metadata for dimensions and metrics available in reporting methods. Usedanalyticsdata_properties_batchrunpivotreports— POST /v1beta/{property}:batchRunPivotReports — Returns multiple pivot reports in a batch. All reports must be for the same GA4analyticsdata_properties_batchrunreports— POST /v1beta/{property}:batchRunReports — Returns multiple reports in a batch. All reports must be for the same GA4 Properanalyticsdata_properties_checkcompatibility— POST /v1beta/{property}:checkCompatibility — This compatibility method lists dimensions and metrics that can be added to a reanalyticsdata_properties_runpivotreport— POST /v1beta/{property}:runPivotReport — Returns a customized pivot report of your Google Analytics event data. Pivot repanalyticsdata_properties_runrealtimereport— POST /v1beta/{property}:runRealtimeReport — Returns a customized report of realtime event data for your property. Events app
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: analyticsdata_properties_getmetadata
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: analyticsdata_properties_getmetadata, analyticsdata_properties_batchrunpivotreports, analyticsdata_properties_batchrunreports, analyticsdata_properties_checkcompatibility, analyticsdata_properties_runpivotreport, analyticsdata_properties_runrealtimereport |
name |
string | no | — | Path parameter name (required by some operations). |
property |
string | no | — | Path parameter property (required by some operations). |
body |
string | no | — | Request body as a JSON object string (for create/update operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |