Fetch status information
curl --request GET \
--url https://api.duckybot.xyz/import requests
url = "https://api.duckybot.xyz/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duckybot.xyz/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.duckybot.xyz/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.duckybot.xyz/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": null,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": 62.794923782349,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
Internal Endpoints
Fetch status information
Fetch status information about Ducky and the API.
GET
/
Fetch status information
curl --request GET \
--url https://api.duckybot.xyz/import requests
url = "https://api.duckybot.xyz/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duckybot.xyz/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.duckybot.xyz/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.duckybot.xyz/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": null,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": 62.794923782349,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": null,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
{
"code": 200,
"message": "The Ducky API is online.",
"data": {
"version": {
"name": "v1.6.0 Stable",
"branch": "master",
"commit": {
"sha": "de867566b229eafcc2fd5afa56ace951c8fa28a5",
"message": "api: improved version response",
"author": "Troptop",
"timestamp": 1770255688
}
},
"resources": {
"memory": 1612.26
},
"health": {
"api": {
"latency": {
"response": 62.794923782349,
"process": 84.956884384155
}
},
"bot": {
"shards": {
"0": {
"heartbeatSent": 1770256245,
"heartbeatAcknowledged": 1770256245,
"latency": 105.699607
},
"1": {
"heartbeatSent": 1770256279,
"heartbeatAcknowledged": 1770256279,
"latency": 124.80735
},
// ...
},
"uptime": {
"readable": "1 hour, 58 minutes, 45 seconds",
"epoch": 1770249158
}
}
}
}
}
Response Data
object
The current running version of Ducky.
object
The amount of resources Ducky is currently using.
Show properties
Show properties
number
The amount of memory currently being used by Ducky in megabytes.
object
Health information including latency, uptime, and shard statuses.
Show properties
Show properties
object
object
Bot health information
Show properties
Show properties
object
A map of shard health information where the key is the shard ID.
⌘I