read

Run a compact GA4 report over the last N days. Provide GA4 API dimension and metric names (e.g. dimensions ["sessionDefa

Run a compact GA4 report over the last N days. Provide GA4 API dimension and metric names (e.g. dimensions ["sessionDefaultChannelGroup"], metrics ["sessions","totalRevenue"]). Queries the Google Analytics Data API, see https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema

post/api/v1/tools/ga4_run_report

Request

  • Base URL: https://app.magistry.io
  • URL: https://app.magistry.io/api/v1/tools/ga4_run_report
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.magistry.io/api/oauth/authorize, token URL https://app.magistry.io/api/oauth/token, scopes: analytics:read)

Request body

dimensionsstring[] required
metricsstring[] required
daysinteger

Lookback window (default 30).

limitinteger

Max rows (default 50).

Response

Tool result

okboolean required
resultunknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.