Signup comes with $1 in credit. No subscription needed.Claim your $1

Catalog / SEO

googleanalytics.report API

googleanalytics.report

live

Your own site traffic, read from your GA4 property: sessions, users, page views, key events, revenue or any other metric, by day, channel, source, page, country or any other dimension, over a range of days, with filters, ordering and the totals. The numbers Analytics itself shows, in rows an agent can work with: where visits come from, which pages they land on, what changed since last month. Needs a connection (googleanalytics.account). Free.

live coverage

Google Analytics: all inputs

✓ marks a combination proven with a real provider call. Others are wired and unit-tested; their first live run verifies them.

Providers

ProviderStatus
Google Analytics live

Billing

Unit: per_call · unmatched results billed: no
Free: reading your own Analytics costs nothing here.

The exact quote is returned by /v1/inspect before every call and held with headroom on execution. The quote is the price floor: if the provider's actual cost overruns it, the run bills the overrun at the same rate, never above the hold. The unused part of every hold is released.

Run it

curl https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{
    "capability": "googleanalytics.report",
    "input": {  },
    "routing": {"provider": "auto"}
  }'

Input schema

{
  "properties": {
    "account_id": {
      "description": "The connection name from googleanalytics.accounts; optional when the workspace has one connection",
      "type": "string"
    },
    "days": {
      "default": 28,
      "description": "How many days to cover, counted back from end_date, when start_date is left out",
      "maximum": 1096,
      "minimum": 1,
      "type": "integer"
    },
    "dimensions": {
      "default": [
        "date"
      ],
      "description": "What each row is: date, channel, source, medium, source_medium, campaign, page, page_title, landing_page, country, city, device, event, month, or any GA4 API dimension name (sessionDefaultChannelGroup, pagePath). An empty list returns one row",
      "items": {
        "type": "string"
      },
      "maxItems": 9,
      "type": "array"
    },
    "end_date": {
      "description": "Last day, YYYY-MM-DD; default yesterday",
      "type": "string"
    },
    "filters": {
      "description": "Keep only the rows that match all of these, e.g. [{\"dimension\": \"channel\", \"operator\": \"equals\", \"value\": \"Organic Search\"}]. A dimension can be filtered without being a column",
      "items": {
        "properties": {
          "dimension": {
            "type": "string"
          },
          "operator": {
            "default": "equals",
            "enum": [
              "equals",
              "not_equals",
              "contains",
              "not_contains",
              "begins_with",
              "ends_with",
              "regex",
              "not_regex"
            ],
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "dimension",
          "value"
        ],
        "type": "object"
      },
      "maxItems": 10,
      "type": "array"
    },
    "limit": {
      "default": 100,
      "maximum": 5000,
      "minimum": 1,
      "type": "integer"
    },
    "metrics": {
      "default": [
        "sessions",
        "users",
        "views"
      ],
      "description": "What to count: sessions, users, new_users, views, engaged_sessions, engagement_rate, bounce_rate, avg_session_duration, events, key_events, revenue, or any GA4 API metric name (activeUsers, screenPageViews, totalRevenue)",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "type": "array"
    },
    "offset": {
      "default": 0,
      "description": "Rows to skip, for the next page",
      "minimum": 0,
      "type": "integer"
    },
    "order": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string"
    },
    "order_by": {
      "description": "One of the report\u0027s own metrics or dimensions. Default: date when it is a dimension, else the first metric, largest first",
      "type": "string"
    },
    "property": {
      "description": "The GA4 property: its number (\"123456789\"), \"properties/123456789\", or its name in Analytics. Optional when the connection has one property; googleanalytics.properties lists them",
      "type": "string"
    },
    "start_date": {
      "description": "First day, YYYY-MM-DD. Leave it out to count days back from end_date",
      "type": "string"
    }
  },
  "type": "object"
}

Normalized output fields

account · property · property_name · start_date · end_date · metrics · dimensions · rows · count · total_rows · totals · timezone · currency

More SEO capabilities

googleanalytics.accountsgoogleanalytics.accountgoogleanalytics.propertiesseo.serpseo.keywordsseo.backlinksseo.domain_overviewseo.ranked_keywordsseo.competitorsseo.page_audit All of them →