# Discord Community Server Finder & Invite Stats (`xyrelith-data/discord-community-server-finder`) Actor

Find public Discord communities in the Discords.com and Discord server directories, resolve discord.gg invites into live member and online counts, read public widgets and track growth over time. No Discord account, login or user token required.

- **URL**: https://apify.com/xyrelith-data/discord-community-server-finder.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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 Community Server Finder & Invite Stats

Find public Discord communities, read their live public stats and track how they grow — without a Discord account, bot token or browser session.

This actor combines three cookieless public surfaces in one run:

- **Discords.com public directory** — deep tag/keyword browsing (36 servers per tag page), 31 tags and eleven server-side filters.
- **Discord's public server directory** — `discord.com/servers` pages for users who want the official listing and `discord.gg` invite.
- **Discord's public Invite API and guild widget** — live member/online counts, boost and verification data, landing channel, server tag, game activity and public channel names.

One dataset row per server or invite, ready for JSON, CSV, Excel, Google Sheets or the Apify API.

### What you can do

| Mode | Use it for | Main input |
|---|---|---|
| **Search** | Discover communities by keyword or tag, then filter and sort | `searchQuery`, `tags` |
| **By URLs / IDs** | Turn listing URLs, slugs, numeric guild IDs or invite links into full records | `serverUrls` |
| **Invites** | Resolve a list of `discord.gg` codes into live server stats | `inviteCodes` |
| **Monitor** | Compare member and online counts with the previous scheduled run | `inviteCodes` |

The default mode is **Search**.

### Search the directory

Type a keyword such as `anime`, `gaming`, `crypto`, `study` or `roleplay`, or pick one or more tags. The actor reads the matching Discords.com tag page (or the keyword search API when no tag matches) and can continue page by page until `maxItems` is reached.

Sort orders:

- **Most relevant** — the directory’s own relevance order.
- **Top** — servers with the most members.
- **Trending** — the directory’s “most active” order.
- **Most voted** — highest community vote count.
- **Most boosted** — highest boost count.
- **Newest** — servers added to the directory this week.

Filters are applied by the directory wherever it supports them, then re-checked by the actor:

- minimum and maximum members
- minimum online members
- verified, partnered, community and discoverable badges
- hide, include or only 18+ servers
- 18 directory languages
- activity level: medium, active, very active
- voice channels, forums, stages or announcements
- minimum boost level
- server age (new, growing, established, veteran)
- newly listed (this week/month)
- clan tag and upcoming event

Use `source` to choose **Discords.com** (default, deepest), **Discord official** (authoritative but shallow) or **Both** (deduplicated by server ID).

### What the server rows contain

Core identity and discovery:

`source`, `serverId`, `name`, `iconUrl`, `bannerUrl`, `shortDescription`, `longDescription`, `tags`, `tagTotalServers`, `listingUrl`, `customURL`, `inviteCode`, `inviteUrl`

Size and activity:

`memberCount`, `onlineCount`, `onlineShare`, `activityIndex`, `activityLevel`, `activityPercentile`, `directoryVotes`, `directoryStars`, `boostCount`, `boostTier`

Community metadata:

`guildTag`, `guildTagBadgeUrl`, `features`, `isVerified`, `isPartnered`, `isCommunity`, `isDiscoverable`, `hasWelcomeScreen`, `hasOnboarding`, `isNSFW`, `language`, `languageName`, `keywords`, `socials`, `ownerId`, `ownerName`, `emojisCount`, `stickersCount`, `similarServerIds`, `similarServerNames`

Server age:

`serverCreatedAt` and `serverAgeDays` are decoded from the Discord snowflake ID (the directory does not expose its own listing date).

Widget extras (when `includeWidget` is on):

`widgetEnabled`, `widgetOnlineCount`, `widgetChannels` (id, name, type, position), optional `widgetMembers` (username, status, game, voice channel), `widgetInstantInvite`

### Resolve invites in bulk

Paste links, bare codes or vanity names:

```json
{
  "mode": "invites",
  "inviteCodes": ["discord.gg/python", "minecraft", "discord-developers"],
  "includeWidget": true,
  "maxItems": 100
}
```

Each row contains:

`status`, `inviteCode`, `inviteUrl`, `expiresAt`, `flags`, `serverId`, `name`, `description`, `iconUrl`, `bannerUrl`, `splashUrl`, `memberCount`, `onlineCount`, `onlineShare`, `verificationLevel`, `nsfwLevel`, `isNSFW`, `boostCount`, `boostTier`, `vanityUrlCode`, `features`, `isVerified`, `isPartnered`, `isCommunity`, `isDiscoverable`, `hasWelcomeScreen`, `hasOnboarding`, `landingChannelId`, `landingChannelName`, `landingChannelType`, `guildTag`, `guildBadge`, `gameActivity`, `scheduledEventsCount`, `neverExpires`

Dead or invalid invites stay in the dataset as `status: "NOT_FOUND"` so you can clean a list; they do not stop the run.

### Track growth with monitor mode

Set `mode` to `monitor` and schedule the actor daily or weekly. The first run marks each server with `isFirstSeen: true`. Later runs add:

- `previousMemberCount`, `memberDelta`, `memberDeltaPercent`
- `previousOnlineCount`, `onlineDelta`
- `previouslyCheckedAt`, `monitorCheckedAt`

Saved state lives in a named key-value store. Use `monitorStateKey` to keep separate schedules or projects apart. The state is scoped to the current Apify account.

### Cheap daily runs

The daily test prefill searches `gaming`, returns 3 records, fetches detail pages and leaves widget calls off. Raise `maxItems` for larger jobs. Detail enrichment is one request per server; widget calls are one request per server and only return data for servers that enabled the widget.

### Public data only

No cookies, login, user token or bot token. The actor reads the same public pages and endpoints any anonymous visitor can read. It does not return member lists, messages, private channels or anything behind a login.

### Limitations you should know

- **Discord’s own directory is shallow.** A query returns up to 12 servers, and browse mode exposes 24. Use Discords.com or `Both` for larger jobs.
- **Discords.com does not expose review counts or its own listing date.** `directoryStars` (0–3) and `directoryVotes` are the directory’s rating signals. `serverCreatedAt` is decoded from the Discord server ID.
- **Discords.com does not expose invite codes in listings.** Invites come from Discord’s official server page, from a widget’s instant invite, or from the codes you provide.
- **Some directories are intentionally not used.** top.gg serves a Cloudflare challenge to Apify datacenter addresses and Disboard does the same; both fail without cookies, so this actor does not depend on them.
- **Keyword ranking by “Top” uses the matching directory tag when one exists.** Free-text keywords without a tag are ranked from the relevance result set. Use tags for exact top/trending ranking over the whole directory.
- **Member and online counts are approximate.** Discord publishes them as approximate values; online counts change through the day.
- **Widgets are opt-in.** Many servers disable the public widget. A disabled widget is reported as `widgetEnabled: false`, not as an error.
- **Invite lookups are paced.** Discord rate-limits per IP; the actor waits and retries on 429. Extremely large invite lists take longer.

### FAQ

**Do I need a Discord account or bot token?**
No. Everything comes from public pages, the public invite endpoint and public widgets.

**Can I get a member list or messages?**
No. Discord only gives those to a bot with its own token and server access. This actor returns counts and public metadata.

**Why is a field missing on one row?**
The actor omits what the source does not expose for that server instead of inventing a value. A server without a banner has no banner field, and a server without a widget has `widgetEnabled: false`.

**Can I use listing URLs from either directory?**
Yes. Paste `discords.com/servers/...`, `discords.com/servers/tag/...` results, `discord.com/servers/...`, `discord.gg/...` or `discord.com/invite/...`. The actor detects the type.

**How do I get more than one page?**
Raise `maxItems`; the actor pages automatically. Use `page` to start deeper for a scheduled crawl.

**Is this affiliated with Discord?**
No. Discord is a trademark of Discord Inc. This is an independent tool for public data.

### Output example

```json
{
  "recordType": "server",
  "source": "discords",
  "serverId": "942780259495977031",
  "name": "Deadspace",
  "memberCount": 38722,
  "onlineCount": 3323,
  "activityLevel": "Very Active",
  "tags": ["Gaming", "Social", "Memes", "Community", "Global Emotes"],
  "directoryVotes": 0,
  "directoryStars": 2,
  "boostCount": 33,
  "boostTier": 3,
  "guildTag": "tism",
  "features": ["COMMUNITY", "NEWS", "TIERLESS_BOOSTING"],
  "isVerified": false,
  "language": "en",
  "listingUrl": "https://discords.com/servers/942780259495977031",
  "serverCreatedAt": "2018-02-08T14:17:22.518000+00:00",
  "scrapedAt": "2026-11-17T01:00:24.000000+00:00"
}
```

### Inputs

| Input | Default | What it does |
|---|---|---|
| `mode` | `search` | `search`, `byUrls`, `invites` or `monitor`. |
| `searchQuery` | — | Keyword for directory search. The daily prefill uses `gaming`. |
| `tags` | — | One or more Discords.com tags to browse. |
| `serverUrls` | — | Listing URLs, slugs, numeric guild IDs or invite links for `byUrls`. |
| `inviteCodes` | — | Invite URLs, codes or vanity names for `invites` and `monitor`. |
| `maxItems` | `50` | Stop after this many records (prefill `3`). |
| `source` | `discords` | `discords`, `discord` or `all`. |
| `sort` | `relevance` | `relevance`, `members`, `bumped`, `votes`, `boosts` or `newest`. |
| `page` | `1` | Directory page depth to start from. |
| `includeServerDetails` | `true` | Fetch detail pages for long descriptions, language, socials and badges. |
| `includeWidget` | `false` | Read public widget channels, live presence and instant invite. |
| `includeWidgetMembers` | `false` | Add the widget’s online member sample (requires `includeWidget`). |
| `monitorStateKey` | `default` | Separate saved-state namespace for monitor mode. |
| `minMembers` | — | Skip smaller servers. |
| `maxMembers` | — | Skip larger servers. |
| `minOnline` | — | Skip servers with fewer members online. |
| `badges` | — | Any of `verified`, `partnered`, `community`, `discoverable`. |
| `nsfwFilter` | `include` | `include`, `hidden` or `only`. |
| `languages` | — | Directory language codes such as `en`, `de`, `ja`. |
| `activityLevels` | — | `medium`, `active`, `veryActive`. |
| `channelTypes` | — | `voice`, `forums`, `stages`, `announcements`. |
| `minBoostLevel` | `0` | `0` (any), `1`, `2` or `3`. |
| `serverAge` | `any` | `any`, `new`, `growing`, `established`, `veteran`. |
| `fresh` | `any` | `any`, `week`, `month`. |
| `hasClanTag` | `false` | Only servers with a clan tag. |
| `hasUpcomingEvent` | `false` | Only servers with a scheduled event. |

# Actor input Schema

## `mode` (type: `string`):

Search the public directory, resolve server URLs/IDs, resolve invite links in bulk, or monitor growth between runs.

## `searchQuery` (type: `string`):

Keyword or topic for search mode, e.g. anime, gaming, crypto, study, roleplay. Leave empty when you only use tags.

## `tags` (type: `array`):

One or more Discords.com tags to browse (Anime, Gaming, Crypto, Learning, Roleplay, Music, Tech, Social...). Multiple tags are merged and deduplicated.

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

Directory listing URLs, discord.com/servers links, invite links, server slugs or numeric guild IDs for byUrls mode.

## `inviteCodes` (type: `array`):

Discord invite URLs, bare codes or vanity names for invites and monitor modes, e.g. discord.gg/python or python.

## `maxItems` (type: `integer`):

Stop after this many records. The daily test prefill uses 3.

## `source` (type: `string`):

Discords.com has deep pagination and filters. Discord's public directory is authoritative but shallow (12 results per query). all merges both and deduplicates by server ID.

## `sort` (type: `string`):

relevance is the directory's default. members = top servers, bumped = trending/most active, votes/boosts = most voted/boosted, newest = added in the last week.

## `page` (type: `integer`):

Page depth for directory search. Discords.com returns 36 servers per tag page and 24 per keyword page.

## `includeServerDetails` (type: `boolean`):

Adds the long description, language, social links, keywords, badges and invite link where the source exposes them. One extra request per server.

## `includeWidget` (type: `boolean`):

Read each server's public widget: live online count, voice/text channel names and the widget's instant invite. Only servers with the widget enabled return data; others are marked widgetEnabled=false.

## `includeWidgetMembers` (type: `boolean`):

Add a sample of up to 100 online members (username, status, game, voice channel) when the widget is enabled.

## `monitorStateKey` (type: `string`):

Separate saved-state namespace for monitor mode. Use different keys for different schedules or projects.

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

Skip servers below this member count.

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

Skip servers above this member count.

## `minOnline` (type: `integer`):

Skip servers with fewer members online right now.

## `badges` (type: `array`):

Only servers with all selected badges.

## `nsfwFilter` (type: `string`):

Include 18+ servers, hide them, or return only 18+ servers.

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

Only servers whose directory language matches one of these codes.

## `activityLevels` (type: `array`):

Only servers matching one of these activity levels.

## `channelTypes` (type: `array`):

Only servers that have one of these channel types.

## `minBoostLevel` (type: `string`):

0 = any, 1/2/3 = servers with at least that Nitro boost level.

## `serverAge` (type: `string`):

Filter by how old the server is.

## `fresh` (type: `string`):

Only servers added to the directory recently.

## `hasClanTag` (type: `boolean`):

Only servers with a Discord clan/guild tag.

## `hasUpcomingEvent` (type: `boolean`):

Only servers with a scheduled event.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "gaming",
  "maxItems": 3,
  "source": "discords",
  "sort": "relevance",
  "page": 1,
  "includeServerDetails": true,
  "includeWidget": false,
  "includeWidgetMembers": false,
  "monitorStateKey": "default",
  "nsfwFilter": "include",
  "minBoostLevel": "0",
  "serverAge": "any",
  "fresh": "any",
  "hasClanTag": false,
  "hasUpcomingEvent": false
}
```

# Actor output Schema

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

Dataset containing server and invite records.

## `servers` (type: `string`):

Dataset view of directory server records.

## `invites` (type: `string`):

Dataset view of resolved invite records.

# 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 = {
    "mode": "search",
    "searchQuery": "gaming",
    "maxItems": 3,
    "source": "discords",
    "sort": "relevance",
    "includeServerDetails": true,
    "includeWidget": false,
    "includeWidgetMembers": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/discord-community-server-finder").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 = {
    "mode": "search",
    "searchQuery": "gaming",
    "maxItems": 3,
    "source": "discords",
    "sort": "relevance",
    "includeServerDetails": True,
    "includeWidget": False,
    "includeWidgetMembers": False,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/discord-community-server-finder").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 '{
  "mode": "search",
  "searchQuery": "gaming",
  "maxItems": 3,
  "source": "discords",
  "sort": "relevance",
  "includeServerDetails": true,
  "includeWidget": false,
  "includeWidgetMembers": false
}' |
apify call xyrelith-data/discord-community-server-finder --silent --output-dataset

```

## MCP server setup

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

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/ievbkIoOZauzhg4Y4/builds/LAno6UcFRqx39JxiC/openapi.json
