curl -X POST https://picked.gg/api/v1/bots/YOUR_BOT_ID/stats \
-H "Authorization: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"server_count": 1482}'client.once(Events.ClientReady, async () => {
await fetch(`https://picked.gg/api/v1/bots/${client.user.id}/stats`, {
method: 'POST',
headers: {
Authorization: process.env.PICKED_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ server_count: client.guilds.cache.size }),
});
});import os, aiohttp
@bot.event
async def on_ready():
async with aiohttp.ClientSession() as session:
await session.post(
f"https://picked.gg/api/v1/bots/{bot.user.id}/stats",
headers={"Authorization": os.environ["PICKED_TOKEN"]},
json={"server_count": len(bot.guilds)},
)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://picked.gg/api/v1/bots/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'server_count' => 1482
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://picked.gg/api/v1/bots/{id}/stats"
payload := strings.NewReader("{\n \"server_count\": 1482\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://picked.gg/api/v1/bots/{id}/stats")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"server_count\": 1482\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://picked.gg/api/v1/bots/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"server_count\": 1482\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"server_count": 1482
}{
"error": "Invalid JSON body."
}{
"error": "Invalid token."
}{
"error": "Bot not found."
}{
"error": "Rate limit exceeded.",
"retryAfter": 42
}Post the Server Count
Report how many servers the bot is in. Rate limit: 60 requests per minute per token, which is well above one post per shard per interval.
Re-posting the same number is cheap: the page cache is only invalidated when the value actually changes. The check-in timestamp is written every time, and it is what the bot page reads as a liveness signal.
curl -X POST https://picked.gg/api/v1/bots/YOUR_BOT_ID/stats \
-H "Authorization: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"server_count": 1482}'client.once(Events.ClientReady, async () => {
await fetch(`https://picked.gg/api/v1/bots/${client.user.id}/stats`, {
method: 'POST',
headers: {
Authorization: process.env.PICKED_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ server_count: client.guilds.cache.size }),
});
});import os, aiohttp
@bot.event
async def on_ready():
async with aiohttp.ClientSession() as session:
await session.post(
f"https://picked.gg/api/v1/bots/{bot.user.id}/stats",
headers={"Authorization": os.environ["PICKED_TOKEN"]},
json={"server_count": len(bot.guilds)},
)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://picked.gg/api/v1/bots/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'server_count' => 1482
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://picked.gg/api/v1/bots/{id}/stats"
payload := strings.NewReader("{\n \"server_count\": 1482\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://picked.gg/api/v1/bots/{id}/stats")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"server_count\": 1482\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://picked.gg/api/v1/bots/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"server_count\": 1482\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"server_count": 1482
}{
"error": "Invalid JSON body."
}{
"error": "Invalid token."
}{
"error": "Bot not found."
}{
"error": "Rate limit exceeded.",
"retryAfter": 42
}Authorizations
The bot's API token, generated on its edit page. Sent bare or as Bearer <token> -- both are accepted, because the libraries already posting to other lists send both. The token is shown once; generating a new one invalidates the old.
Path Parameters
The bot's Discord application id. It has to be the bot the token belongs to.
^\d{17,19}$Body
One of the three field names is required. They are aliases; server_count is the canonical one and the other two exist because SDKs in the wild send them.

