Skip to main content
GET
Hierarchical traffic time series for a scope

Authorizations

X-API-Key
string
header
required

Query Parameters

organization_id
string<shortuuid>
required

UUID of the organization to query (caller must be a member).

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
scope_type
enum<string>
default:organization

Hierarchy level being viewed. Defaults to organization (the top-level entry view).

Available options:
organization,
brand,
product,
trade_item
scope_id
string<shortuuid>

UUID of the brand / product / trade item to scope to. Required for every scope_type other than organization.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
group_by
enum<string>

Override the default child grouping. Most callers leave this blank — the service derives it from scope_type (org → brand, brand → product_and_trade_item, product → trade_item).

Available options:
brand,
product_and_trade_item,
trade_item
interval
enum<string>
default:day

Time bucket size for the X-axis.

Available options:
day,
week,
month
start
string<date-time>

Window start (UTC, inclusive). Defaults to 30 days before end.

end
string<date-time>

Window end (UTC, exclusive). Defaults to now.

metric
enum<string>
default:resolves

Counter to plot on the Y-axis. resolves = every scan the resolver served; page_visits = the hosted-page subset.

Available options:
resolves,
page_visits
top_n
integer
default:10

Cap on distinct stacked series. The remainder collapses into a single Others series so the chart stays readable.

Required range: 1 <= x <= 50

Response

OK

Stacked traffic time series for a scope, ready for ECharts.

Shape mirrors the ticket's Response shape example. The frontend feeds timestamps to the X-axis and each :class:SeriesEntryOut to a stacked series; total / previous_period_total power the summary cards above the chart.

scope
ScopeOut · object
required

Entity the chart is currently zoomed into.

Example:
breadcrumb
BreadcrumbEntryOut · object[]
required

Drill-down path from the org root to the current scope. The frontend renders this as a click-to-navigate trail.

interval
enum<string>
required

Time bucket size used to build timestamps.

Available options:
day,
week,
month
metric
enum<string>
required

Which counter the data arrays report.

Available options:
resolves,
page_visits
period
PeriodOut · object
required

Window covered by timestamps.

Example:
total
integer
required

Sum of every series total within period — top summary card.

Required range: x >= 0
previous_period_total
integer
required

Sum for the immediately preceding equal-length window. Used to compute the delta-vs-previous summary and per-series trend indicator. Zero when no historical data exists.

Required range: x >= 0
series
SeriesEntryOut · object[]
required

Children of the current scope, ranked by total descending. High-cardinality scopes apply a Top N + Others collapse — see top_n query param.

timestamps
string<date>[]
required

X-axis bucket starts, ISO date / datetime. Length matches every series' data array.