Discord Channel Messages Scraper avatar
Discord Channel Messages Scraper

Pricing

from $0.10 / 1,000 results

Go to Apify Store
Discord Channel Messages Scraper

Discord Channel Messages Scraper

Scraping messages from Discord channels.

Pricing

from $0.10 / 1,000 results

Rating

5.0

(1)

Developer

FELT Labs

FELT Labs

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

6 days ago

Last modified

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:

  1. Extract Complete Channel Histories

    • Scrape entire Discord channel message histories with full message data
    • Access messages from any channel you have permission to view
  2. 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
  3. 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
  4. 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
  5. 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

  1. Get Your Discord Token (see detailed instructions below)
  2. 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
  3. 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

ParameterTypeDescriptionExample
channelUrlstringDiscord channel URL to scrape (must have access permissions)https://discord.com/channels/927873274136891392/927873274136891398
discordTokenstringYour Discord authentication token (required for API access)Personal Discord token
maxMessagesPerCrawlnumberMaximum number of messages to extract (set to 0 for unlimited)1000
fromDatestringEarliest message date to scrape (format: YYYY-MM-DD). Use 'none' for no limit'2025-01-15' (optional)
toMessageIdstringMessage 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:

  1. Login to Discord using Google Chrome or any Chromium-based browser
  2. Open Developer Tools (Menu > More tools > Developer tools, or press F12)
  3. Navigate to the Console Tab
  4. 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');
  1. 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!