Skip to content

Guilds


Get all guilds your Discord bot is in

Get detailed information about each individual server your bot is in


POST /api/discord/guilds
Terminal window
https://api.cookie-api.com/api/discord/guilds


{
"bot_token": "Your Bot's Token"
}


curl --location 'https://api.cookie-api.com/api/discord/guilds' \
--header 'Authorization: API_Key' \
--header 'Content-Type: application/json' \
--data '{
"bot_token": "Your Bot Token"
}'

Responses
{
"guilds": [
{
"banner": null,
"channel_counts": {
"0": 6,
"1": 0,
"2": 0,
"3": 0,
"4": 2,
"5": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"15": 1,
"16": 0
},
"channels": [
{
"id": 1283444078570373142,
"name": "Category",
"type": 4
},
{
"id": 1283444260678402182,
"name": "general-chat",
"type": 0
},
],
"created_at": "2024-09-11T15:08:33.401000+00:00",
"icon_url": "https://cdn.discordapp.com/icons/1283444077865599027/208d06e7f2e853761b9489447719ef89.png?size=1024",
"id": 1283444077865599027,
"member_count": 4,
"name": "Cookie API Beta",
"owner_id": 1025427725021872158,
"roles": [
"@everyone",
"Test-Staff-Role",
"test-Role",
"Cookie Test",
"admin"
],
"rules_channel": "rules",
"rules_channel_id": 1283876571043729408
}
],
"success": true,
"total_guilds": 1
}


Get a guild your Discord bot is in

Get detailed information about a server your bot is in

POST /api/discord/guild
Terminal window
https://api.cookie-api.com/api/discord/guild


{
"bot_token": "Your Bot's Token",
"guild_id": "Target Guild ID",
}


example.cURL
curl --location 'https://api.cookie-api.com/api/discord/guilds' \
--header 'Authorization: API_Key' \
--header 'Content-Type: application/json' \
--data '{
"bot_token": "Your Bot Token"
}'

Responses
{
"guild": {
"banner": null,
"channel_counts": {
"0": 6,
"1": 0,
"2": 0,
"3": 0,
"4": 2,
"5": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"15": 1,
"16": 0
},
"channels": [
{
"id": 1283444078570373142,
"name": "Category",
"type": 4
},
{
"id": 1283444260678402182,
"name": "general-chat",
"type": 0
},
],
"created_at": "2024-09-11T15:08:33.401000+00:00",
"icon_url": "https://cdn.discordapp.com/icons/1283444077865599027/208d06e7f2e853761b9489447719ef89.png?size=1024",
"id": 1283444077865599027,
"member_count": 4,
"name": "Cookie API Beta",
"owner_id": 1025427725021872158,
"roles": [
"@everyone",
"Test-Staff-Role",
"test-Role",
"Cookie Test",
"admin"
],
"rules_channel": "rules",
"rules_channel_id": 1283876571043729408
},
"success": true
}