Get channel stats
loyalty_statsRetrieve a StreamElements channel's loyalty statistics for a day, week, month, or year around a specified date.
Instructions
Get the channel's StreamElements statistics for a period (year, month, week or day) around a date.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"interval": "<interval>",
"date": "<date>"
},
"name": "loyalty_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | StreamElements timezone index | |
| date | Yes | A date inside the period: Unix time in milliseconds or an ISO 8601 string | |
| channel | No | StreamElements channel id (24-char hex). Defaults to SE_CHANNEL_ID or the channel that owns the token. | |
| interval | Yes | Length of the period |