Fetch team members
curl --request GET \
--url https://api.duckybot.xyz/teamimport requests
url = "https://api.duckybot.xyz/team"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/team', 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/team",
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/team"
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/team")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/team")
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": "All Ducky Team members have been successfully fetched.",
"data": [
{
"discord_id": "598958193032560642",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png",
"username": "troptopreal",
"role": "Lead Developer",
"name": "trop",
"category": "dev",
"position": 5
},
{
"discord_id": "782235114858872854",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/782235114858872854/fff448ad33f613c223ee3771fd659fab.png",
"username": "bobbibones",
"role": "Senior Developer",
"name": "bobbi",
"category": "dev",
"position": 4
},
// ...
]
}
Internal Endpoints
Fetch team members
Fetch the team members who maintain Ducky.
GET
/
team
Fetch team members
curl --request GET \
--url https://api.duckybot.xyz/teamimport requests
url = "https://api.duckybot.xyz/team"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/team', 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/team",
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/team"
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/team")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/team")
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": "All Ducky Team members have been successfully fetched.",
"data": [
{
"discord_id": "598958193032560642",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png",
"username": "troptopreal",
"role": "Lead Developer",
"name": "trop",
"category": "dev",
"position": 5
},
{
"discord_id": "782235114858872854",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/782235114858872854/fff448ad33f613c223ee3771fd659fab.png",
"username": "bobbibones",
"role": "Senior Developer",
"name": "bobbi",
"category": "dev",
"position": 4
},
// ...
]
}
{
"code": 200,
"message": "All Ducky Team members have been successfully fetched.",
"data": [
{
"discord_id": "598958193032560642",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png",
"username": "troptopreal",
"role": "Lead Developer",
"name": "trop",
"category": "dev",
"position": 5
},
{
"discord_id": "782235114858872854",
"color": "#38B6FF",
"avatar": "https://cdn.discordapp.com/avatars/782235114858872854/fff448ad33f613c223ee3771fd659fab.png",
"username": "bobbibones",
"role": "Senior Developer",
"name": "bobbi",
"category": "dev",
"position": 4
},
// ...
]
}
Response Data
object[]
In this endpoint, the response data is an array of objects.
Show properties
Show properties
string
The team member’s username.
string
The team member’s display name.
string
The team member’s avatar URL.
string
The team member’s Discord ID.
string
The team member’s role.
string
A hex code representing the team member’s role color.
string
The team member’s position category.
number
The team member’s position within their category.
⌘I