Fetch user link
curl --request GET \
--url https://api.duckybot.xyz/links/{id}import requests
url = "https://api.duckybot.xyz/links/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/links/{id}', 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/links/{id}",
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/links/{id}"
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/links/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/links/{id}")
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": "Link fetched successfully.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
{
"code": 404,
"message": "Link not found."
}
Data Endpoints
Fetch user link
Fetch a link by either Discord ID or Roblox ID.
GET
/
links
/
{id}
Fetch user link
curl --request GET \
--url https://api.duckybot.xyz/links/{id}import requests
url = "https://api.duckybot.xyz/links/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.duckybot.xyz/links/{id}', 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/links/{id}",
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/links/{id}"
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/links/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duckybot.xyz/links/{id}")
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": "Link fetched successfully.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
{
"code": 404,
"message": "Link not found."
}
{
"code": 200,
"message": "Link fetched successfully.",
"data": {
"discord": {
"username": "troptopreal",
"name": "Troptop",
"id": "598958193032560642",
"avatar": "https://cdn.discordapp.com/avatars/598958193032560642/b4a9105d349cc3e9c3d5c0d3b24adbb8.png"
},
"roblox": {
"name": "troptopreal",
"displayName": "Troptop",
"id": 1038671897,
"avatar": "https://t4.rbxcdn.com/30DAY-AvatarHeadshot-7E3036777BDD02D485E0A0CCC240BDCC-Png",
"description": "colombiano ☕💖",
"profile": "https://roblox.com/users/1038671897/profile",
"hyperlink": "[troptopreal](<https://roblox.com/users/1038671897/profile>)",
"verified": false,
"banned": false,
"created": 1555162890.283
}
}
}
{
"code": 404,
"message": "Link not found."
}
Parameter Fields
number
required
The Roblox or Discord ID of the user whose link you want to fetch.
Response Data
object
object
The Roblox player associated with this link.
Show properties
Show properties
string
The player’s username.
string
The player’s display name.
number
The player’s ID.
string
The player’s avatar URL.
string
The player’s description/bio.
string
A link to the player’s profile.
string
A hyperlink to the player’s profile, where the label is the player’s username.
boolean
Whether or not the player is verified on Roblox.
boolean
Whether or not the player is banned from Roblox.
number
An epoch timestamp (in seconds) representing when the player’s account was created.
⌘I