Skip to content
Docs

Stats API

Stream and widget statistics.

View as Markdown
On this page

Authenticate with a personal token as Authorization: Bearer pxp_...; the operations are also MCP tools unless noted. The full machine-readable definition is in the OpenAPI specification.

OperationMethod and pathScope
Get last stream reportGET /stats/last-streamaccount:read
List stream sessionsGET /stats/sessionsaccount:read
Get daily statsGET /stats/dailyaccount:read
List account activityGET /activityaccount:read
Get account activity statsGET /activity/statsaccount:read

Operations

Get last stream report

GET/api/v1/stats/last-stream

Returns the most recent stream session: start/end, duration and counts of follows, subs, gifts, cheers, raids and donations.

Scope: account:read (Read your account) · MCP tool: get_last_stream_report · Notes: read only

Terminal
curl -X GET "https://pxstudio.cloud/api/v1/stats/last-stream" \
  -H "Authorization: Bearer $PX_TOKEN"

List stream sessions

GET/api/v1/stats/sessions

Lists your recent stream sessions (start, end, duration and counts of follows, subs, gifts, cheers, raids and donations), newest first. The CSV export is on the stats page.

Scope: account:read (Read your account) · MCP tool: list_stream_sessions · Notes: read only

NameInTypeRequiredDescription
limitqueryintegeroptional1 to 50
Terminal
curl -X GET "https://pxstudio.cloud/api/v1/stats/sessions" \
  -H "Authorization: Bearer $PX_TOKEN"

Get daily stats

GET/api/v1/stats/daily

Returns your channel events per day for the last 1 to 90 days (follows, subs, resubs, gifted subs, cheers and bits, raids and raid viewers, donations and amounts), oldest first.

Scope: account:read (Read your account) · MCP tool: get_daily_stats · Notes: read only

NameInTypeRequiredDescription
daysqueryintegeroptional1 to 90
Terminal
curl -X GET "https://pxstudio.cloud/api/v1/stats/daily" \
  -H "Authorization: Bearer $PX_TOKEN"

List account activity

GET/api/v1/activity

Lists the stream events of your account across all overlays (follows, subs, cheers, raids, tips, redemptions, hype trains), newest first, with optional kind, source and search. Names and messages come from viewers.

Scope: account:read (Read your account) · MCP tool: list_account_activity · Notes: read only

NameInTypeRequiredDescription
limitqueryintegeroptional1 to 50
kindqueryall, follow, sub, cheer, raid, tip, redemption, hypeoptional
sourcequeryall, twitch, kick, kofioptional
qquerystringoptionalUp to 60 characters
beforeIdqueryintegeroptionalOlder page: the smallest id you have. At least 1
Terminal
curl -X GET "https://pxstudio.cloud/api/v1/activity" \
  -H "Authorization: Bearer $PX_TOKEN"

Get account activity stats

GET/api/v1/activity/stats

Returns the counts of the current stream session across your own account: follows, subs, cheers and bits, raids and raid viewers, tips, redemptions and hype trains. For an overlay shared with you, get_activity_stats returns the overlay owner's numbers instead.

Scope: account:read (Read your account) · MCP tool: get_account_activity_stats · Notes: read only

Terminal
curl -X GET "https://pxstudio.cloud/api/v1/activity/stats" \
  -H "Authorization: Bearer $PX_TOKEN"

Was this page helpful?