Skip to content

Ladder API

Sean Wragg edited this page Aug 23, 2016 · 5 revisions

Leaderboard Endpoints

  • POST /ladder/:game accepts gameres packet (via POST body) for the supplied :game
  • GET /ladder/:game will return the top 150 leaderboard players for the supplied :game
  • GET /ladder/:game/game/:gameId will return all data for a given :gameId
  • GET /ladder/:game/player/:player will return most data for given :player
  • POST /ladder/:game/search will return array of search results based on request body

Submit Game Results

This endpoint requires authentication from a user account.

Search for Player or Clan

  • POST /ladder/:game/search will return array of search results based on request body

This endpoint accepts a json payload with either a player or clan property. The value of either key is a wildcard search.

Example Request

POST /api/ladder/yr/search HTTP/1.1
Host: ladder.cncnet.org
Content-Type: application/json

{
    "player": "te"
}
Clone this wiki locally