League Endpoints
Get League Standings
Returns standings (approved teams with stats) for a specific league. Each team includes a rank based on position. Requires API key with leagues.league_public permission.
POST
Documentation Index
Fetch the complete documentation index at: https://teambattles.gg/docs/llms.txt
Use this file to discover all available pages before exploring further.
Permission Required
This endpoint requires theleagues.league_public permission on your API key.
League Identifier
The{identifier} path parameter accepts the league slug - the URL-friendly league name (e.g., my-league).
What’s Returned
Returns standings (approved teams with stats) for a specific league. Each team includes arank field based on their position in the standings. Results are sorted by performance and only include teams with an APPROVED status.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
seasonId | string | No | Filter standings by a specific season ID |
gameId | string | No | Filter standings by a specific game ID |
limit | number | No | Maximum results to return (1-100, default 50) |
Filtering Options
Season Filtering
Use theseasonId parameter to get standings for a specific season. If omitted, returns overall standings.
Game Filtering
UsegameId to filter standings to teams competing in a specific game.
Common Use Cases
Get Overall Standings
Get Season-Specific Standings
Get Standings for a Specific Game
Get Top 10 Teams
Authorizations
API key authentication. Generate an API key from Settings > Developer in the TeamBattles app. Format: tb_xxxxxxxx...
Path Parameters
League slug
Body
application/json
Optional season, game filter, and limit