The API's GET endpoints

These addresses read, and change nothing; the ones that change something are in the POST endpoints. Every address here is under /api/v1 on the site, and every answer is JSON. What applies to all of them, such as keys, allowances, errors, and asking cheaply, is in help for app developers. Fields may be added to any answer without a new version (see fields may be added), so ignore what you do not know.

A tournament, or a competition, is named in an address by the part of its id after the slash: for tournament/4f2a… the address says 4f2a…. Every answer says where to find what it tells of in an href, and where the site shows it in a uri, a path beginning with a slash.

A year's tournaments

GET /api/v1/tournaments?year=2026

Takes:

  • year, needed, a whole number such as 2026.
  • sport, a sport's code (see the sports), to list only that sport. Without it a year of every sport is one request.
  • changedSince, a moment written as 2026-03-01T10:00:00Z, to list only what changed after it.
  • page and pageSize, a page being at most 100.

It answers tournaments, each with:

  • id, name, starts, finishes, country, region (or null), sport
  • uri and href
  • national and international, whether the organiser ticked them
  • changedAt, when anything was last kept of the tournament or of any of its competitions
  • etag, made of what the tournament says, so that you can tell which of a changed list's tournaments changed

and total, page, pageSize and next, which is where the next page is, or null at the last. The id is the same however the tournament is renamed or moved. The list is asked again with the ETag it sent, and answered 304 where nothing changed.

What a tournament can be

Three lists say what a tournament can be on the site asked: its sports, its formats and the countries it can be in. They are what the site's own form for a new tournament offers, so a tournament made with a code from one is accepted by making a tournament. They need no key. Each takes language, a language's tag such as de, to name its choices in that language; a tag the site does not offer is refused with 400, and its code says which list refused it: Sports.LanguageNotOffered, Formats.LanguageNotOffered or Countries.LanguageUnknown. Without one, the sports and the countries are named in English, and the formats in the language the browser or the site's cookie says, so say a language where the names are shown. Each answer carries an ETag and is answered 304 where it is unchanged.

The sports

GET /api/v1/tournaments/sports

Answers sports, each with code and name. The sport a tournament says, and the one a list may be asked for, is one of these codes. Croquet Scores offers ac (Association Croquet), gc (Golf Croquet), a6w (American 6 Wicket), rc (Ricochet) and gb (Gateball); Gateball Scores offers only Gateball. A sport may be added in the future, as a field may (see fields may be added), so an app should cope with a code it does not know.

The formats

GET /api/v1/tournaments/formats

Answers formats, each with code, which is the name a tournament is made by, name, teams, whether it is played by teams, and drawsLevelTests, whether a tournament in it draws a level test unless it says not to.

The countries

GET /api/v1/countries

Answers countries, each with code (such as au), name and regions, each with code and name. They are in the order of their names in the language asked for. A region is named as it was recorded, which is mostly in its own country's language. A country that is not divided has one region, which is itself.

One tournament

GET /api/v1/tournaments/{id}

Says what the list says of it, and:

  • competitions: each with id, name, kind (block, swiss, knockout or test), uri, href, changedAt and etag.
  • players, for a tournament played by players: each with id, name, worldRankingName, handicap as a number (or null), representing (or null) and etag.
  • teams, for a tournament played by teams, which has no players of its own: each with id, name, shortName and its players, each with id, name and worldRankingName.

A key made for one tournament reads that one and no other, and is refused for any other with ApiKey.LimitedToAnotherTournament. The answer is 304 where the ETag or Last-Modified it sent is current.

One competition

GET /api/v1/tournaments/{id}/competitions/{id}

Says the competition's name, kind, href, uri, changedAt, and where the API tells of its games (games) and, for a block and a Swiss, which are the only ones that have them, its standings (standings).

A block's or a Swiss's standings

GET /api/v1/tournaments/{id}/competitions/{id}/standings

Says the competition, and standings: for each player playerId, name, withdrawn, played, won, netHoops, position (or null) and shared, whether the position is shared. A block adds lost, gamesWon and netGames, which a Swiss does not say.

A competition's games

GET /api/v1/tournaments/{id}/competitions/{id}/games

Says the competition, and its games. Each game has an id, a winner and a loser, drawn, withdrawn (played but counting for nothing), round (a knockout's, the first being 1, and null elsewhere) and changedAt. Each side says the player's playerId, their name and their score as it was typed, such as 26tp. Where a game was drawn, which side is called the winner is only the order they were typed.

A test, the match between two teams, says matches and not games: each match with the two players, one of each team, and the games between them.

What a key may do

GET /api/v1/tournaments/{id}/permissions

Needs a key, and says what that key may do in the tournament: part, which is the part its account has (manager, scorer or neither), mayRead and mayWrite. An app can say why a write would be refused before it sends one. The answer is for the key that asked, so it is never kept (Cache-Control: no-store).

Tournaments that changed year

GET /api/v1/tournaments/changed-year

Lists the tournaments that came into another year than the one they were in, so that an app can move what it keeps. Takes changedSince, page and pageSize. Each has tournamentId, previousYear and newYear.

Tournaments that were archived

GET /api/v1/tournaments/archived

Lists the tournaments that have been archived, so that an app can stop showing them. Takes archivedSince, written as 2026-03-01T10:00:00Z, page and pageSize. Each has tournamentId and archivedAt.

World ranking players

GET /api/v1/ac/world-ranking-players for Association Croquet and GET /api/v1/gc/world-ranking-players for Golf Croquet

Lists the players the world rankings know of that sport, in the order of their names. The two are asked and answered alike, except where this says. Each takes changedSince, written as 2026-03-01T10:00:00Z, page and pageSize, a page being at most 100. It answers worldRankingPlayers, each with:

  • id, and worldRankingId, the number the rankings give the player
  • name, as the rankings name them
  • country, where the player is from, as the site's own code for it, one of the codes in the countries. A Golf Croquet player always has one, and two Golf Croquet players can have the same name in different countries. An Association Croquet player has one once the rankings' list has been read since it was added, and until then it is left out
  • games, where the API tells of the player's games (see a player's games)
  • archivedAt, when the player was archived, or null
  • changedAt, and etag, made of what the player says

and total, page, pageSize and next, as a year's tournaments has. The list is asked again with the ETag it sent, and answered 304 where nothing changed.

A player the rankings stop listing is still listed, with archivedAt, so that an app that kept it can be told it has gone. Keep the id: the rankings can change a player's number, and the id is what stays the same player's.

Asked with no page, the list first brings the names up to date from the world rankings' own site, at most once an hour for each sport. Asked for a page by number, the first included, it only tells what the site has kept, so an app that follows the pages does not have the rankings' site read for each of them. The names are those of the last time they were brought up to date where the rankings' site cannot be read.

A request refused is refused with a code beginning WorldRankingPlayers. for Association Croquet, such as WorldRankingPlayers.PageNotWhole, and GolfCroquetWorldRankingPlayers. for Golf Croquet, and a field.

A world ranking player's games

GET /api/v1/ac/world-ranking-players/{id}/games and GET /api/v1/gc/world-ranking-players/{id}/games

The id is the part of the player's id after the slash, as games in the list above gives it. Lists the games of that sport the player has played, whether in a block, a Swiss, a knockout or a test, and whether they played for themselves or for a team. It takes changedSince, page and pageSize as the list of players does, and answers games, in the order they were added, each from the player's side:

  • id, tournamentId and competitionId
  • won, whether the player won, which is false for a draw, and drawn
  • score, the player's, and opponentScore, both as they were typed, such as 26tp
  • opponentName, as the rankings name them where the opponent is a world ranking player and as the tournament keeps them otherwise, and opponentId, the opponent's id in the list above, or null where they are not one
  • archived and withdrawn: a game of an archived competition or tournament, or an archived or withdrawn one, is listed and says so, so that an app that kept it can stop counting it
  • addedAt, or null for a game that was added before the site kept when, and changedAt
  • etag

and total, page, pageSize and next.

A game is the player's when a player of a tournament of that sport is them. The site finds which world ranking player a tournament's player is by the name the rankings know them by. Where the rankings give that name to two players, as the Golf Croquet list does for players in different countries, it tells them apart by who the tournament's player represents, where that is one of their countries, and failing that by the country the tournament is played in. A tournament's player these do not tell apart is nobody's, and so are their games, and an opponent they do not tell apart is named without an opponentId.

A player the site does not know is refused with 404 and WorldRankingPlayers.NotFound, or GolfCroquetWorldRankingPlayers.NotFound for Golf Croquet, which is not the same as a player with no games, which has an empty list. A request refused for its page is refused with a code beginning WorldRankingPlayerGames., or GolfCroquetWorldRankingPlayerGames. for Golf Croquet, and a field.