# Your Discord  Extractor ⭐5.0 (`jupri/discord`) Actor

💫 All-in-One Your Discord.com Scraper 🔑 Cookies Required

- **URL**: https://apify.com/jupri/discord.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Integrations
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 💫 Welcome to Discord Scraper

<img height="32" align="right" src="https://apify.com/actor-badge?actor=jupri~discord">

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 🤖 About Discord.com

<img width="40%" align="right" src="https://upload.wikimedia.org/wikipedia/en/9/98/Discord_logo.svg">

**Discord**  is an  [instant messaging](https://en.wikipedia.org/wiki/Instant_messaging "Instant messaging")  and  [VoIP](https://en.wikipedia.org/wiki/Voice_over_IP "Voice over IP")  [social platform](https://en.wikipedia.org/wiki/Social_platform "Social platform")  that allows communication through  [voice calls](https://en.wikipedia.org/wiki/Voice_over_IP "Voice over IP"),  [video calls](https://en.wikipedia.org/wiki/Videotelephony "Videotelephony"),  [text messaging](https://en.wikipedia.org/wiki/Text_messaging "Text messaging"), and  [media](https://en.wikipedia.org/wiki/Digital_media "Digital media"). Communication can be private or take place in virtual communities called "servers".[\[note 2\]](https://en.wikipedia.org/wiki/Discord#cite_note-guilds-9)  Such a server is a collection of persistent  [chat rooms](https://en.wikipedia.org/wiki/Chat_room "Chat room")  and voice channels accessed by invitation  [links](https://en.wikipedia.org/wiki/Hyperlink "Hyperlink"). Discord runs on  [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows "Microsoft Windows"),  [macOS](https://en.wikipedia.org/wiki/MacOS "MacOS"),  [Android](https://en.wikipedia.org/wiki/Android_\(operating_system\) "Android (operating system)"),  [iOS](https://en.wikipedia.org/wiki/IOS "IOS"),  [iPadOS](https://en.wikipedia.org/wiki/IPadOS "IPadOS"), and  [Linux](https://en.wikipedia.org/wiki/Linux "Linux"), and in  [web browsers](https://en.wikipedia.org/wiki/Web_browser "Web browser").

As of 2024,  Discord has about 150 million monthly active users and 19 million weekly active servers.[\[8\]](https://en.wikipedia.org/wiki/Discord#cite_note-:7-10)  It is primarily used by  [gamers](https://en.wikipedia.org/wiki/Gamer "Gamer"), although the share of users interested in other topics is growing.[\[9\]](https://en.wikipedia.org/wiki/Discord#cite_note-11)  As of March 2024,  Discord is the  [30th most visited website in the world](https://en.wikipedia.org/wiki/List_of_most-visited_websites "List of most-visited websites"), and 22.98% of its traffic comes from the United States.[\[10\]](https://en.wikipedia.org/wiki/Discord#cite_note-12)[\[11\]](https://en.wikipedia.org/wiki/Discord#cite_note-13)  In March 2022, Discord employed 600 people globally.[\[12\]](https://en.wikipedia.org/wiki/Discord#cite_note-:6-14)

### 🤖 About This Actor

**💫 All-in-One Discord.com Scraper**

### 🔑 Discord Access Token

***☢️ Important Notes ☢️***

- This Actor requires your **Discord.com** login to work properly.
- However, using this token is against Discord’s **Terms of Use**, as it is considered self-botting. If you are caught using it, your account may be banned.
- The developer is not responsible for any consequences that may occur to your login as a result of using this Actor.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/sTEmmw6b7t7WJuMwe-issue-Xkwezgb9fDnVlKfZM-etAgEROKob-image.png">

**To get your Discord Access Token (Google Chrome) :**

*Please follow this steps carefully ...*

- Login to **Discord.com**.
- **important!** Close all **Discord.com** Chrome *Tabs* and *Windows* before proceed.
- Open this **URL** *(copy paste into chrome address)* : `view-source:https://discord.com`
- Open Chrome **Developer Tools** `(Ctrl + Shift + I)`
- Open **Application Tab**
- On left panel, go to: `Storage -> Local storage -> https://discord.com`
- Find a value named **"token".**
- Copy & Paste into **Discord Access Token** input `(access_token)`.

### ✏️ Support

⚡️ Feel free to [reach out](https://console.apify.com/actors/2mOepVQPaMidvlAFd/issues) to the developer for any [issues](https://console.apify.com/actors/2mOepVQPaMidvlAFd/issues) or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `array`):

💡<code>Discord URL</code>

## `example` (type: `string`):

💡<code>QUERY</code> Input Examples

## `limit` (type: `integer`):

💡 Number of results <i>(per-query)</i>

## `access_token` (type: `string`):

No description

## `search` (type: `string`):

💡 Search KEYWORDS

## `guild` (type: `string`):

💡 Guild ID

## `channel` (type: `string`):

💡 Channel ID

## `pinned` (type: `boolean`):

💡 Pinned messages

## `author_id` (type: `array`):

No description

## `mentions` (type: `array`):

No description

## `has` (type: `array`):

No description

## `before` (type: `string`):

No description

## `after` (type: `string`):

No description

## `during` (type: `string`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "query": [
    "https://discord.com/channels/801163717915574323/801236795332231168"
  ],
  "limit": 5
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": [
        "https://discord.com/channels/801163717915574323/801236795332231168"
    ],
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/discord").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": ["https://discord.com/channels/801163717915574323/801236795332231168"],
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/discord").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": [
    "https://discord.com/channels/801163717915574323/801236795332231168"
  ],
  "limit": 5
}' |
apify call jupri/discord --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jupri/discord"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2mOepVQPaMidvlAFd/builds/urwclbuhvInwo69Et/openapi.json
