API Documentation
Authentication

In order to access Kepi's API, you need an API key. If you don't have one, request one by DMing a developer on Discord.

If you do have an API key, include it in your URL params/GET request header:

apiKey: your_api_key



Ratelimiting

The Global API has a ratelimit of 210 GET requests per minute.

Ratelimit Headers:
X-RateLimit-Limit: The maximum amount of requests allowed per timeframe.
X-RateLimit-Remaining: The remaining requests that can be made.
X-RateLimit-Reset: A timestamp indicating when the ratelimit will reset in milliseconds.
Retry-After: In curl, this is the time to wait in seconds before another request can be made.



Usage

If you want to make a GET request in a web browser, type this as the URL:

http://kepibot.xyz:1337/api/<endpoint>?apiKey=your_api_key
If you won't be using a web browser and want to use a request header instead:
{
"apiKey": "your_api_key"
}



Endpoints
GET /api/uptime Get the uptime of Kepi.
GET /api/ping Get the heartbeat ping of Kepi.
GET /api/guilds Get the amount of guilds Kepi is in.
GET /api/users Get the amount of users Kepi has.
GET /api/commands Get the amount of commands Kepi has.
GET /api/uselessweb Get a website from the Useless Web.