List available events
Fetch the event index first so you know which event IDs are currently valid.
GET /api/v1/events
This page helps you explore the Event Metrics API and turn endpoints into working StreamElements commands. Start by checking which events and methods exist, then use the Command Lab to build and preview the exact reply your bot would send in chat.
GET /api/v1/events and GET /api/v1/event/{eventId}
?format=text when you want reply-ready command output.
This API is self-describing. Start with event discovery, then drill into event-specific method paths and parameter metadata.
Fetch the event index first so you know which event IDs are currently valid.
GET /api/v1/events
Every event declares its own methods, so inspect the event payload to discover what routes it supports.
GET /api/v1/event/peanuts-wasteland-s1
Add ?describe=true to a method route when you need parameter metadata before generating a command.
GET /api/v1/event/peanuts-wasteland-s1/leaderboard/pvp/player_kills_total?describe=true
Plain-text output keeps StreamElements replies clean. Optional parameters can be added only when you need them.
?format=text&top=10&competitor=name
These examples show how method discovery and method description are structured.
{
"title": "...",
"date": {
"start": "ISO",
"end": "ISO"
},
"owner": {
"href": "https://...",
"name": "..."
},
"methods": {
"farm": {
"description": "...",
"parameters": []
},
"leaderboard/pvp/player_kills_total": {
"description": "...",
"parameters": []
}
}
}
{
"description": "Leaderboard of Kills ⚔️",
"parameters": [
{
"name": "format",
"description": "If 'text' is provided, the response will be returned as a text/plain string, otherwise it will be returned as the default application/json.",
"required": false,
"type": "string",
"values": [
"text"
]
},
{
"name": "top",
"description": "The number of top results to return.",
"required": false,
"type": "number"
},
{
"name": "competitor",
"description": "If provided, instead of returning the full leaderboard, the response will include only the specified competitor's data versus the leader.",
"required": false,
"type": "string",
"values": [
"text"
]
}
]
}
Parameters marked optional can be omitted. Common method parameters include format for plain-text output,
top to limit results, and competitor to compare one competitor against the leader.
format · string · optionaltop · number · optionalcompetitor · string · optionalReference examples for common command setups using StreamElements Custom API variables.
!farmUse a player-aware farm endpoint with chat-friendly formatting controls.
Tip: $(queryescape ${1|all}) lets the same command handle both !farm and !farm wood. If no extra argument is supplied it defaults to all, and if a stat is supplied it passes that specific value through, so users can view everything or one stat without needing a second command.
!teamExample of getting the current team information of a player.
For setup and syntax details, refer to the official StreamElements documentation: Custom API variables.