Skip to main content
GET
Get traffic by rep

Authorizations

Authorization
string
header
required

Bearer token authentication

Query Parameters

period
string

Named reporting period (default last_30_days). Supported names: today, last_7_days, last_30_days, last_90_days, last_12_months, this_month, last_month. An unsupported name returns 422.

Response

Success

The traffic a store's field of reps drove over a period — the resolved window, how many reps were active, the field's share of every visitor, the ranked leaderboard, and the remainder that names nobody, wrapped in the standard API response envelope.

period
object
required
active_reps
object
required

How many reps drove traffic, with the comparison every other headline figure carries.

visitor_share
number
required

Distinct visitors who arrived on a rep-carrying visit over every distinct visitor in the window, rounded to four decimals, and 0 when the store saw none. Computed from the same identity filter as the rows, and its denominator is not narrowed to the first rep-driven visit.

Required range: 0 <= x <= 1
total_visitors
integer
required

Total distinct bot-free visitors over the window — the denominator visitor_share is taken against.

reps
object[]
required

Reps ranked by distinct visitors descending, ties broken on name, cut to a top N. Reps hidden from leaderboards are absent.

unattributed
object
required

The rep-classified traffic that names nobody, folded into one remainder — chiefly visits arriving through an admin-owned share, which carries no member. It is not a rep row, and carries neither a member_id nor a name.

status
integer
required

The HTTP status code echoed in the response envelope.

meta
object
required