Skip to content

API reference

Get site analytics breakdown

analytics.GetSiteAnalyticsBreakdownReadAPI key

Read a website's traffic grouped by page, source, campaign, country, device or another supported dimension for the selected dates.

POST/v1/operations/analytics.GetSiteAnalyticsBreakdown
On this page

Access & visibility

Allow analytics.GetSiteAnalyticsBreakdown on your API key.

Workspace access by default. Private member data requires approved member delegation through Brigg-Act-As; the key supplies permissions while private ownership and project boundaries remain enforced.

Set up authentication · Choose permissions

Request fields

Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.

bundle_idstringRequired

Select a website and use its content_id. This is the website identity, not a domain hostname or workspace ID. workspace.ListBundles.

At least 1 character.

dimensionstringRequired

Dimension used to group the traffic results.

Allowed: "page", "entry_page", "source", "referrer", "campaign", "country", "device", "browser", "os".

fromintegerOptional

First UTC day, inclusive: floor(unixMilliseconds / 86400000). Defaults to 29 days before to. It is not a timestamp or date string.

tointegerOptional

Last UTC day, inclusive, as days since 1970-01-01. Defaults to today. If from is after to it becomes to; a difference above 366 is reduced to 366. Read the effective bounds in the response.

limitintegerOptional

Number of results to request per page.

Range: 1 to 100.

Choose and interpret a reporting interval

from and to are inclusive UTC day indexes, not dates or Unix milliseconds. For example, 1 October 2026 is 20727. In JavaScript use Math.floor(Date.parse("2026-10-01T00:00:00Z") / 86400000). Omitted to means today; omitted from means 29 days before to. The service clamps a span longer than 366 days. Read the response's from and to to see the interval actually used.

bounceRate is a fraction, so 0.2 means 20%. Fields ending in Ms are durations in milliseconds. Summary visitors is the sum of daily visitor counts, not a deduplicated count of people across the interval. The same visitor can count on several days; workspace totals also sum across sites.

Response

Returns 200 OK with a JSON body.

bundle_idstringRequired

Bundle identifier.

dimensionstringRequired

Dimension used to group the traffic results.

fromnumberRequired

First UTC day in the reporting interval, inclusive. A day index counts days since 1970-01-01; multiply by 86400000 to obtain Unix milliseconds.

tonumberRequired

Last UTC day in the reporting interval, inclusive, as a day index since 1970-01-01.

rowsarray of objectRequired

Traffic measurements grouped by the requested dimension.

Item fields
valuestringRequired

Value of the grouping dimension for this row.

pageviewsnumberRequired

Pageviews for this dimension value, except entry_page where it counts session landings.

visitorsnumberRequired

Sum of daily distinct visitors per site. A person returning on another day or site can be counted again; this is not a deduplicated multi-day audience.

avg_engagement_msnumberRequired

Avg engagement ms, in milliseconds.

Errors & retries

This operation reads data. It needs no idempotency key and can be retried after a transient failure.

For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.

HTTP status Code What to do
400 invalid_json Send a JSON object with Content-Type: application/json.
400 invalid_input Check the request fields and types.
401 invalid_key The workspace API key is missing, invalid or revoked.
403 forbidden Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member.
404 not_found The requested operation or resource is not available to this credential.
429 rate_limited Wait for Retry-After before retrying.

Next steps

Download OpenAPI · Versioning & retirement

JSON schemas

Use the complete schemas for validation or client generation.

Full request JSON schema
{
  "type": "object",
  "properties": {
    "bundle_id": {
      "type": "string",
      "minLength": 1,
      "description": "Select a website and use its content_id. This is the website identity, not a domain hostname or workspace ID. [workspace.ListBundles](/developers/reference/workspace/ListBundles)."
    },
    "dimension": {
      "type": "string",
      "enum": [
        "page",
        "entry_page",
        "source",
        "referrer",
        "campaign",
        "country",
        "device",
        "browser",
        "os"
      ],
      "description": "Dimension used to group the traffic results."
    },
    "from": {
      "type": "integer",
      "description": "First UTC day, inclusive: floor(unixMilliseconds / 86400000). Defaults to 29 days before to. It is not a timestamp or date string."
    },
    "to": {
      "type": "integer",
      "description": "Last UTC day, inclusive, as days since 1970-01-01. Defaults to today. If from is after to it becomes to; a difference above 366 is reduced to 366. Read the effective bounds in the response."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Number of results to request per page."
    }
  },
  "required": [
    "bundle_id",
    "dimension"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "bundle_id": "e_example",
      "dimension": "page"
    }
  ]
}
Full response JSON schema
{
  "type": "object",
  "properties": {
    "bundle_id": {
      "type": "string",
      "description": "Bundle identifier."
    },
    "dimension": {
      "type": "string",
      "description": "Dimension used to group the traffic results."
    },
    "from": {
      "type": "number",
      "description": "First UTC day in the reporting interval, inclusive. A day index counts days since 1970-01-01; multiply by 86400000 to obtain Unix milliseconds."
    },
    "to": {
      "type": "number",
      "description": "Last UTC day in the reporting interval, inclusive, as a day index since 1970-01-01."
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "Value of the grouping dimension for this row."
          },
          "pageviews": {
            "type": "number",
            "description": "Pageviews for this dimension value, except entry_page where it counts session landings."
          },
          "visitors": {
            "type": "number",
            "description": "Sum of daily distinct visitors per site. A person returning on another day or site can be counted again; this is not a deduplicated multi-day audience."
          },
          "avg_engagement_ms": {
            "type": "number",
            "description": "Avg engagement ms, in milliseconds."
          }
        },
        "required": [
          "value",
          "pageviews",
          "visitors",
          "avg_engagement_ms"
        ],
        "additionalProperties": false
      },
      "description": "Traffic measurements grouped by the requested dimension."
    }
  },
  "required": [
    "bundle_id",
    "dimension",
    "from",
    "to",
    "rows"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "bundle_id": "e_example",
      "dimension": "page",
      "from": 20727,
      "to": 20728,
      "rows": [
        {
          "value": "/pricing",
          "pageviews": 55,
          "visitors": 32,
          "avg_engagement_ms": 1
        }
      ]
    }
  ]
}

Search by operation name or what you want to build.

Use arrow keys to browse. Enter opens a result.