discord-id

API and Website to get info from discord id's

Stars
8
Committers
1

discord-id

discord id lookup tool - node.js full-stack website and api to get info about discord id's

Functionality & Features

User Info:

username, discriminator, is system?, is bot?, tag, profile picture, account creation date, badges, nitro subscription status, banner color and account age.

Guild Info:

name, splash url, description, total members, online members, profile picture, server creation date, features, and server age.

Logs the ip addresses, id's and request times both to the console and a text file.

Works with cross origin requests, CORS Requests are allowed.

Provides both website and JSON API functionality.

Works no matter if the user has got their new username or not(discord discriminator removal update)


Endpoints

/api/your-discord-id => Gives the info as JSON

/ => Asks for a discord id.

/info/ => Gives the info inside the website


Usage & Setup

Install required dependencies:

npm i fs express discord.js@13 [email protected] ejs cors

Get a discord bot token, then create an environment variable:

export TOKEN="your-discord-bot-token" for linux / mac

set TOKEN="your-discord-bot-token" for windows cmd

$env:TOKEN="your-discord-bot-token" for windows powershell

On cloud hosting platforms like replit, codespaces, glitch, codesandbox etc, use the platform's integrated secrets feature.

node .

to start the server.


Testing

You can test the system here

You can test the api here

example api response

https://discord-id.rednexie.repl.co/

https://discord-id.rednexie.repl.co/info/866793047596728321

https://discord-id.rednexie.repl.co/api/866793047596728321)


  • fs
  • express
  • discord.js v13
  • consoled.js v1.0.4
  • ejs
  • cors

Possible Updates

More logging options(mysql, perma.db, quick.db, json)

More Interfaces(Command Line, Discord Bots)

Data storing/caching

Rate Limiting

Links

Download as Zip

Run on Replit

Import into Glitch

Create Github Codespace

Related Projects