View Source Code

Rate Limit

Throttle Public

Limit the amount of times a public request can be made by a given key. This will rate limit based off the user's IP address.

Request

  • requests
    optional number
  • period
    optional number

Response

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.rate_limit.throttle_public({
  // Request body
});