Discord Channel Messages Scraper
Pricing
from $0.10 / 1,000 results
Pricing
from $0.10 / 1,000 results
Rating
5.0
(1)
Developer

FELT Labs
Actor stats
0
Bookmarked
3
Total users
0
Monthly active users
6 days ago
Last modified
Categories
Share
Discord Message Scraper
The Discord Message Scraper is a powerful tool for extracting structured message data from Discord channels. Whether you're conducting community research, performing content analysis, or archiving conversations, this scraper delivers comprehensive Discord channel data with precision and reliability.
What Does This Actor Do?
This Actor allows you to:
-
Extract Complete Channel Histories
- Scrape entire Discord channel message histories with full message data
- Access messages from any channel you have permission to view
-
Filter by Date and Message Range
- Set a starting date (
fromDate) to extract messages from a specific time period - Use message ID cutoffs (
toMessageId) for precise pagination control - Perfect for incremental scraping or updating existing datasets
- Set a starting date (
-
Retrieve Rich Message Data
- Content: Full message text and formatting
- Author Details: Username, user ID, and profile information
- Timestamps: Creation and edit times for chronological analysis
- Media & Attachments: Images, videos, files, and embedded content
- Engagement: Reactions, mentions, and interaction data
- Metadata: Message IDs, channel IDs, and thread information
-
Automated Pagination
- Handles Discord's API pagination automatically
- Configurable batch sizes (default: 50 messages per request)
- Built-in rate limiting (5-second delays) to respect Discord's API limits
-
Structured JSON Output
- Clean, organized data exported to Apify datasets
- Easy integration with downstream analysis tools
- Ready for data science, sentiment analysis, or archival purposes
How to Run This Actor
- Get Your Discord Token (see detailed instructions below)
- Configure Input Parameters:
- Paste the Discord channel URL you want to scrape
- Add your Discord token for authentication
- Set optional filters like date range and message limits
- Run the Actor and retrieve your data from the dataset
The Actor will automatically handle pagination, rate limiting, and data extraction, delivering structured JSON output ready for analysis.
Input Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
channelUrl | string | Discord channel URL to scrape (must have access permissions) | https://discord.com/channels/927873274136891392/927873274136891398 |
discordToken | string | Your Discord authentication token (required for API access) | Personal Discord token |
maxMessagesPerCrawl | number | Maximum number of messages to extract (set to 0 for unlimited) | 1000 |
fromDate | string | Earliest message date to scrape (format: YYYY-MM-DD). Use 'none' for no limit | '2025-01-15' (optional) |
toMessageId | string | Message ID to start scraping before (useful for pagination and incremental runs) | '1437533170466689165' (optional) |
How to Get Your Discord Token
To use this Actor, you need a valid Discord authentication token. Follow these steps:
- Login to Discord using Google Chrome or any Chromium-based browser
- Open Developer Tools (Menu > More tools > Developer tools, or press
F12) - Navigate to the Console Tab
- Paste the following code and press ENTER:
window.webpackChunkdiscord_app.push([[Symbol()],{},(req) => {if (!req.c) return;for (let m of Object.values(req.c)) {try {if (!m.exports || m.exports === window) continue;if (m.exports?.getToken) return copy(m.exports.getToken());for (let ex in m.exports) {if (m.exports?.[ex]?.getToken && m.exports[ex][Symbol.toStringTag] !== 'IntlMessagesProxy')return copy(m.exports[ex].getToken());}} catch {}}},]);window.webpackChunkdiscord_app.pop();console.log('%cWorked!', 'font-size: 50px');console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');
- You should see "Worked!" displayed in large text - your token is now copied to your clipboard!
Security Note: Keep your Discord token private. Anyone with your token can access your Discord account. Never share it publicly or commit it to version control.
Output Format
The scraped data is organized in clean, structured JSON format with complete Discord API message data. Each message includes:
- Message Content: Full text, formatting, and embedded content
- Author Information: Username, discriminator, user ID, avatar URL
- Timestamps: Message creation time, last edit time
- Media Assets: Attachment URLs, embedded images, videos, and files
- Engagement Metrics: Reactions (emoji, count), mentions, replies
- Metadata: Message ID, channel ID, server ID, message type
- Thread Data: Parent message IDs, thread membership
Use Cases
- Community Research: Analyze discussion patterns, engagement trends, and user behavior
- Content Analysis: Extract conversations for sentiment analysis or topic modeling
- Moderation Insights: Review historical messages for policy enforcement or community health
- Data Archival: Backup important channel conversations and community knowledge
- Marketing Research: Track brand mentions, product feedback, and customer sentiment
Request New Features
We're continuously improving this scraper to meet your needs! If you have feature requests, suggestions, or encounter issues, please reach out through the Apify platform. Your feedback helps us enhance the Actor for the entire community.
Start scraping today and unlock powerful insights from Discord communities!