Skip to content
Website API / Analytics

Breakdown by dimension

GEThttps://<your Reveata origin>/api/v1/websites/{website}/analytics/breakdown

Top values of one dimension (page, referrer, source, channel, UTM fields, country, device, goal, …) with the requested metrics, sorted descending by sort (default: the first metric). Cursor-paginated. With dimension=page&engagement=true every row also carries engagement: the average deepest scroll, the share of visits that reached 25, 50, 75 and 100% of the page, and the average engaged time. warnings (beside pagination) says when the numbers are estimated, sampled or include imported totals.

Related: Overview totals and Time series in Analytics.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Query parameters

periodstringoptional

One of: realtime, today, yesterday, last_24h, last_7d, last_30d, last_90d, last_12m, week_to_date, last_week, month_to_date, last_month, year_to_date, all, custom · Default: "last_30d"

fromstringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

tostringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

granularitystringoptional

One of: minute, hour, day, week, month

comparestringoptional

One of: previous_period, previous_period_dow, year_over_year, custom, none · Default: "previous_period"

compareFromstringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

compareTostringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

filtersobject[] | stringoptional
segmentstringoptional

Pattern: ^[a-f0-9]{24}$

pinstringoptional

1–22 characters

dimensionstringrequired

One of: page, entry_page, exit_page, hostname, referrer, channel, source, utm_source, utm_medium, utm_campaign, utm_term, utm_content, ref, country, region, city, browser, os, device, screen, language, goal, external_link, visit_number, platform, prop

metricsstring[] | stringoptional
sortstringoptional

One of: visitors, sessions, pageviews, views_per_session, bounce_rate, avg_session_duration, revenue, revenue_per_visitor, conversion_rate, payments, new_customers, refunds, goal_completions, goal_conversion_rate, exit_rate, time_on_page, scroll_depth

limitintegeroptional

1 to 200 · Default: 10

cursorstringoptional

Up to 512 characters

engagementboolean | stringoptional
propertystringoptional

1–64 characters · Pattern: ^[^$.][^.]{0,63}$

goalstringoptional

1–200 characters

Headers

Authorizationstringrequired

Bearer followed by a site key, an account token or an OAuth access token with the analytics:read scope.

Response

Rows. Paginated with a cursor.

{
  "status": "string",
  "data": [
    {
      "value": "string",
      "label": "string",
      "values": "string",
      "previous": "string",
      "engagement": {
        "visits": 0,
        "scrolled": 0,
        "avgDepth": "string",
        "reached25": "string",
        "reached50": "string",
        "reached75": "string",
        "reached100": "string",
        "timed": 0,
        "avgTimeSec": "string"
      }
    }
  ],
  "pagination": {
    "limit": 0,
    "nextCursor": "string"
  },
  "warnings": [
    {
      "code": "sampled",
      "message": "string",
      "fraction": 0,
      "day": "string"
    }
  ]
}

Response fields

FieldTypeDescription
status"ok"
dataobject[]
data[].valuestring
data[].labelstring | null | null
data[].valuesobject<string, number>
data[].previousobject<string, number> | null | null
data[].engagementobject
data[].engagement.visitsinteger
data[].engagement.scrolledinteger
data[].engagement.avgDepthnumber | null | null
data[].engagement.reached25number | null | null
data[].engagement.reached50number | null | null
data[].engagement.reached75number | null | null
data[].engagement.reached100number | null | null
data[].engagement.timedinteger
data[].engagement.avgTimeSecnumber | null | null
paginationobject
pagination.limitinteger
pagination.nextCursorstring | null | null
warningsobject[]
warnings[].codestring
warnings[].messagestring
warnings[].fractionnumber
warnings[].daystring