A Basic FREE API For Getting Discord Server Info Using Discord Bot Token Without Needing to Host The Bot! 100% Open Source
Discord Bot MUST Be In The Server You Want To Lookup. Otherwise it Will Return An Error:
{
"error": "Failed to fetch guild info",
"details": "{\"message\": \"Unknown Guild\", \"code\": 10004}"
}Q: Why This Happens?
A: Because The Bot Isn't In The Server. Therefore It Doesnt See The Server.
Q: Is It Fixable?
A: Im Not Sure. But Let Me Know If You Find a Way!
Q: Is It Safe?
A: Yes 100%! Just Make Sure NEVER Give Admin Or Any Other Dangerous Permission To The Bot Incase It Gets Compromised
Q: What Does The Bot Do?
A: The Bot Does Absolutly Nothing It Has 0 Lines Of Code
Q: Why Have a Discord Bot?
A: Becuase If The Bot Isnt In The Server You Want to Lookup It Will Return
{
"error": "Failed to fetch guild info",
"details": "{\"message\": \"Unknown Guild\", \"code\": 10004}"
} GET /api/discord-server-api-js/guild?guild=GUILD_ID
GET /api/discord-server-api-js/user?guild=GUILD_ID&user=USER_ID
| Parameter | Type | Description |
|---|---|---|
guild |
string |
Required. Must be In Both User Lookup and Server Lookup |
user |
string |
Required. Must be In User Lookup |
- No Account Needed
- No API Key Required
- Online 24/7 VIA Vercel
- Light/dark mode toggle
- No Hosting Needed
- Easy To Use
- Has Discord Bot (REQUIRED FOR GUILD LOOKUP TO WORK)
-
Fork This Repo Then Host On Vercel (or any other service if you want):
-
Get Discord Bot Token From Developer Portal: https://discord.com/developers/applications
-
Make an .ENV For The Bot Token:
DISCORD_BOT_TOKENWhich Must Have The Bot Token Or an Error Will Appear
{
"error": "Failed to fetch guild info",
"details": "{\"message\": \"401: Unauthorized\", \"code\": 0}"
}- The Website Should Host Itself and Be Online!