EndpointsLeagues

List league policy performance

GET/v2/leagues/{league_id}/performance

Returns recorded policy-reward statistics for a round-creation window or a bounded number of recent rounds. Specify exactly one of window_minutes or rounds. These statistics do not use commissioner leaderboard scores. Requests covering too much activity return 422; choose a shorter window or fewer rounds.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

league_id*League Id

League whose policy performance should be returned.

Match^league_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Query Parameters

window_minutes?|

Include rounds created within this many minutes, up to seven days.

rounds?|

Include this many newest rounds instead of a time window.

policy_id?array<>

Restrict subjects to these policies; opponents remain unrestricted.

Itemsitems <= 100
limit?Limit

Maximum records returned.

Range1 <= value <= 1000
Default500
cursor?|

Opaque continuation for the same league, filters, and reader.

curl -X GET "https://example.com/v2/leagues/string/performance"
{  "as_of": "2019-08-24T14:15:22Z",  "entries": [    {      "policy_version_id": "7cd41427-f4be-4006-ab17-5ead7f8f8446",      "policy_id": "ee9b03e0-6495-427a-85a5-34444d24ae04",      "policy_name": "string",      "version": 0,      "player_id": "string",      "player_name": "string",      "rounds": 0,      "games": 0,      "wins": 0,      "mean_reward": 0,      "last_played_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}