Welcome to
API of Arcane
Bot Center !

Arcane

Example

Ratelimit : 1m

JavaScript

Key Type Description
server_count Number Value guilds
shard_count Number Value shards
member_count Number Value members

const got = require("got");
var apiKey = "TOKEN API";

got.post("https://arcane-botcenter.xyz/api/[BOT ID]/stats", {
    headers: {
        Authorization: apiKey
    },
    body: {
        server_count: Number,
        shard_count: Number,
        member_count: Number
    },
    json: true
}).then(data => console.log(data.statusCode)).catch(err => console.error(err.statusCode))

Java

Key Type Description
server_count Number Value guilds
shard_count Number Value shards
member_count Number Value members

public static void main(String... args) {
    JSONObject object = new JSONObject();
    object.put("server_count", Number);
    object.put("shard_count", Number);
    object.put("member_count", Number);

    final String token = "";
    final String bot_id = "";
    final String url = "https://arcane-botcenter.xyz/api/" + bot_id + "/stats";

    CloseableHttpClient client = HttpClients.createDefault();
    try {
        StringEntity entity = new StringEntity(object.toString(4));
        HttpUriRequest request = RequestBuilder
                .create("POST")
                .setUri(url)
                .addHeader("Authorization", token)
                .addHeader("Content-Type", "application/json")
                .setEntity(entity)
                .build();

        HttpResponse response = client.execute(request);
        if (response.getStatusLine().getStatusCode() != 200) {
            System.out.println(("error: " + response.getStatusLine().getStatusCode()));
        }
        client.close();
    } catch (IOException e) {
        e.printStackTrace();
    }
}

Python

Key Type Description
server_count Number Value guilds
shard_count Number Value shards
member_count Number Value members

# Use python3
import requests
import json

TOKEN = ""
BOT_ID = ""
URL = "https://arcane-botcenter.xyz/api/" + BOT_ID +"/stats"

headers = {
    'Authorization': TOKEN,
    'Content-Type': "application/json",
}

payload = {
    "server_count": Number,
    "shard_count": Number,
    "member_count": Number
}

data = json.dumps(payload, sort_keys=True, indent=4, separators=(',', ': '))

requests.request("POST", URL, data=data, headers=headers)