🖥️
RoleplayBot Docs
  • Home
  • Website
  • Support Server
  • Invite
  • Information
    • Configuration
    • Permissions
    • Getting Started
    • Data Transfer
    • RoleplayBot+
  • Advanced Information
    • CAD/MDT Information
      • Law Enforcement MDT
      • Fire Department MDT
      • Dispatcher MDT
    • FAQ
    • Bug Tracker
  • API Documentation
    • API Introduction
    • Guides
      • API Authorization
      • Getting Started
      • Civilian Requests
      • Building a Project
    • Endpoints
      • Civilian Endpoints
      • Vehicle Endpoints
      • Firearm Endpoints
      • Medical Endpoint
      • Law Enforcement Endpoints
    • Errors
      • Error Codes
      • Rate limited
Powered by GitBook
On this page
  • Headers
  • Global Rate Limit
  • Exact Rate Limit

Was this helpful?

  1. API Documentation
  2. Errors

Rate limited

PreviousError Codes

Last updated 1 year ago

Was this helpful?

The API has been deprecated and is no longer in use.

The rate limit system is implemented to prevent abuse and spam requests reaching our endpoints, For example malicious software can be used to constantly request an endpoint and overload the server, Stopping other from using it. This is the reason why we have introduced a rate limit system, Below you can view the global rate limit and specific endpoints rate limit (Any endpoint not specified follows the global rate limit).

Headers

Header Name
Description

X-RateLimit-Limit

The amount of requests you can make

X-RateLimit-Remaining

The amount of remaining requests you can make

X-RateLimit-Reset

Epoch (Millisecond) timestamp at which the rate limit resets

Global Rate Limit

The global rate limit is set at 20 requests per second, This is reasonable for any minor actions or projects that don't require many requests to be called simultaneously.

Exact Rate Limit

Exact rate limit affects any direct endpoint route, For example /civilian and /firearm have routed endpoints making them apart of the exact rate limit. The exact rate limit is currently set to 10 requests per second as these endpoints complete direct requests to the database.

If your project is constantly getting rate limited due to the amount of requests then please get in contact with , We may be able to increase your rate limit.

RoleplayBot Support