# Discord Server Scraper & API: Find Servers, Members & Online (`s_actors/discord-server-scraper`) Actor

Scrape public Discord servers without login: search by keyword or category, or read links. Members, online, boosts, language, categories, keywords, creation date, social links. Invite checker (alive or dead, expiry). New server and member growth alerts.

- **URL**: https://apify.com/s_actors/discord-server-scraper.md
- **Developed by:** [Superior Actors](https://apify.com/s_actors) (community)
- **Categories:** Social media, Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.79 / 1,000 servers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Discord Server Scraper & API: Find Servers, Members & Online

Find and export **public Discord servers** with their real numbers: **members, online now, boosts, language, categories, keywords, creation date, social links** and the **reasons to join**. Search by **keyword**, list a whole **category** (up to ~3 000 servers), read servers by **link, ID or invite**, or take the **whole public directory** (~32 000 servers). No Discord account, no bot token, no browser.

```json
{ "searchQueries": ["crypto trading", "stock trading"], "minMembers": 5000, "languages": ["en"] }
```

Filter by **size, language and verified / partnered**; servers you filter out are free. Schedule it with **Only new servers** or **Member growth** to watch a niche: new communities of a keyword and how fast the big ones grow.

**Discord invite checker:** put invite links (`discord.gg/<code>`, `discord.com/invite/<code>` or bare codes) into **Invite links to check** and get one row per invite: **alive or dead**, server name, members, online, boosts and **expiry**. Works for any server, not only the public directory.

```json
{ "inviteLinks": ["discord.gg/python", "discord.com/invite/midjourney"] }
```

#### What you get

Real example, 31 October 2026: search **"crypto trading"**:

| server | members | online | category | language | created | boosts |
|---|---|---|---|---|---|---|
| Axion Trading │ #1 Crypto Trading Community | 100,263 | 3,175 | Finance | en-US | 2020-12-28 | 26 |
| CryptoTraders.com | 90,074 | 2,240 | Finance | en-US | 2019-02-05 | 27 |
| Cryptohub | 51,500 | 2,613 | - | en-US | 2021-03-24 | 27 |
| Rand Trading Group | Stocks, Crypto Trading | 39,039 | 1,457 | Finance | en-US | 2017-12-22 | 23 |
| Hotcoin | 9,152 | 71 | Finance | en-US | 2023-04-12 | 21 |

| Field | Description |
|---|---|
| `id`, `name`, `url`, `inviteUrl` | The server, its page on discord.com and its vanity invite (`discord.gg/...`) when it has one |
| `description`, `about` | The short description and the longer "About" text from the server page |
| `members`, `online`, `onlineShare` | Members, members online now, and the share online (activity) |
| `boosts` | Server boosts |
| `verified`, `partnered` | Discord verified and partnered badges |
| `language` | The server's preferred language (`en-US`, `de`, `pt-BR`...) |
| `primaryCategory`, `categories`, `keywords` | Discord categories and the keywords the owners set |
| `createdAt` | When the server was created |
| `socialLinks`, `reasonsToJoin` | Links to the community's X, YouTube, Reddit, site... and the reasons to join the owners wrote |
| `iconUrl`, `bannerUrl`, `splashUrl` | Server images |
| `membersChange`, `isNew` | With **Member growth** or **Only new servers**: members since the previous run, and whether the server is new |
| `inviteCode`, `inviteStatus`, `expiresAt`, `neverExpires`, `channel`, `tag` | Invite check: `alive` or `dead`, when the invite expires (empty = never), the channel it points to and the server tag |
| `previousStatus` | With **Member growth** on invites: the status in the previous run, so a link that died shows up |
| `source`, `sourceType`, `rank`, `scrapedAt` | The query, category or link the row came from, its place there, and the run time |

#### How it works

1. Add one or more sources: **Search queries** (keywords), **Categories** (Gaming, Cryptocurrency, Anime & Manga, Education...), **Servers by link, ID or invite** (`discord.com/servers/...`, a server ID, `discord.gg/<code>`) or switch on **All Discoverable servers**
2. Optionally set **Minimum / maximum members**, **Languages** and **Server type** (all, verified, partnered)
3. Set **Max servers per source** and run. Download as CSV, Excel, JSON or HTML. Four tabs: **Servers**, **Community profile**, **Invite check**, **Growth**

**Server details** is on by default (about text, keywords, boosts, creation date, links); turn it off for the list data only, which is faster.

#### Why this Actor

| | |
|---|---|
| 🔎 **Find communities by topic** | Keyword or category, sorted the way Discord's own directory shows them, with the numbers that matter: members and online now |
| 📊 **Real size and activity** | Members, online now and the online share for every server, so you can tell a big dead server from a smaller living one |
| 🔗 **Contacts for outreach** | Social links, vanity invite and the owners' own description of the community |
| 🎯 **Filters that cost nothing** | Size, language, verified / partnered: filtered-out servers are not charged |
| 🔔 **New server and growth alerts** | **Only new servers** returns just what appeared since the previous run; **Member growth** shows who is growing |
| ✅ **Invite checker** | Is the invite alive? Members, online and expiry for any `discord.gg` link, dead ones marked, bulk lists welcome (a dead invite is a row and is charged like any other) |
| 🌍 **Whole directory** | Take every public server (~32 000) in one run, with a limit you set |
| 💰 **$0.99 per 1,000 servers** | Details included, no subscription |

#### Watch a niche every day

1. Add your keywords or categories and turn on **Only new servers** (and **Member growth** to see the size change)
2. Save as a task and add a schedule, e.g. every morning
3. The **first run** returns the servers found now as a baseline. **Every later run** returns only servers not seen before: send them to [Google Sheets](https://apify.com/s_actors/google-sheets-import-export), Slack or email with an integration

The memory is kept in your account (key-value store `discord-server-directory-state`). Use a different **Monitor name** for each task.

#### Pricing

Pay per server in the results, no subscription needed. Apify Scale and Business plans pay less:

| Event | Free and Starter plans | Scale plan | Business plan |
|---|---|---|---|
| Run start | $0.001 | $0.001 | $0.001 |
| Server (one row, details included) | $0.00099 | $0.000891 | $0.000792 |

| Task | Cost |
|---|---|
| 24 servers of one keyword | ~$0.025 |
| The ~56 best matches for one keyword | ~$0.06 |
| One category, 1,000 servers | ~$1.00 |
| Daily alert of new servers for 5 keywords (~10 a day) | ~$0.31 per month |

Servers left out by your filters or by **Only new servers** are not charged.

#### Ready-made tasks

Open it, change the keywords, and run:

| Task | What you get |
|---|---|
| [Discord Server Scraper: Crypto Trading Communities by Size](https://apify.com/s_actors/discord-server-scraper/examples/discord-server-scraper-crypto-trading) | English servers of 5,000+ members for trading keywords, with online now, boosts and social links |

#### FAQ

**Which servers can I get?** Servers that Discord lists in its public server directory (Discoverable servers: public, with a community of at least 1,000 members). Other servers can be read from an invite link, with members and online only.

**How many servers per search?** Discord shows about 56 best matches per keyword: use several related words for more. A category lists up to ~3 000 servers, and **All Discoverable servers** takes the whole directory (~32 000).

**Does it read messages?** No. This Actor reads the server directory: who the servers are, how big and how active. Discord has announced public server pages and, later, public messages in search engines; messages are not part of this Actor.

**Do I need a Discord account or a bot token?** No.

**Why do some rows have no keywords or about text?** The server page was not available for that row (the server left the directory, or Discord answered too slowly). The list data is still there; run again for the missing ones.

#### Use with the API and AI agents

Run it via the [Apify API](https://docs.apify.com/api/v2) from Python, Node.js or any HTTP client as your Discord server search API, or connect it to Claude, ChatGPT and other AI agents through the [Apify MCP server](https://mcp.apify.com): "Find English Discord servers about AI agents with more than 10,000 members and list their social links."

#### Other social tools

| Tool | What it does |
|---|---|
| [Telegram Channel Analytics](https://apify.com/s_actors/telegram-channel-analytics) | Subscribers, posts and history of public Telegram channels and groups |
| [Facebook Page Search & API](https://apify.com/s_actors/facebook-page-search-scraper) | Facebook business pages by keyword with emails |
| [Medium Scraper](https://apify.com/s_actors/medium-scraper) | Medium articles by tag, keyword or author |
| [Google Sheets Import & Export](https://apify.com/s_actors/google-sheets-import-export) | Send the servers to a Google Sheet |

#### Is it legal?

The Actor reads only public pages and data that Discord shows to any visitor without logging in. Server descriptions and links are written by their owners: follow data protection rules (such as GDPR) and Discord's rules when you contact communities.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords, like the Discord server search box: "minecraft", "crypto trading", "anime". Discord shows about 56 best matches per query: use several related words for more.

## `categories` (type: `array`):

Discord server categories: Gaming, Entertainment, Education, Music, Science & Tech, Anime & Manga, Cryptocurrency, Investing, Art, Memes and others (names as on discord.com/servers). One category lists up to ~3 000 servers.

## `serverUrls` (type: `array`):

discord.com/servers/<name>-<id> links, bare server IDs, or invites (discord.gg/<code>). Servers outside the public directory are read from their invite: members and online only.

## `inviteLinks` (type: `array`):

discord.gg/<code> or discord.com/invite/<code> links, or bare codes. Each one becomes a row: alive or dead, server name, members, online, boosts and when the invite expires. Works for any server, public directory or not. Dead invites are rows too.

## `allServers` (type: `boolean`):

Read the whole public directory from Discord's sitemap (~32 000 servers, one page each). Use "Max servers in total" to limit the run.

## `minMembers` (type: `integer`):

Only servers with at least this many members (left-out servers are free).

## `maxMembers` (type: `integer`):

Only servers with at most this many members. 0 = no limit.

## `languages` (type: `array`):

Only servers in these languages: "en", "de", "pt", "ru", or full codes like "en-US".

## `serverType` (type: `string`):

All servers, only verified ones, or only partnered ones.

## `maxServersPerSource` (type: `integer`):

For each query, category and link. A query ends near 56 servers, a category near 3 000.

## `maxServers` (type: `integer`):

The run stops at this many servers.

## `includeDetails` (type: `boolean`):

Read each server page too: about text, keywords, boosts, creation date, social links, reasons to join, categories. Off = the list data only (name, description, members, online, language), faster.

## `onlyNew` (type: `boolean`):

Output only servers not seen in the previous runs of the same source (and monitor name). Schedule it daily to catch new communities of a keyword or category.

## `trackGrowth` (type: `boolean`):

Add membersChange (members since the previous run of the same source and monitor name) and isNew to every row.

## `monitorName` (type: `string`):

Keeps the memory of seen servers apart for different schedules.

## `debugLog` (type: `boolean`):

Log every request retry.

## Actor input object example

```json
{
  "searchQueries": [
    "minecraft"
  ],
  "allServers": false,
  "serverType": "any",
  "maxServersPerSource": 24,
  "maxServers": 1000,
  "includeDetails": true,
  "onlyNew": false,
  "trackGrowth": false,
  "debugLog": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Every server: name, link, description, members, online, category, language.

## `all` (type: `string`):

Every field, with about text, keywords, social links and reasons to join.

# 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 = {
    "searchQueries": [
        "minecraft"
    ],
    "maxServersPerSource": 24
};

// Run the Actor and wait for it to finish
const run = await client.actor("s_actors/discord-server-scraper").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 = {
    "searchQueries": ["minecraft"],
    "maxServersPerSource": 24,
}

# Run the Actor and wait for it to finish
run = client.actor("s_actors/discord-server-scraper").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 '{
  "searchQueries": [
    "minecraft"
  ],
  "maxServersPerSource": 24
}' |
apify call s_actors/discord-server-scraper --silent --output-dataset

```

## MCP server setup

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

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/U0Nwer9d5CBeGQbvc/builds/DCFIVB2WAFx0sWpGl/openapi.json
