The main CAGT website serves the purpose of running tournaments and leagues, providing a way to collect scores and score artifacts. Making sure the community has access to that data is important as they may have different ways to use that data that adds value.
The following is a list of public REST APIs that can be used for whatever purposes you'd like. None of these should be called at a fast rate of request. If you're polling anything more than once a minute you're polling too often. If traffic gets too high they will be turned off. Don't ruin the fun for everyone.
Get League List
Gets the list of leagues. The response has a JSON payload containing an array of league information elements.
URL
GET https://www.cagtournaments.com/api/v2/LeagueList
Get League Event List
Gets the list of events associated with a given league. The response has a JSON payload containing an array of tournament information elements.
URL
GET https://www.cagtournaments.com/api/v2/LeagueEvents/LEAGUE_ID
Get League Leaderboard
Gets the current leaderboard for a given league. The response has a JSON payload containing an array of user ranking information elements.
URL
GET https://www.cagtournaments.com/api/v2/LeagueLeaderboard/LEAGUE_ID
Get Tournament List
Gets the list of tournaments. The response has a JSON payload containing an array of tournament information elements.
URL
GET https://www.cagtournaments.com/api/v2/TournamentList
Get Game List
Gets the list of games associated with a given tournament and round. If no round is provided then the data from the first round of the tournament will be returned. The response has a JSON payload containing an array of game information elements.
URL
GET https://www.cagtournaments.com/api/v2/GameList/TOURNAMENT_ID/ROUND_NUMBER
Get Recent Scores
Gets the five most recent submitted scores for a given tournament. The response has a JSON payload containing an array of score information elements.
URL
GET https://www.cagtournaments.com/api/v2/RecentScores/TOURNAMENT_ID
Get Solo Leaderboard
Gets the current solo leaderboard for a given tournament. The response has a JSON payload containing an array of user ranking information elements.
URL
GET https://www.cagtournaments.com/api/v2/SoloLeaderboard/TOURNAMENT_ID
Get Game Leaderboard
Gets the current leaderboard for a given game in a given round of a tournament. If no round is provided then the data from the first round of the tournament will be returned. The response has a JSON payload containing an array of user ranking information elements.
URL
GET https://www.cagtournaments.com/api/v2/GameLeaderboard/TOURNAMENT_ID/GAME_ID/ROUND_NUMBER
Get User Scores
Gets the list of scores for a user in a given tournament. The response has a JSON payload containing an array of score information elements.
URL
GET https://www.cagtournaments.com/api/v2/UserScores/TOURNAMENT_ID/USER_ID
Lookup UserID
Gets the ID for a user. The response has a JSON payload containing an ID element.
URL
GET https://www.cagtournaments.com/api/v2/UserLookup/USER_NAME
Get User History
Gets the full competitive history for a user. The response has a JSON payload containing an array of tournament results elements.
URL
GET https://www.cagtournaments.com/api/v2/UserHistory/USER_ID