read
analytics

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

Changed on

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
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesanalytics:read

Request body

object required
dimensions, string[] required
metrics, string[] required
days, integer

Lookback window (default 30).

limit, integer

Max rows (default 50).

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision