Web Playground

Addon Endpoints

Utility APIs such as calculators and IP tools.

Each card below maps directly to an API endpoint. Query, path, and request body fields are generated from OpenAPI.

GET Win Rate Calculator for Consecutive Wins

/web/addon/win-rate-calculator

Open Only This

Calculate the number of consecutive wins required to reach a target win rate based on current matches and current win rate.

Query parameters:

  • match-now: Current total number of matches played (minimum: 0).
  • wr-now: Current win rate in percent (range: 0-100).
  • wr-future: Target win rate in percent. Must be greater than current win rate and between 0-100.

The response includes win rate calculation data:

  • status: Response status (e.g., 'success').
  • match_now: Current total matches played.
  • wr_now: Current win rate.
  • wr_future: Target win rate.
  • required_no_lose_matches: Number of consecutive wins required without losses to reach the target win rate.
  • message: Explanation message summarizing the result.

This endpoint is useful for:

  • Calculating how many consecutive wins are needed to reach a desired win rate.
  • Helping players set realistic performance goals.
  • Providing analytics for win rate progression.
match-now query

Current total number of matches played. Must be a non-negative integer. Required. Minimum: 0.

wr-now query

Current win rate in percent. Must be a value between 0 and 100. Required. Minimum: 0. Maximum: 100.

wr-future query

Target win rate in percent. Must be greater than the current win rate and between 0 and 100. Required. Maximum: 100.

GET /api/addon/win-rate-calculator

GET Check IP address location details

/web/addon/ip

Open Only This

Retrieves geographic information associated with a given IP address. No parameters required.

The response includes IP location data:

  • code: Response code (e.g., 0).
  • msg: Status message (e.g., 'ok').
  • data:
      • city: City name (e.g., 'Yogyakarta').
      • state: State or region (e.g., 'Yogyakarta').
      • country: Country code (e.g., 'id').
      • lang: Language code (e.g., 'en').

This endpoint is useful for:

  • Identifying approximate geographic location of an IP address.
  • Supporting analytics and personalization.
  • Performing security checks and contextual validation.
GET /api/addon/ip