Google Analytics · Arazzo Workflow

Google Analytics List Properties and Run Realtime Report

Version 1.0.0

List GA4 properties under an account, then run a realtime report for the chosen property.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine-LearningAttributionArazzoWorkflows

Provider

google-analytics

Workflows

list-properties-run-realtime
Confirm a GA4 property exists, then run a realtime report against it.
Lists the properties under an account and runs a runRealtimeReport request for active users by country against the supplied property.
2 steps inputs: accessToken, account, property outputs: properties, rowCount, rows
1
listProperties
List the GA4 properties under the account so the target property can be confirmed before running the realtime report.
2
runRealtimeReport
Run a realtime report returning active users broken down by country for the present moment through the last thirty minutes.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Analytics List Properties and Run Realtime Report
  summary: List GA4 properties under an account, then run a realtime report for the chosen property.
  description: >-
    A live-monitoring flow that pairs the Admin API property listing with the
    Data API realtime reporting endpoint. The workflow lists the GA4 properties
    under an account so a property can be confirmed, then runs a realtime report
    that surfaces active users by country for the last thirty minutes. Every
    request is spelled out inline, including the OAuth bearer authorization, so
    the flow is self-describing.
  version: 1.0.0
sourceDescriptions:
- name: propertiesApi
  url: ../openapi/google-analytics-properties-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-properties-run-realtime
  summary: Confirm a GA4 property exists, then run a realtime report against it.
  description: >-
    Lists the properties under an account and runs a runRealtimeReport request
    for active users by country against the supplied property.
  inputs:
    type: object
    required:
    - accessToken
    - account
    - property
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with an analytics read scope.
      account:
        type: string
        description: 'Account resource name to list properties under (e.g. accounts/123).'
      property:
        type: string
        description: 'GA4 property resource name to report on (e.g. properties/1234).'
  steps:
  - stepId: listProperties
    description: >-
      List the GA4 properties under the account so the target property can be
      confirmed before running the realtime report.
    operationId: analyticsadmin.properties.list
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: filter
      in: query
      value: parent:$inputs.account
    - name: pageSize
      in: query
      value: 200
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      properties: $response.body#/properties
  - stepId: runRealtimeReport
    description: >-
      Run a realtime report returning active users broken down by country for
      the present moment through the last thirty minutes.
    operationId: analyticsdata.properties.runRealtimeReport
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: property
      in: path
      value: $inputs.property
    requestBody:
      contentType: application/json
      payload:
        dimensions:
        - name: country
        metrics:
        - name: activeUsers
        limit: "100"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      rows: $response.body#/rows
      rowCount: $response.body#/rowCount
      metricHeaders: $response.body#/metricHeaders
  outputs:
    properties: $steps.listProperties.outputs.properties
    rows: $steps.runRealtimeReport.outputs.rows
    rowCount: $steps.runRealtimeReport.outputs.rowCount

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/google-analytics-list-properties-run-realtime-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.