Skip to main content
GET
Website and member portal traffic for a period

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Headers

X-1Club-Chart-Image
enum<string>

Send png to have each picture carry its PNG (png, base64, at 2x) beside the SVG, for a client that shows images but does not draw SVG.

Available options:
png

Query Parameters

from
string<date>
required

First day of the period (YYYY-MM-DD), on the organization's clock.

to
string<date>
required

Last day of the period, inclusive.

source
enum<string>

Only the events of this source.

Available options:
website,
portal,
public_app
eventName
string

Only the events of this name, as byEvent lists them.

topMembers
integer
default:20

How many of the most active members rows lists.

Required range: 1 <= x <= 100
charts
enum<string>
default:none

Whether the answer carries pictures, as chart (and moreCharts) beside its figures - none (the default), the day-by-day unique visitors and events, or every one (adding the headline figures and the unique visitors of each source).

Available options:
none,
summary,
all

Response

The web traffic report

period
object
totals
object
bySource
object[]
byEvent
object[]
trend
object
chart
object

A picture of the answer, drawn from its own figures (never a second computation) in the caller's language: a member of staff's own when they chose one, otherwise the organization's. Present only when the request asks with charts=summary or charts=all (the default is none), and when the answer has something to draw. Every figure it shows is in alt and in the answer itself.

moreCharts
object[]

With charts=all: every other picture the answer can draw, after chart.

rowsScope
enum<string>

The scope the rows need: without it rows is null and the figures come alone.

Available options:
contacts:read
rows
object[] | null

The most active members, most events first.