Skip to content

A lightweight Node.js application for fetching detailed information about Discord users through a simple API. Clone the repository, set up, and run locally to access extended user data, including username, discriminator, avatar, banner, user flags, Nitro type, and creation date.

Notifications You must be signed in to change notification settings

itsvijaysingh/Discord-Lookup-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Discord User Info API

This Node.js application serves as a simple API for retrieving extended information about Discord users. It utilizes the Discord API to fetch user data and processes it to provide additional details. The API exposes an endpoint to retrieve user information based on their Discord user ID.

How to Run

Follow these steps to run the application locally:

  1. Clone the repository to your local machine.

    git clone https://github.com/itsvijaysingh/Discord-Lookup-API.git
  2. Navigate to the project directory.

    cd Discord-Lookup-API
  3. Install the required dependencies.

    npm install
  4. Open the api.js file and ensure the DISCORD_BOT_TOKEN variable is set. You can obtain a Discord bot token by creating a new bot on the Discord Developer Portal.

    const DISCORD_BOT_TOKEN = process.env.DISCORD_BOT_TOKEN || 'your-bot-token-here';
  5. Save the changes.

  6. Run the application.

    node api.js
  7. The server will start running on http://localhost:3000. You can now make requests to the API.

API Endpoint

  • GET /api/user/:id: Retrieve extended information about a Discord user based on their user ID.

    Example: http://localhost:3000/api/user/123456789012345678

    Replace 123456789012345678 with the actual Discord user ID.

    The response will include details such as username, discriminator, avatar, banner, user flags, Nitro type, creation date, and more.

Dependencies

  • Express: A web application framework for Node.js.
  • Cors: Middleware for enabling Cross-Origin Resource Sharing.

Note: Ensure that Node.js is installed on your machine before running the application.

Feel free to customize and extend the application according to your needs. If you encounter any issues or have questions, please refer to the Discord API documentation for assistance.

About

A lightweight Node.js application for fetching detailed information about Discord users through a simple API. Clone the repository, set up, and run locally to access extended user data, including username, discriminator, avatar, banner, user flags, Nitro type, and creation date.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published