Tournament Endpoints

Everything about a tournament: the event itself, its standings, its army lists and its battles.

List published tournaments, newest start date first. The date range is optional — leave it out and you get the most recent tournaments.

Query Parameters

ParameterTypeRequiredDescription
fromstringOptionalOnly tournaments starting on or after this date. Leave out for no lower bound.
tostringOptionalOnly tournaments starting on or before this date (UTC, whole day). Leave out for no upper bound. Give both and the window may not be longer than a year.
statusstringOptionalOnly tournaments with this status: "planned", "ongoing" or "finished".
cursorstringOptionalComes from the "next" link of a previous response. You never build this yourself.
limitintegerOptionalResults per page. Default: 20, max: 100.

Response Fields (per tournament)

slugstring
Short name used in the tournament web address. Use it wherever an endpoint asks for {slug}.
namestring
Tournament name.
status"planned" | "ongoing" | "finished"
Where the tournament has got to.
startDatestring (YYYY-MM-DD) | null
First day of the tournament, as a local date at the venue.
endDatestring (YYYY-MM-DD) | null
Last day of the tournament, as a local date at the venue.
descriptionstring
The description the organizer wrote, as plain text.
citystring | null
Town or city.
countrystring | null
Country name.
venuestring | null
Name of the place where the tournament is played, for example a club house or a game store.
addressstring | null
Full address of the venue on one line, as it shows on the tournament page.
coordinates{lat, lng} | null
Position of the venue in decimal degrees. Use it to show the tournament on a map. null when the organizer did not pick a place on the map.
playersnumber
How many people actually play. On a team tournament that is the seats being played, so coaches and a captain who takes no seat are not counted.
seatsnumber | null
How many players the tournament has room for. Compare it with players to see if the tournament is full. On a team tournament it counts players, not teams. null when the organizer has not set a max.
competitorType"individual" | "team"
Whether the event is played by individual players or by teams — a Singles event or a Teams event, as they are labelled on the tournaments list. When this is "team", teams below tells you how the teams are sized.
teams{size, count} | null
How the tournament is set up for teams, or null on an ordinary tournament where players enter on their own. size is how many players make up one team line-up, count is how many team places the event has — multiply the two and you have the number of seats.See Team
roundsnumber
Total number of rounds, counting every stage.
battleSizenumber
Points limit per army, for example 2000.
battlePackstring | null
Name of the battle pack the tournament is played with.
organizerstring | null
Slug of the club running the tournament, or null when no club is set. Pass it to the club endpoints.See Club
tournamentOrganizers{name, playerId}[]
The people running the tournament, each with a display name and the public player id, sorted by name. These are the organizers themselves, not the club they run it for — that is organizer above. Empty when nobody is listed. Use a player id to get that player's battles.See GET /api/v1/users/{publicId}/battles
stagesStage[]
The stages the tournament is played in, in the order they run.
urlstring
Link to the tournament page on milarki.com.

Example response

json
{
  "data": [
    {
      "slug": "the-behemoth",
      "name": "The Behemoth",
      "status": "finished",
      "startDate": "2025-01-14",
      "endDate": "2025-01-15",
      "description": "Two days of Age of Sigmar in Hammarö.",
      "city": "Hammarö",
      "country": "Sweden",
      "players": 6,
      "seats": 8,
      "competitorType": "individual",
      "teams": null,
      "rounds": 8,
      "battleSize": 2000,
      "battlePack": "GHB 24/25 4th",
      "organizer": "boebbens-club",
      "tournamentOrganizers": [
        {"name": "Björn Böbb", "playerId": "T91FKD3V"},
        {"name": "Sara Sköld", "playerId": "K21XQ9PB"}
      ],
      "stages": [
        {"id": "standings", "name": "Final Standings", "type": "board"},
        {"id": "swiss", "name": "Swiss Stage", "type": "board", "rounds": 5},
        {"id": "knockout", "name": "Knockout Stage", "type": "bracket", "rounds": 3, "players": 8}
      ],
      "url": "https://www.milarki.com/tournaments/the-behemoth"
    }
  ],
  "next": "https://milarki.com/api/v1/tournaments?cursor=eyJpZCI6Im5leHQifQ&limit=20"
}

Get one tournament. Exactly the same shape as a tournament in the list above.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Response Fields

slugstring
Short name used in the tournament web address. Use it wherever an endpoint asks for {slug}.
namestring
Tournament name.
status"planned" | "ongoing" | "finished"
Where the tournament has got to.
startDatestring (YYYY-MM-DD) | null
First day of the tournament, as a local date at the venue.
endDatestring (YYYY-MM-DD) | null
Last day of the tournament, as a local date at the venue.
descriptionstring
The description the organizer wrote, as plain text.
citystring | null
Town or city.
countrystring | null
Country name.
venuestring | null
Name of the place where the tournament is played, for example a club house or a game store.
addressstring | null
Full address of the venue on one line, as it shows on the tournament page.
coordinates{lat, lng} | null
Position of the venue in decimal degrees. Use it to show the tournament on a map. null when the organizer did not pick a place on the map.
playersnumber
How many people actually play. On a team tournament that is the seats being played, so coaches and a captain who takes no seat are not counted.
seatsnumber | null
How many players the tournament has room for. Compare it with players to see if the tournament is full. On a team tournament it counts players, not teams. null when the organizer has not set a max.
competitorType"individual" | "team"
Whether the event is played by individual players or by teams — a Singles event or a Teams event, as they are labelled on the tournaments list. When this is "team", teams below tells you how the teams are sized.
teams{size, count} | null
How the tournament is set up for teams, or null on an ordinary tournament where players enter on their own. size is how many players make up one team line-up, count is how many team places the event has — multiply the two and you have the number of seats.See Team
roundsnumber
Total number of rounds, counting every stage.
battleSizenumber
Points limit per army, for example 2000.
battlePackstring | null
Name of the battle pack the tournament is played with.
organizerstring | null
Slug of the club running the tournament, or null when no club is set. Pass it to the club endpoints.See Club
tournamentOrganizers{name, playerId}[]
The people running the tournament, each with a display name and the public player id, sorted by name. These are the organizers themselves, not the club they run it for — that is organizer above. Empty when nobody is listed. Use a player id to get that player's battles.See GET /api/v1/users/{publicId}/battles
stagesStage[]
The stages the tournament is played in, in the order they run.
urlstring
Link to the tournament page on milarki.com.

Returns 404 if the tournament does not exist or is not published.

Example response

json
{
  "data": {
    "slug": "the-behemoth",
    "name": "The Behemoth",
    "status": "finished",
    "startDate": "2025-01-14",
    "endDate": "2025-01-15",
    "description": "Two days of Age of Sigmar in Hammarö.",
    "city": "Hammarö",
    "country": "Sweden",
    "players": 6,
    "seats": 8,
    "competitorType": "individual",
    "teams": null,
    "rounds": 8,
    "battleSize": 2000,
    "battlePack": "GHB 24/25 4th",
    "organizer": "boebbens-club",
    "tournamentOrganizers": [
      {"name": "Björn Böbb", "playerId": "T91FKD3V"},
      {"name": "Sara Sköld", "playerId": "K21XQ9PB"}
    ],
    "stages": [
      {"id": "standings", "name": "Final Standings", "type": "board"},
      {"id": "swiss", "name": "Swiss Stage", "type": "board", "rounds": 5},
      {"id": "knockout", "name": "Knockout Stage", "type": "bracket", "rounds": 3, "players": 8},
      {"id": "placement-5-8", "name": "Placement #5–8", "type": "bracket", "rounds": 2}
    ],
    "url": "https://www.milarki.com/tournaments/the-behemoth"
  }
}

Get the standings for one stage of a tournament. A tournament can have several stages — the Swiss rounds, a knockout bracket, placement brackets — and each one has its own standings.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Query Parameters

ParameterTypeRequiredDescription
stagestringOptionalWhich stage to read. Leave it out and you get the final standings once the tournament has finished, otherwise the stage that is furthest along.

Standings come back whole — there are no pages to work through. A board is one row per player and a bracket is a handful of matches, so you always get the lot in one go.

Stage Ids

Read the ids for a tournament from its stages list rather than guessing — a tournament only has the stages it is actually set up for.

The id is what you pass here, and it never changes. The name is what to put in front of people: it is word for word the label on the tab the organizer sees in Milarki, so a screen built on the API and the tournament page itself always agree. Do not build the name yourself from the id. The same swiss id comes back as Swiss Stage in one tournament and Group Stage in another, depending on how the organizer set it up — and a scoped board can carry a label of its own on top of that.

  • standings — the final standings, everything merged into one table. Only once the tournament has finished.
  • swiss — the main Swiss rounds.
  • knockout — the knockout bracket.
  • placement-swiss — the Swiss board played by everyone outside the knockout.
  • placement-3, placement-5-8, and so on — the small brackets that settle the remaining places, one per band.

Response

The response tells you which stage you got, then the rows. What the rows look like depends on the stage type: a board gives you a ranked table of players, a bracket gives you the matches instead, earliest round first.

Board Rows

ranknumber | null
Placement, 1 being first.
groupstring · optionalon group stage boards
Which group the player was in, for example "Group A".
playerstring | null
The player display name.
playerIdstring | null
The public player id, when the player has one. Use it to get that player's battles.See GET /api/v1/users/{publicId}/battles
factionstring | null
Faction played.
battlePointsnumber
Battle points earned, scored the way the organizer set up.
winsnumber
Battles won.
drawsnumber
Battles drawn.
lossesnumber
Battles lost.
victoryPointsnumber
Victory points scored across every battle.
victoryPointsDiffnumber
Victory points scored minus victory points given away.

Example response — a board stage

json
{
  "stage": {"id": "swiss", "name": "Swiss Stage", "type": "board"},
  "data": [
    {
      "rank": 1,
      "player": "Anders Larsson",
      "playerId": "L80MTI4R",
      "faction": "Slaves to Darkness",
      "battlePoints": 92,
      "wins": 4,
      "draws": 0,
      "losses": 1,
      "victoryPoints": 121,
      "victoryPointsDiff": 37
    }
  ]
}

Tournaments Played In Groups

When a tournament is set up with groups, the board gives you every group at once, ordered by group and then by position within it. Each row says which group the player was in. You know this is coming before you read a row: the stage comes back named Group Stage.

Two things about it look like mistakes and are not. Positions start again at 1 in each group, because a group really is its own board — whoever came first in Group B did not tie with whoever came first in Group A, they simply never played the same set of people. And group is absent altogether from an ordinary Swiss board, in the same way a battle only carries the scores its battle pack actually uses.

Example response — a tournament played in groups

json
{
  "stage": {"id": "swiss", "name": "Group Stage", "type": "board"},
  "data": [
    {
      "rank": 1,
      "group": "Group A",
      "player": "Anders Larsson",
      "playerId": "L80MTI4R",
      "faction": "Slaves to Darkness",
      "battlePoints": 92,
      "wins": 4,
      "draws": 0,
      "losses": 1,
      "victoryPoints": 121,
      "victoryPointsDiff": 37
    },
    {
      "rank": 2,
      "group": "Group A",
      "player": "Björn Nilsson",
      "playerId": "K21PQ7ZC",
      "faction": "Stormcast Eternals",
      "battlePoints": 78,
      "wins": 3,
      "draws": 0,
      "losses": 2,
      "victoryPoints": 104,
      "victoryPointsDiff": 12
    },
    {
      "rank": 1,
      "group": "Group B",
      "player": "Cecilia Berg",
      "playerId": "M53RTX9F",
      "faction": "Cities of Sigmar",
      "battlePoints": 88,
      "wins": 4,
      "draws": 1,
      "losses": 0,
      "victoryPoints": 118,
      "victoryPointsDiff": 41
    }
  ]
}

Bracket Matches

roundstring
Name of the bracket round, for example "Quarter-finals" or "Final".
tablenumber
Table number.
playersstring[]
The two player names. Empty while the match is still waiting on an earlier result.
winnerstring | null
Name of the player who went through. Null until the match has been played.
battlestring | null
Battle id to pass to /battles/{id}. Null when no battle was recorded for the match.See Battle

An unknown stage returns 404 with a message listing the ids this tournament does have.

Example response — a bracket stage

json
{
  "stage": {"id": "knockout", "name": "Knockout Stage", "type": "bracket"},
  "data": [
    {
      "round": "Quarter-finals",
      "table": 1,
      "players": ["Anders Larsson", "Björn Nilsson"],
      "winner": "Anders Larsson",
      "battle": "000b1161c8a864a1f75f"
    },
    {
      "round": "Semi-finals",
      "table": 1,
      "players": [],
      "winner": null,
      "battle": null
    }
  ]
}

Get who plays whom at which table, round by round, in one board stage such as the Swiss rounds. Bracket stages list their matches on the /leaderboard endpoint instead.

A round is listed once the site shows its pairings. Before that, asking for the round gives an empty list. In a team event you get each player's own pairing, not the team match.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Query Parameters

ParameterTypeRequiredDescription
stagestringOptionalWhich board stage to read. Leave it out and you get the latest board stage that has started.
roundintegerOptionalOnly this round. The same round number a battle has. Leave it out and you get every round of the stage.

Response Fields (per pairing)

roundnumber
Round number, starting at 1 and counting the whole tournament. The same number a battle has in round.
tablenumber
Table number, starts at 0.
playersstring[]
The player names. One name for a bye, where a player has no opponent.
winnerstring | null
Name of the player who won. Null until there is a result, and for a draw.
battlestring | null
Battle id to pass to /battles/{id}. Null when no battle was recorded for the table.See Battle

A bracket stage, an unknown stage or a round outside the stage returns 404 with a message that says what to ask for instead.

Example response

json
{
  "stage": {"id": "swiss", "name": "Swiss Stage", "type": "board", "rounds": 5},
  "data": [
    {
      "round": 3,
      "table": 1,
      "players": ["Anders Larsson", "Björn Nilsson"],
      "winner": "Anders Larsson",
      "battle": "000b1161c8a864a1f75f"
    },
    {
      "round": 3,
      "table": 2,
      "players": ["Cecilia Berg", "David Holm"],
      "winner": null,
      "battle": null
    }
  ]
}

Get the team standings for a team tournament, best first. This is the board the event is decided on: one row per team, with its team match record and the record of the individual battles played inside them.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Standings come back whole — there are no pages to work through, and nothing to pick a stage with. A team board is one row per team, and it is the same board whichever round you read it after.

Response

The response opens with coverage, which is always "tournament". It is there to say what these standings count: every round the event played, knockout rounds included, and not one stage of it. That is the difference from /leaderboard, which answers for a single stage at a time.

Team Rows

ranknumber | null
Placement, 1 being first. Teams level on everything share a position. Null until the team has a settled team match.
teamstring | null
Team name.
slugstring | null
Short name used in the team's web address. Null when the team registration has since been removed.See Team
teamMatchesnumber
Team matches played and settled.
winsnumber
Team matches won.
drawsnumber
Team matches drawn.
lossesnumber
Team matches lost.
battleWinsnumber | null
Individual battles won, across every settled team match. Null on standings not recalculated since the battle record was added.
battleDrawsnumber | null
Individual battles drawn, across every settled team match. Null on standings not recalculated since the battle record was added.
battleLossesnumber | null
Individual battles lost, across every settled team match. Null on standings not recalculated since the battle record was added.
battlePointsDiffnumber
Battle points scored minus battle points given away, across every settled team match.
gamePointsnumber
The team members' game points added up, measured by whatever decides a team match at this event.
victoryPointsDiffnumber
Victory points scored minus victory points given away, across every settled team match.

Returns 404 when the tournament is not a team event. A tournament played by individuals has no team standings and never will, so there is nothing to hand back — where /tournaments/{slug}/teams answers the same tournament with an empty list.

Example response

json
{
  "coverage": "tournament",
  "data": [
    {
      "rank": 1,
      "team": "Hammarö Hammers",
      "slug": "hammaro-hammers",
      "teamMatches": 5,
      "wins": 4,
      "draws": 0,
      "losses": 1,
      "battleWins": 14,
      "battleDraws": 1,
      "battleLosses": 5,
      "battlePointsDiff": 46,
      "gamePoints": 312,
      "victoryPointsDiff": 74
    },
    {
      "rank": 2,
      "team": "Kil Krushers",
      "slug": "kil-krushers",
      "teamMatches": 5,
      "wins": 3,
      "draws": 1,
      "losses": 1,
      "battleWins": 12,
      "battleDraws": 2,
      "battleLosses": 6,
      "battlePointsDiff": 21,
      "gamePoints": 288,
      "victoryPointsDiff": 33
    }
  ]
}

Everybody taking part, in alphabetical order, each with the army list they submitted. This is the same data as the army list export in the admin.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Query Parameters

ParameterTypeRequiredDescription
cursorstringOptionalComes from the "next" link of a previous response.
limitintegerOptionalResults per page. Default: 20, max: 100.

Response Fields (per participant)

playerstring
The player display name.
playerIdstring | null
The public player id, when the player has one. Use it to get that player's battles.See GET /api/v1/users/{publicId}/battles
clubstring | null
The club the player represents, as its short name from the club web address.See GET /api/v1/clubs/{slug}
team{name, slug} | null
The team the player plays for, or null on an ordinary tournament, or when the team registration has since been removed.See Team
groupstring | null
Which group the player was placed in, for example "Group A". Null unless the tournament has a group stage. Matches the group on a leaderboard row.See Leaderboard row
droppedboolean
True when the player is no longer taking part, either because they dropped out or never turned up.
finalPlacementnumber | null
Where the player finished, 1 being the winner. Settled once the tournament finishes; null while it is still running, and null for tournaments that finished before we started recording it.
listArmyList | null
The army the player submitted, or null when they submitted none. Also null before the tournament starts when the organizer keeps army lists hidden until then.

Example response

json
{
  "data": [
    {
      "player": "Anders Larsson",
      "playerId": "L80MTI4R",
      "club": "stockholm-warlords",
      "team": null,
      "group": "Group A",
      "dropped": false,
      "finalPlacement": 1,
      "list": {
        "faction": "Disciples of Tzeentch",
        "subFaction": "Guild of Summoners",
        "points": 1990,
        "battleTacticCards": ["Sever the Head", "Bring it Down"],
        "text": "Allegiance: Disciples of Tzeentch\n..."
      }
    }
  ],
  "next": null
}

The teams registered for a tournament, in alphabetical order, each with its captain and the players who make up its line-up.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Query Parameters

ParameterTypeRequiredDescription
cursorstringOptionalComes from the "next" link of a previous response.
limitintegerOptionalResults per page. Default: 20, max: 100.

Response Fields (per team)

slugstring
Short name used in the team's web address. Use it to group participants and battles by the team they belong to.
namestring
Team name.
clubstring | null
Slug of the club the team belongs to, or null when it belongs to none. Pass it to the club endpoints.See Club
captain{name, playerId} | null
The person leading the team at this event, with the public player id when they have one. A captain does not have to play, so this can be somebody who never appears as a participant. Null when nobody is set.
players{name, playerId}[]
The playing line-up, each with the public player id when they have one, sorted by name. Only the people who actually play are listed — coaches and a captain who takes no seat are not part of it.
droppedboolean
True when the team left the event partway through. The results it had already played still stand.
finalPlacementnumber | null
Where the team finished, 1 being the winner. Settled once the tournament finishes; null while it is still running, and null for tournaments that finished before we started recording it.
urlstring
Link to the team page on milarki.com.

Ask a tournament that is not a team event and you get an empty list rather than an error. It is a fair question to ask of any tournament, and the honest answer is that there were no teams.

Example response

json
{
  "data": [
    {
      "slug": "hammaro-hammers",
      "name": "Hammarö Hammers",
      "club": "boebbens-club",
      "captain": {"name": "Björn Böbb", "playerId": "T91FKD3V"},
      "players": [
        {"name": "Anders Larsson", "playerId": "L80MTI4R"},
        {"name": "Cecilia Berg", "playerId": "M53RTX9F"},
        {"name": "Sara Sköld", "playerId": "K21XQ9PB"}
      ],
      "dropped": false,
      "finalPlacement": 2,
      "url": "https://www.milarki.com/teams/hammaro-hammers"
    }
  ],
  "next": null
}

Battles recorded for a table, newest first. Copies that no table recorded are left out.

Path Parameters

ParameterTypeRequiredDescription
slugstringRequiredThe short name from the tournament web address.

Query Parameters

ParameterTypeRequiredDescription
cursorstringOptionalComes from the "next" link of a previous response.
limitintegerOptionalResults per page. Default: 20, max: 100.

Response Fields (per battle)

idstring
The battle id. Pass it to /battles/{id}.
datestring (YYYY-MM-DD) | null
The day the battle was played, as a local date.
tournamentstring | null
Slug of the tournament the battle belongs to. Null for a casual battle.See Tournament
stagestring | null
Id of the tournament stage the battle was played in, for example "swiss". Null for a casual battle.See Stage
roundnumber | null
Round number, counting from 1.
tablenumber | null · optional
Table number the battle was played at. With `stage` and `round` it identifies the pairing. Null for a casual battle.
state"setup" | "ongoing" | "finished"
How far the battle has got. "setup" before the first round, "ongoing" until the result is confirmed, then "finished". Only a finished battle has a result.
scenariostring | null
Scenario played.
battlePackstring | null
Name of the battle pack the battle was played with.
battleSizenumber
Points limit per army, for example 2000.
winnerstring | null
Name of the winning player. Null on a draw, and null until the battle is finished.
victorySize"major" | "minor" | null
How big the win was. Null until the battle is finished.
playersBattlePlayer[]
The two players and how they scored.
urlstring
Link to the battle page on milarki.com.
teamMatchTeamMatch | null
The team-against-team match this battle is one game of. Null on every battle outside a team tournament, which is most of them.

Example response

json
{
  "data": [
    {
      "id": "000b1161c8a864a1f75f",
      "date": "2025-01-14",
      "tournament": "the-behemoth",
      "stage": "swiss",
      "round": 3,
      "scenario": "Lines of Communication",
      "battlePack": "GHB 24/25 4th",
      "battleSize": 2000,
      "winner": "Anders Larsson",
      "victorySize": "major",
      "players": [
        {
          "player": "Anders Larsson",
          "playerId": "L80MTI4R",
          "faction": "Disciples of Tzeentch",
          "subFaction": "Guild of Summoners",
          "outcome": "win",
          "battlePoints": 20,
          "victoryPoints": 28,
          "objectivePoints": 18,
          "battleTacticsScored": 3,
          "drops": 6,
          "role": "defender",
          "metrics": {},
          "team": null
        }
      ],
      "url": "https://www.milarki.com/battles/000b1161c8a864a1f75f",
      "teamMatch": null
    }
  ],
  "next": null
}