BrettZone

The Stats API provides read-only access to detailed fight statistics, bot career data, tournament aggregates, head-to-head records, and leaderboards. No authentication is required. All responses are JSON.

Base URL: /api.php/stats

This extends the existing BrettZone API. The original tournament/fight/player/video endpoints remain at /api.php.

Endpoints

Fight Stats Bot Career Stats Tournament Stats Head-to-Head Leaderboard

Fight Stats

Get detailed stats for a single fight including timing, pause info, judges scorecard, and per-player data.

GET /api.php/stats/fight/{tournamentID}/{gameID}
ParameterLocationDescription
tournamentID required path Tournament ID (e.g. nhrl_mar26_12lb)
gameID required path Game/fight ID (e.g. W-14)

Response Fields

Try It

Bot Career Stats

Aggregate stats for a bot across all public tournaments: wins, losses, win rate, KO breakdown, average fight duration, and recent fights.

GET /api.php/stats/bot/{botName}
ParameterLocationDescription
botName required path Bot's clean name -- lowercase, alphanumeric only (e.g. void, cherri)

Response Fields

Tip: Getting fight duration stats for a bot

Use the durationStats object to get average, median, longest, and shortest fight times for any bot. For example, /api.php/stats/bot/caldera returns durationStats.averageSeconds, durationStats.medianSeconds, plus the longest and shortest fights with opponent names and game IDs. The top-level avgMatchDurationSeconds, longestFight, and shortestFight fields are still available for backwards compatibility.

Try It


Tournament Stats

Aggregate statistics for an entire tournament: fight counts, average duration, win method breakdown, longest/shortest fights, and pause counts.

GET /api.php/stats/tournament/{tournamentID}
ParameterLocationDescription
tournamentID required path Tournament ID (e.g. nhrl_mar26_12lb)

Response Fields

Try It

Head-to-Head

Compare two bots across all their meetings: win counts, fight-by-fight history with results, methods, and durations.

GET /api.php/stats/head-to-head/{bot1}/{bot2}
ParameterLocationDescription
bot1 required path First bot's clean name
bot2 required path Second bot's clean name

Response Fields

Try It


Leaderboard

Ranked lists of bots by various metrics. Win rate and KO rate require a minimum of 3 fights.

GET /api.php/stats/leaderboard?metric=wins&weightClass=12&limit=20
ParameterLocationDescription
metric optional query Ranking metric: wins (default), winRate, koRate, avgMatchDuration
weightClass optional query Filter by weight class in lbs (e.g. 3, 12, 30)
limit optional query Number of results (default: 20, max: 100)

Available Metrics

Try It

Data Reference

Common data types and enumerations used across the Stats API.

Win Methods

ValueDescription
KOKnockout
JDJudges Decision
TKOTechnical Knockout
FFForfeit

Judges Scorecard Categories

CategoryPossible Ratings
weaponfull, partial, disabled
drivefull, partial, disabled

Time Fields

All timestamps are Unix timestamps (seconds since epoch). Duration fields are in seconds. startTime / stopTime are the fight clock start and stop.

Bot Names

When passing a bot name in URLs, use the clean name: lowercase with only alphanumeric characters. For example, "Dr. Doom III" becomes drdoomiii. The API will strip non-alphanumeric characters for you.