Discord Scraper (Members and Messages)

Discord Scraper (Members and Messages)

by curious_coder

Need to pull data from a Discord server? This actor lets you scrape member lists and channel messages, including any shared attachments, directly into...

469,051 runs
1,016 users
Try This Actor

Opens on Apify.com

About Discord Scraper (Members and Messages)

Need to pull data from a Discord server? This actor lets you scrape member lists and channel messages, including any shared attachments, directly into a structured format like JSON or CSV. Think of it as your backstage pass to Discord data. Whether you're building a community dashboard, analyzing conversation trends, or archiving important channel content, this scraper handles the heavy lifting. You just configure the target server and channels, and it extracts the information cleanly for you. I use it primarily for two things: getting a clean member list for community management and archiving useful files and links shared in specific channels. It saves hours of manual copying and pasting. The data comes out ready for spreadsheets, databases, or your own custom analysis scripts. Set up is straightforward. You'll need your Discord user token and the specific server and channel IDs you want to scrape. Run it, and it fetches the members and messages with their attachments. It's a practical tool for developers, researchers, and moderators who need to work with Discord data outside of the app.

What does this actor do?

Discord Scraper (Members and Messages) is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Important points to consider when using this actor 1. You can save costs by configuring this actor to run on low memory, as low as 512MB. Increasing memory won't make it faster or better. 2. If the actor stops before scraping all records due to unexpected error, you can simply ressurect the actor to resume scraping. ## Features 1. Scrape messages from any discord server channel 2. Scrape members of any discord server ## How to get Token To get the token follow these steps: 1. Login to your discord account using google chrome 2. Open Developer tools (3 Dots Menu > More tools > Developer tools) 3. Goto 'Console' Tab and paste following code and press ENTER. It will copy the token to your clipboard automatically. (You should get message that says "Worked!" if the token was copied successfully) js 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'); Here is the sample output of this actor: ## Messages json { "id": "1131713979111186482", "type": 19, "content": "**high definition photo of a modern powder bathroom in a high-end home in the desert. bright daytime light and a skylight. white oak and natural materials and woven textures with desert inspirted colors, modern desert-inspired spanish tile. Matte black hardware. Modern light sconces around the vanity mirror. Include some natural desert elements into the design. (fast)** - Image #2 <@1122599062454157382>", "channel_id": "1008571020480876554", "author": { "id": "936929561302675456", "username": "Midjourney Bot", "avatar": "f6ce562a6b4979c4b1cbc5b436d3be76", "discriminator": "9282", "public_flags": 589824, "flags": 589824, "bot": true, "banner": null, "accent_color": null, "global_name": null, "avatar_decoration": null, "display_name": null, "banner_color": null }, "attachments": [ { "id": "1131713978821791776", "filename": "camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_f58fa448-1620-4aca-9621-005ef9f3b383.png", "size": 1433631, "url": "https://cdn.discordapp.com/attachments/1008571020480876554/1131713978821791776/camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_f58fa448-1620-4aca-9621-005ef9f3b383.png", "proxy_url": "https://media.discordapp.net/attachments/1008571020480876554/1131713978821791776/camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_f58fa448-1620-4aca-9621-005ef9f3b383.png", "width": 1024, "height": 1024, "content_type": "image/png" } ], "embeds": [], "mentions": [ { "id": "1122599062454157382", "username": "camcooke", "avatar": null, "discriminator": "0", "public_flags": 0, "flags": 0, "banner": null, "accent_color": null, "global_name": "camcam", "avatar_decoration": null, "display_name": "camcam", "banner_color": null } ], "mention_roles": [], "pinned": false, "mention_everyone": false, "tts": false, "timestamp": "2023-07-20T22:27:18.849000+00:00", "edited_timestamp": null, "flags": 0, "components": [ { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::JOB::high_variation::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "label": "Vary (Strong)", "emoji": { "name": "🪄" } }, { "type": 2, "custom_id": "MJ::JOB::low_variation::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "label": "Vary (Subtle)", "emoji": { "name": "🪄" } } ] }, { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::Outpaint::50::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "label": "Zoom Out 2x", "emoji": { "name": "🔍" } }, { "type": 2, "custom_id": "MJ::Outpaint::75::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "label": "Zoom Out 1.5x", "emoji": { "name": "🔍" } }, { "type": 2, "custom_id": "MJ::CustomZoom::f58fa448-1620-4aca-9621-005ef9f3b383", "style": 2, "label": "Custom Zoom", "emoji": { "name": "🔍" } } ] }, { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::JOB::pan_left::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "emoji": { "name": "⬅️" } }, { "type": 2, "custom_id": "MJ::JOB::pan_right::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "emoji": { "name": "➡️" } }, { "type": 2, "custom_id": "MJ::JOB::pan_up::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "emoji": { "name": "⬆️" } }, { "type": 2, "custom_id": "MJ::JOB::pan_down::1::f58fa448-1620-4aca-9621-005ef9f3b383::SOLO", "style": 2, "emoji": { "name": "⬇️" } } ] }, { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::BOOKMARK::f58fa448-1620-4aca-9621-005ef9f3b383", "style": 2, "emoji": { "name": "❤️" } }, { "type": 2, "style": 5, "label": "Web", "url": "https://www.midjourney.com/app/jobs/f58fa448-1620-4aca-9621-005ef9f3b383/" } ] } ], "message_reference": { "channel_id": "1008571020480876554", "message_id": "1131713804179362064", "guild_id": "662267976984297473" }, "referenced_message": { "id": "1131713804179362064", "type": 19, "content": "**high definition photo of a modern powder bathroom in a high-end home in the desert. bright daytime light and a skylight. white oak and natural materials and woven textures with desert inspirted colors, modern desert-inspired spanish tile. Matte black hardware. Modern light sconces around the vanity mirror. Include some natural desert elements into the design. (fast)** - Variations (Strong) by <@1122599062454157382> (fast)", "channel_id": "1008571020480876554", "author": { "id": "936929561302675456", "username": "Midjourney Bot", "avatar": "f6ce562a6b4979c4b1cbc5b436d3be76", "discriminator": "9282", "public_flags": 589824, "flags": 589824, "bot": true, "banner": null, "accent_color": null, "global_name": null, "avatar_decoration": null, "display_name": null, "banner_color": null }, "attachments": [ { "id": "1131713803940274198", "filename": "camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_3eaa7c0c-9825-4110-9c89-02c4e463a8d0.png", "size": 6647039, "url": "https://cdn.discordapp.com/attachments/1008571020480876554/1131713803940274198/camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_3eaa7c0c-9825-4110-9c89-02c4e463a8d0.png", "proxy_url": "https://media.discordapp.net/attachments/1008571020480876554/1131713803940274198/camcooke_high_definition_photo_of_a_modern_powder_bathroom_in_a_3eaa7c0c-9825-4110-9c89-02c4e463a8d0.png", "width": 2048, "height": 2048, "content_type": "image/png" } ], "embeds": [], "mentions": [ { "id": "1122599062454157382", "username": "camcooke", "avatar": null, "discriminator": "0", "public_flags": 0, "flags": 0, "banner": null, "accent_color": null, "global_name": "camcam", "avatar_decoration": null, "display_name": "camcam", "banner_color": null } ], "mention_roles": [], "pinned": false, "mention_everyone": false, "tts": false, "timestamp": "2023-07-20T22:26:37.142000+00:00", "edited_timestamp": null, "flags": 0, "components": [ { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::JOB::upsample::1::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 1, "label": "U1" }, { "type": 2, "custom_id": "MJ::JOB::upsample::2::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 1, "label": "U2" }, { "type": 2, "custom_id": "MJ::JOB::upsample::3::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 1, "label": "U3" }, { "type": 2, "custom_id": "MJ::JOB::upsample::4::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 1, "label": "U4" }, { "type": 2, "custom_id": "MJ::JOB::reroll::0::3eaa7c0c-9825-4110-9c89-02c4e463a8d0::SOLO", "style": 2, "emoji": { "name": "🔄" } } ] }, { "type": 1, "components": [ { "type": 2, "custom_id": "MJ::JOB::variation::1::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 2, "label": "V1" }, { "type": 2, "custom_id": "MJ::JOB::variation::2::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 2, "label": "V2" }, { "type": 2, "custom_id": "MJ::JOB::variation::3::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 2, "label": "V3" }, { "type": 2, "custom_id": "MJ::JOB::variation::4::3eaa7c0c-9825-4110-9c89-02c4e463a8d0", "style": 2, "label": "V4" } ] } ], "message_reference": { "channel_id": "1008571020480876554", "message_id": "1131713484078461018", "guild_id": "662267976984297473" } } } ## Discord server members json { "id": "211868139443453952", "bot": false, "system": false, "flags": 0, "connectedAccounts": [], "premiumSince": null, "premiumGuildSince": null, "bio": null, "pronouns": null, "application": null, "username": "notani.", "globalName": "-Ani-", "discriminator": "0", "avatar": null, "avatarDecoration": null, "createdTimestamp": 1470583700763, "defaultAvatarURL": "https://cdn.discordapp.com/embed/avatars/3.png", "tag": "notani.", "avatarURL": null, "displayAvatarURL": "https://cdn.discordapp.com/avatars/211868139443453952/1019233d0aec84e3472a25eeabfa26bb.webp", "guildId": "797239171730505839", "joinedTimestamp": 1653433130270, "premiumSinceTimestamp": null, "nickname": null, "pending": false, "communicationDisabledUntilTimestamp": null, "userId": "211868139443453952", "displayName": "-Ani-", "roles": [ "797239171730505839" ] }

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Discord Scraper (Members and Messages) now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
curious_coder
Pricing
Paid
Total Runs
469,051
Active Users
1,016
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support