I built Clyder to pull and analyze message history from Discord channels without having to manually export or use third-party services. It's useful for keyword searches across time, archival, or understanding conversation trends in a server.
Important: Use this only on servers where you have permission to access the data.
- Fetch Messages: Pull all messages from a channel, optionally filtered by date range
- Keyword Search: Find messages containing specific keywords
- Export to CSV: Save results with message ID, timestamp, author, content, and more
- Flexible Date Handling: Accepts YYYY-MM-DD format, converts to UTC automatically
- Rate Limit Aware: Built-in delays to respect Discord API limits
By using this tool, you agree to comply with Discord's Terms of Service. This tool does not perform any scraping activities; instead, it leverages Discord's official API for data retrieval, respecting all rate limits and usage guidelines. Misuse of this tool, such as using it in ways that violate Discord's Terms of Service (e.g., unauthorized data collection, using self-bots), can result in account termination. The creator of this tool does not endorse or encourage any activities that violate Discord's Terms of Service.
To use Clyder, you'll need to enable Developer Mode in Discord and gather your authorization token, server ID, and channel ID. Follow the steps below:
- Open Discord and go to User Settings (gear icon in the bottom-left).
- Navigate to Advanced tab.
- Enable Developer Mode.
- Close settings.
-
Open your Discord server in a Chromium-based browser (Chrome, Edge, Brave, etc.).
-
Press
F12to open Developer Tools. -
Go to the Network tab.
-
Interact with Discord (scroll through channels, send a message, etc.).
-
In the Network tab's search/filter box, search for:
messages?limit=50 -
Click on the result that appears.
-
Scroll down to Request Headers and find the Authorization header. It will look like:
Authorization: Tl4gh9sd...Copy the entire value after "Authorization: ". This is your Auth Token.
- In Discord, right-click on your server name/icon (on the left sidebar).
- Select "Copy Server ID" from the context menu.
- In Discord, right-click on the channel name you want to analyze.
- Select "Copy Channel ID" from the context menu.
-
Clone the repository and navigate to the project directory:
git clone <repository-url> cd Clyder
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Run the script:
python Clyder.py
-
Follow the interactive prompts:
- Enter your Discord bot token
- Enter your server ID
- Enter your channel ID
- Choose to fetch all messages (a) or keyword search (k)
- Optionally filter by date range
- If doing keyword search, enter comma-separated keywords
The tool saves results as CSV with these columns:
message_id,timestamp,author_id,author_name,content,channel_id,guild_id,attachments
123456789,2025-01-07T14:23:01.000000+00:00,987654321,alice,\"yo this is cool\",555,666,
123456790,2025-01-07T14:25:15.000000+00:00,111111111,bob,\"totally agree\",555,666,https://cdn.discord.com/attachments/...
- Large channels (10k+ messages) can take a while—Discord rate limits kick in, but we respect that
- Deleted messages are gone for good (Discord API doesn't return them)
- Embeds and reactions aren't included, just the raw message text
- If a user deletes their account, their author_name shows as "Deleted User" but author_id is preserved
This project is licensed under the MIT License.



