Fetch feedback
curl --request GET \
--url https://api.duckybot.xyz/feedbackimport requests
url = "https://api.duckybot.xyz/feedback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/feedback', 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/feedback",
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/feedback"
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/feedback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/feedback")
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": "Feedback fetched successfully.",
"data": [
{
"feedback": "Ducky is an Amazing all-in-one multipurpose bot, designed to enhance your server. I have been using Ducky for around 3 months, and I would never switch back, the development team has done an amazing job on the server. We have managed to get my server affiliated by the amazing Ducky. Ducky offers a vast amount of services to ensure your server is in top notch state. I am so happy to get the opportunity to use this bot. Big Up Ducky! - From United Kingdom: Brixton Roleplay",
"rating": 5,
"timestamp": 1764425716,
"submitter": {
"username": "sami.6rk",
"name": "đźđŞđśđ˛",
"id": "846014201008619550",
"avatar": "https://cdn.discordapp.com/avatars/846014201008619550/c1bd7719f2736e6191efa56efffd616e.png"
},
}
// ...
]
}
Internal Endpoints
Fetch feedback
Fetch five random bot feedback entries. Only feedback entries of 4 or 5 stars are considered.
GET
/
feedback
Fetch feedback
curl --request GET \
--url https://api.duckybot.xyz/feedbackimport requests
url = "https://api.duckybot.xyz/feedback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/feedback', 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/feedback",
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/feedback"
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/feedback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/feedback")
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": "Feedback fetched successfully.",
"data": [
{
"feedback": "Ducky is an Amazing all-in-one multipurpose bot, designed to enhance your server. I have been using Ducky for around 3 months, and I would never switch back, the development team has done an amazing job on the server. We have managed to get my server affiliated by the amazing Ducky. Ducky offers a vast amount of services to ensure your server is in top notch state. I am so happy to get the opportunity to use this bot. Big Up Ducky! - From United Kingdom: Brixton Roleplay",
"rating": 5,
"timestamp": 1764425716,
"submitter": {
"username": "sami.6rk",
"name": "đźđŞđśđ˛",
"id": "846014201008619550",
"avatar": "https://cdn.discordapp.com/avatars/846014201008619550/c1bd7719f2736e6191efa56efffd616e.png"
},
}
// ...
]
}
{
"code": 200,
"message": "Feedback fetched successfully.",
"data": [
{
"feedback": "Ducky is an Amazing all-in-one multipurpose bot, designed to enhance your server. I have been using Ducky for around 3 months, and I would never switch back, the development team has done an amazing job on the server. We have managed to get my server affiliated by the amazing Ducky. Ducky offers a vast amount of services to ensure your server is in top notch state. I am so happy to get the opportunity to use this bot. Big Up Ducky! - From United Kingdom: Brixton Roleplay",
"rating": 5,
"timestamp": 1764425716,
"submitter": {
"username": "sami.6rk",
"name": "đźđŞđśđ˛",
"id": "846014201008619550",
"avatar": "https://cdn.discordapp.com/avatars/846014201008619550/c1bd7719f2736e6191efa56efffd616e.png"
},
}
// ...
]
}
Response Data
In this endpoint, the response data is an array of objects.
Show properties
Show properties
The feedback message provided.
The rating in stars, which is always a number between 4 & 5 as only those are considered in the selection.
An epoch timestamp (in seconds) representing when the feedback was submitted.
âI