# Discord Server Scraper - Member Count & Invite Checker (`scrolahdata/discord-server-scraper`) Actor

Discord server scraper and server list: search Discord's official server directory by keyword or category - member and online counts, boosts, language, tags, invite link. Plus a Discord invite checker (valid or expired). No login. $1 per 1,000 servers.

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

## Pricing

from $0.80 / 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 — Discord Server List, Member Count & Invite Checker

Scrape **Discord's official server directory** ([discord.com/servers](https://discord.com/servers)) **without a login or bot token**: search public Discord servers by keyword, browse whole categories, get **member counts, online counts**, boosts, language, tags and invite links — and **check Discord invite links** in bulk (valid or expired, server name, members, online).

**$1 per 1,000 servers.** Invite checks $1 per 1,000.

### What can it do?

- 🔎 **Discord server search** — any keyword (`minecraft`, `anime`, `crypto`, `study`, `python` ...) in Discord's own Server Discovery
- 📂 **Discord server list by category** — gaming, music, entertainment, education, science & tech, or all servers, sorted by members
- 👥 **Discord member count** — approximate members and **online members** for every server
- 🔗 **Discord invite checker** — paste `discord.gg/...` links or codes and get valid / invalid, expiry, server, member and online counts, verification level
- 📄 **Server details** — creation date, About text, social links and "reasons to join" for any server in the directory
- 🌍 **Filters** — minimum members and server language (en, es, pt-BR, de, ja ...)

### Input

```json
{
  "searchQueries": ["minecraft", "study"],
  "categories": ["gaming"],
  "maxServersPerSource": 200,
  "minMembers": 1000,
  "language": "en",
  "inviteLinks": ["https://discord.gg/discord-developers", "discord.gg/python"]
}
```

### Output

Server (category result or server details):

```json
{
  "type": "server",
  "source": "serverUrl",
  "id": "679875946597056683",
  "name": "VALORANT",
  "description": "The official VALORANT Discord server. Find the latest news and talk about the game!",
  "url": "https://discord.com/servers/valorant-679875946597056683",
  "inviteUrl": "https://discord.gg/valorant",
  "members": 3060947,
  "online": 266548,
  "boosts": 703,
  "locale": "en-US",
  "primaryCategory": "Gaming",
  "categories": ["LFG", "Emoji", "Entertainment", "Gaming", "General Chatting"],
  "keywords": ["fps", "lfg", "riot", "shooter", "valorant"],
  "isPartnered": true,
  "createdAt": "2020-02-20T02:24:17.153000+00:00",
  "socialLinks": ["https://twitter.com/valcordgg"]
}
```

Invite check:

```json
{
  "type": "invite",
  "input": "https://discord.gg/discord-developers",
  "isValid": true,
  "status": "valid",
  "isPermanent": true,
  "name": "Discord Developers",
  "members": 311790,
  "online": 69916,
  "verificationLevel": "high",
  "channelName": "rules"
}
```

An expired or unknown invite returns `"isValid": false, "status": "invalid or expired"`.

### Use cases

- **Community research** — the biggest Discord communities for a game, coin, hobby or topic, with member and online counts
- **Influencer & partnership outreach** — find active servers in your niche to partner with (public server info only)
- **Server list websites** — keep invite links fresh: check thousands of invites and drop the expired ones
- **Game studios & Web3 projects** — track your server's member count against competitors; schedule daily for a growth history
- **Market research** — which categories, languages and tags are growing on Discord

### Tips & limits

- Only servers listed in Discord's public **Server Discovery** appear in search and categories (large community servers). Private servers can still be looked up with an invite link.
- Discord shows 12 servers per page and decides how deep results go: a keyword search usually returns a few dozen to a few hundred servers, a category a few thousand. Use several keywords or categories for more.
- Keyword search results carry name, description, members, online, language and verified / partner flags; turn on **Fetch full server details** to add the invite link, categories, tags and boosts (category results include them already).
- The "total results" number Discord reports can be higher than the servers it actually shows for a keyword.
- Public data only: no login, no messages, no member lists, no user data.

### Pricing

- **Server** — $1 per 1,000 servers from searches and categories
- **Server details** — $2 per 1,000 server pages opened
- **Invite checked** — $1 per 1,000 invite links (valid or invalid)

Filtered servers and errors are free. Discounts for Apify Silver, Gold and higher plans.

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client`; export JSON, CSV or Excel.
- **Schedules** — run daily to track member counts and online activity over time.
- **Zapier, Make, n8n, Google Sheets, Slack, webhooks** — send new servers or dead invites to a sheet or a channel.
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

### FAQ

**Do I need a Discord account or bot token?** No. The Actor reads Discord's public server directory and public invite information.

**Can it get the members of a server?** No. It returns member and online **counts** only — never user lists or messages.

**How fresh are member counts?** Live — Discord's approximate counts at the moment of the run.

### More from ScrolahData

- [Telegram Channel Scraper](https://apify.com/scrolahdata/telegram-channel-scraper)
- [Bluesky Scraper](https://apify.com/scrolahdata/bluesky-scraper)
- [Steam Scraper](https://apify.com/scrolahdata/steam-scraper)
- [YouTube Channel Scraper](https://apify.com/scrolahdata/youtube-channel-scraper)
- [Website Contact Scraper](https://apify.com/scrolahdata/website-contact-scraper)

# Actor input Schema

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

Keywords to search Discord's official server directory (discord.com/servers), e.g. minecraft, anime, crypto, study, python.

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

Browse a whole directory category, sorted by members: all, gaming, music, entertainment, education, science-tech.

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

Discord shows 12 servers per page; the Actor pages through until this limit or the end of the results.

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

Optional. Skip servers with fewer members (filtered servers are not charged).

## `language` (type: `string`):

Optional locale prefix, e.g. en, es, pt-BR, de, ja — keep only servers with this preferred language.

## `fetchDetails` (type: `boolean`):

Open every server page and add the creation date, About text, social links and reasons to join (charged as server details).

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

discord.com/servers/... URLs or server (guild) IDs of servers listed in Server Discovery - returns full details.

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

discord.gg/... or discord.com/invite/... links or bare codes. Returns valid / invalid, expiry, server name, member and online counts.

## `maxConcurrency` (type: `integer`):

Parallel requests to Discord.

## `proxyConfiguration` (type: `object`):

Optional.

## Actor input object example

```json
{
  "searchQueries": [
    "minecraft"
  ],
  "categories": [],
  "maxServersPerSource": 100,
  "fetchDetails": false,
  "serverUrls": [],
  "inviteLinks": [
    "https://discord.gg/discord-developers"
  ],
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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"
    ],
    "categories": [],
    "serverUrls": [],
    "inviteLinks": [
        "https://discord.gg/discord-developers"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/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"],
    "categories": [],
    "serverUrls": [],
    "inviteLinks": ["https://discord.gg/discord-developers"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/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"
  ],
  "categories": [],
  "serverUrls": [],
  "inviteLinks": [
    "https://discord.gg/discord-developers"
  ]
}' |
apify call scrolahdata/discord-server-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrolahdata/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/OhfEx4lfvMcAQO1lA/builds/G9vORFoymD1eQ6OiG/openapi.json
