capabilities.work

Batch Run Reports

A 2-step recipe with Google Analytics. We can help you get access.

Recipe · 2 steps

Batch Run Reports

Run multiple core reports for one GA4 property in a single batch request.

  1. List the GA4 properties under the account so the target property can be confirmed before submitting the batch.
  2. Submit two report definitions for the property in a single batch: active users by country and event count by event name.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with an analytics read scope.
  • account: Account resource name to list properties under (e.g. accounts/123).
  • property: GA4 property resource name to report on (e.g. properties/1234).
  • startDate: Inclusive start date for both reports as YYYY-MM-DD or NdaysAgo.
  • endDate: Inclusive end date for both reports as YYYY-MM-DD, yesterday, or today.
For your developer

Arazzo workflow google-analytics:batch-run-reports, 2 operations: analyticsadmin.properties.list → analyticsdata.properties.batchRunReports. Specs on APIs.io.