Getting Started
How to start using the API
Last updated
Was this helpful?
How to start using the API
Last updated
Was this helpful?
After you've added it as a , you'll want to know how to start using the basic features of the API. On this page, we go over some basic getters for implementation.
Please note! It is highly recommended that these methods are run async! The API is very fast but if a server has lots of regions (10-20k+) it could halt the server for a few milliseconds dependent on the operation. See
In order to correctly use the API, you need to get an instance of the main module. The following code will get you an instance of the API class which houses the base methods for using the api.
Getting the regions of a server is the main section you'll be using frequently.
This method allows you to access the interface of each enabled protection plugin. This allows you to do more in-depth and provider-specific methods.
Get a list of all active providers:
Get a specific provider: