# Discord Servers Scraper (`neuro-scraper/discord-servers-scraper`) Actor

Discord Servers Scraper finds public Discord servers by keyword, category or invite link: name, description, member and online counts, boosts, verification, vanity invite, keywords, categories, features, creation date, social links. No login, no token.

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

## Pricing

from $1.19 / 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/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 Servers Scraper

**Discord Servers Scraper** exports public Discord servers by category, keyword, invite link or server link: name, description, member and online counts, boosts and boost tier, verification level, vanity invite, keywords, categories, features, creation date, reasons to join, social links, invite channel and server tag.

> **Also try:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export Facebook Reels with views, likes, comments, captions and video links from any page or profile.

The Discord Servers Scraper reads Discord's public server directory and server pages without a Discord account or token, and completes every server with its invite details.

Use the Discord Servers Scraper to find communities for marketing and partnerships, to track the growth of servers, to research a niche or to check invite links in bulk.

#### What can Discord Servers Scraper do?

- Find the biggest servers of a niche (keywords + member filter).
- Monitor member and online counts of servers over time.
- Check many invite links: valid or expired, which server, how many members.
- Build lists of servers per category and language.
- Research server keywords, categories and features.

#### Why use Discord Servers Scraper?

- Discord Servers Scraper needs no login, no cookies and no browser extension - you give it the input and it returns clean rows.
- Discord Servers Scraper follows the list page by page until it reaches your limit or the end of the list.
- Discord Servers Scraper gives every row the same columns in the same order, so CSV, Excel and JSON exports line up.
- Discord Servers Scraper runs on the Apify platform: schedule it, call it from the API, connect it to Make, Zapier, n8n or Google Sheets.
- Discord Servers Scraper charges only for the rows it saves, so a small test run costs a few cents.

### How to use Discord Servers Scraper

1. Open Discord Servers Scraper on Apify and click **Try for free** (or **Start**).
2. Fill in the input: keywords, categories or invite links and the number of servers.
3. Optional: set the filters and options described below - each one is explained with an example.
4. Click **Start**. Discord Servers Scraper logs every page it reads, so you can watch the progress in the log.
5. When the run finishes, open the **Output** tab and download the rows as JSON, CSV, Excel, XML or HTML - or read them through the API.

### Input options of Discord Servers Scraper

Every option of Discord Servers Scraper is listed here: what it does, how it works, the allowed values and default, an example and a tip.

#### Search keywords (`searchQueries`)

`searchQueries` - is a list of keywords searched in Discord's public server directory, e.g. `minecraft`, `study`, `anime`. Each keyword is paged 12 servers at a time until maxItems servers. Rows keep searchKeyword and sourceRank. Default: `[]`. In Discord Servers Scraper this option has the type array.

#### Categories (`categories`)

`categories` - is a list of directory categories: Gaming, Music, Entertainment, Science & Tech, Education and the other names Discord uses (read from the site every run). Alone, a category lists its most popular servers; together with keywords it filters the keyword results to that category. Default: `["Gaming"]`. In Discord Servers Scraper this option has the type array.

#### Invite links / codes / server links (`inviteUrls`)

`inviteUrls` - is a list of invite links (https://discord.gg/python), invite or vanity codes (`python`) or server links (https://discord.com/servers/<id>). Each one is looked up and gives one full row; a dead invite gives a row with lookup_status invalid_or_expired and available true. Default: `[]`. In Discord Servers Scraper this option has the type array.

#### Mode (`mode`)

`mode` - chooses which inputs run: `auto` (all, default), `search` (keywords / categories only) or `resolve` (invite links only). Allowed values: `auto`, `search`, `resolve`. Default: `"auto"`. In Discord Servers Scraper this option has the type string.

#### Max servers per keyword / category (`maxItems`)

`maxItems` - is the number of servers per keyword and per category (default 20). 2 keywords x 20 = 40 servers. Allowed values: whole numbers from 1 to 100000. Default: `20`. In Discord Servers Scraper this option has the type integer.

#### Max pages per keyword / category (`maxPages`)

`maxPages` - stops a keyword / category after N directory pages of 12 servers (default 0 = no page limit). Allowed values: whole numbers from 0 to 10000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Start offset (`resumeCursor`)

`resumeCursor` - starts the directory at this offset, e.g. 240 to skip the first 20 pages. Each run saves where it stopped in the RESUME_CURSOR record. Allowed values: whole numbers from 0 to 1000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Server page details (`includeDetails`)

`includeDetails` - opens each server's directory page for the vanity link, keywords, all categories, creation date, reasons to join, social links and the about text (default on). Allowed values: `true` or `false`. Default: `true`. In Discord Servers Scraper this option has the type boolean.

#### Invite details (`enrichWithInviteApi`)

`enrichWithInviteApi` - looks up each server's invite for verification level, boost tier, invite channel, server tag and the live online count (default on). Lookups follow Discord's own rate limit. Allowed values: `true` or `false`. Default: `true`. In Discord Servers Scraper this option has the type boolean.

#### Vote counts (`includeVotes`)

`includeVotes` - adds the public vote count of servers listed on public vote lists (default on; empty for servers that are not listed). Allowed values: `true` or `false`. Default: `true`. In Discord Servers Scraper this option has the type boolean.

#### Channels (server widget) (`includeChannels`)

`includeChannels` - adds the channel list and instant invite of servers that switched their public widget on (default off). Allowed values: `true` or `false`. Default: `false`. In Discord Servers Scraper this option has the type boolean.

#### Min members (`minMembers`)

`minMembers` - keeps servers with at least this many members, e.g. 10000 (default 0 = no filter). The run pages on until it has maxItems matching servers. Allowed values: whole numbers from 0 to 100000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Max members (`maxMembers`)

`maxMembers` - keeps servers with at most this many members, e.g. 5000 to find small communities (default 0 = no filter). Allowed values: whole numbers from 0 to 100000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Min online (`minOnline`)

`minOnline` - keeps servers with at least this many members online right now, e.g. 1000 for active communities (default 0 = no filter). Allowed values: whole numbers from 0 to 100000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Max online (`maxOnline`)

`maxOnline` - keeps servers with at most this many members online, e.g. 200 for small active groups (default 0 = no filter). Allowed values: whole numbers from 0 to 100000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Min boosts (`minBoosts`)

`minBoosts` - keeps servers with at least this many boosts (default 0 = no filter). Example: 14 finds tier-3 servers. Allowed values: whole numbers from 0 to 1000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Max boosts (`maxBoosts`)

`maxBoosts` - keeps servers with at most this many boosts (default 0 = no filter). Allowed values: whole numbers from 0 to 1000000. Default: `0`. In Discord Servers Scraper this option has the type integer.

#### Created after (`createdAfter`)

`createdAfter` - keeps servers created on or after this date (YYYY-MM-DD), e.g. 2025-01-01 for new servers. Needs includeDetails (the creation date comes from the server page). Default: empty (not used). In Discord Servers Scraper this option has the type string.

#### Created before (`createdBefore`)

`createdBefore` - keeps servers created on or before this date (YYYY-MM-DD), e.g. 2018-12-31 for long-standing communities. Default: empty (not used). In Discord Servers Scraper this option has the type string.

#### Vanity invite (`vanityFilter`)

`vanityFilter` - filters by vanity invite: `any` (default), `has` (only servers with their own discord.gg/<name> link) or `no`. Allowed values: `any`, `has`, `no`. Default: `"any"`. In Discord Servers Scraper this option has the type string.

#### Only servers with a server tag (`onlyWithServerTag`)

`onlyWithServerTag` - keeps only servers that have a server tag (the short clan tag members can wear) - default off. Allowed values: `true` or `false`. Default: `false`. In Discord Servers Scraper this option has the type boolean.

#### Only verified servers (`onlyVerified`)

`onlyVerified` - keeps only servers verified by Discord (default off). Allowed values: `true` or `false`. Default: `false`. In Discord Servers Scraper this option has the type boolean.

#### Only partnered servers (`onlyPartnered`)

`onlyPartnered` - keeps only Discord partner servers (default off). Allowed values: `true` or `false`. Default: `false`. In Discord Servers Scraper this option has the type boolean.

#### Languages (`languages`)

`languages` - keeps servers whose language starts with one of these codes, e.g. `en`, `de`, `pt-BR` (default: all languages). Default: `[]`. In Discord Servers Scraper this option has the type array.

#### Max concurrency (`maxConcurrency`)

`maxConcurrency` - is how many servers are completed in parallel (default 6). Invite lookups always run one at a time, as Discord's rate limit asks. Allowed values: whole numbers from 1 to 20. Default: `6`. In Discord Servers Scraper this option has the type integer.

#### Proxy configuration (`proxyConfiguration`)

`proxyConfiguration` - is off by default - Discord answers without a proxy. Switch the Apify proxy on only if your requests are refused. Default: `{"useApifyProxy": false}`. In Discord Servers Scraper this option has the type object.

### Ready-to-copy input examples for Discord Servers Scraper

**Search 20 servers**

```json
{
  "searchQueries": [
    "minecraft"
  ],
  "maxItems": 20
}
```

**Top Gaming servers with channels**

```json
{
  "categories": [
    "Gaming"
  ],
  "maxItems": 50,
  "includeChannels": true
}
```

**Bulk invite check**

```json
{
  "inviteUrls": [
    "https://discord.gg/python",
    "discord.gg/minecraft",
    "thiscodedoesnotexist123"
  ],
  "mode": "resolve"
}
```

**Big English study servers**

```json
{
  "searchQueries": [
    "study"
  ],
  "minMembers": 10000,
  "languages": [
    "en"
  ],
  "maxItems": 30
}
```

### Output of Discord Servers Scraper

Discord Servers Scraper saves one row per server. Every row has the columns below, in the same order. A column is empty (null) when the server does not show that value - the table says when that happens.

| Field | What it contains |
|---|---|
| `id` | Discord server id. |
| `serverId` | Discord server id. |
| `server_id` | Discord server id. |
| `guild_id` | Discord server id. |
| `objectID` | Discord server id. |
| `name` | Server name. |
| `serverName` | Server name. |
| `guild_name` | Server name. |
| `description` | Short server description. |
| `server_description` | Short server description. |
| `guild_description` | Short server description. |
| `about` | Long "about" text of the server page. |
| `icon` | Server icon URL. |
| `icon_url` | Server icon URL. |
| `serverIconUrl` | Server icon URL. |
| `guild_icon_url` | Server icon URL. |
| `guild_icon_hash` | Icon hash. |
| `splash` | Splash / cover image URL. |
| `splash_url` | Splash / cover image URL. |
| `serverSplashUrl` | Splash / cover image URL. |
| `discovery_splash` | Directory splash hash. |
| `banner` | Banner image URL. |
| `banner_url` | Banner image URL. |
| `serverBannerUrl` | Banner image URL. |
| `memberCount` | Members (approximate, as Discord shows it). |
| `approximate_member_count` | Members (approximate, as Discord shows it). |
| `totalMemberCount` | Members (approximate, as Discord shows it). |
| `members` | Members (approximate, as Discord shows it). |
| `onlineCount` | Members online now. |
| `approximate_presence_count` | Members online now. |
| `onlineMemberCount` | Members online now. |
| `online` | Members online now. |
| `presence_count` | Members online now. |
| `boostCount` | Server boosts. |
| `premium_subscription_count` | Server boosts. |
| `boosts` | Server boosts. |
| `boost_level` | Boost tier 0-3. |
| `boostTier` | Boost tier 0-3. |
| `premiumTier` | Boost tier 0-3. |
| `verificationLevel` | Verification level 0-4. |
| `preferred_locale` | Server language (e.g. en-US). |
| `locale` | Server language (e.g. en-US). |
| `language` | Server language (e.g. en-US). |
| `isVerified` | Verified by Discord. |
| `verified` | Verified by Discord. |
| `isPartnered` | Discord partner. |
| `partnered` | Discord partner. |
| `features` | Discord feature flags of the server. |
| `serverFeatures` | Discord feature flags of the server. |
| `primary_category_id` | Main category id. |
| `primary_category` | Main category name. |
| `category` | Main category name. |
| `categories` | All categories of the server. |
| `category_tags` | All categories of the server. |
| `keywords` | Keywords the server lists. |
| `tags` | Keywords the server lists. |
| `vanity_url_code` | Vanity invite code. |
| `vanityUrlCode` | Vanity invite code. |
| `vanityUrl` | Vanity invite link. |
| `inviteCode` | Invite code used. |
| `inviteUrl` | Invite link. |
| `inviteType` | Invite type (0 = server). |
| `type` | Invite type (0 = server). |
| `expiresAt` | When the invite expires. |
| `invite_expires_at` | When the invite expires. |
| `channelId` | Channel the invite opens. |
| `channel_id` | Channel the invite opens. |
| `channelName` | Name of that channel. |
| `channelType` | Type of that channel. |
| `channel_type` | Type of that channel. |
| `inviterId` | Member who created the invite. |
| `inviterUsername` | Member who created the invite. |
| `inviter_username` | Member who created the invite. |
| `inviterDisplayName` | Member who created the invite. |
| `inviterAvatarUrl` | Member who created the invite. |
| `clanTag` | Server tag (clan tag). |
| `clanBadge` | Tag badge id. |
| `badge` | Tag badge id. |
| `traits` | Server traits shown on its profile. |
| `createdAt` | Server creation date. |
| `created_at` | Server creation date. |
| `is_published` | Listed in the directory. |
| `auto_removed` | Removed from the directory automatically. |
| `reasons_to_join` | Reasons to join (text + emoji). |
| `social_links` | Social links of the server. |
| `serverUrl` | Directory page of the server. |
| `directoryUrl` | Directory page of the server. |
| `source_url` | Directory page of the server. |
| `sourceUrl` | Directory page of the server. |
| `votes` | Public vote count (includeVotes). |
| `channels` | Channels from the server widget (includeChannels). |
| `widgetEnabled` | Server widget switched on. |
| `widgetInviteUrl` | Instant invite of the widget. |
| `searchKeyword` | Keyword or category that found the server. |
| `searchQuery` | Keyword or category that found the server. |
| `sourceRank` | Position in the directory results. |
| `searchRank` | Position in the directory results. |
| `searchTotal` | Servers the directory has for the keyword / category. |
| `source` | `directory`, `invite` or `server_page`. |
| `sources` | Sources as a list. |
| `sourceInputs` | Inputs that produced the row. |
| `inputUrl` | Invite link / code you gave. |
| `input_value` | Invite link / code you gave. |
| `is_valid_input` | Input recognised as an invite or server link. |
| `lookup_status` | ok / not_found / invalid_or_expired / invalid_input. |
| `inviteStatus` | valid or invalid_or_expired. |
| `available` | true when the invite code is free (no server uses it). |
| `taken` | true when a server uses the invite code. |
| `username` | Invite code used. |
| `redacted` | Always false (nothing is hidden). |
| `coverage` | Which parts were read: directory, server_page, invite. |
| `error` | Error text / code when a lookup failed. |
| `error_reason` | Error text / code when a lookup failed. |
| `scrapedAt` | Time of scraping (UTC). |
| `fetchedAt` | Time of scraping (UTC). |
| `checkedAt` | Time of scraping (UTC). |
| `looked_up_at` | Time of scraping (UTC). |
| `observedAt` | Time of scraping (UTC). |
| `addedAt` | Server creation date. |

### Which columns of Discord Servers Scraper can be empty

Discord Servers Scraper fills every column the website publishes. These columns were measured as empty on some rows in our test runs, because the website itself does not publish that value for those server rows:

- `votes` - measured 2026-11-22: 0 of 21 big gaming servers had a public vote count - it exists only for servers listed on public vote lists.
- `channels` - only servers that switched their public widget on (5 of 21 in the test); the others answer "Widget Disabled".
- `widgetEnabled` - see channels.
- `widgetInviteUrl` - only with an enabled widget that sets an instant invite.
- `traits` - servers without profile traits (about half).
- `social_links` - servers that list no social links.
- `reasons_to_join` - servers that set no reasons to join.
- `about` - servers without an about text.
- `inviterId` - vanity invites have no inviter - Discord shows an inviter only for personal invite links.
- `inviterUsername` - see inviterId.
- `inviter_username` - see inviterId.
- `inviterDisplayName` - see inviterId.
- `inviterAvatarUrl` - see inviterId.
- `expiresAt` - vanity and permanent invites never expire (null = never).
- `invite_expires_at` - see expiresAt.
- `inputUrl` - only on rows of invite-link inputs.
- `input_value` - only on rows of invite-link inputs.
- `searchKeyword` - empty on rows of invite-link inputs.
- `searchQuery` - empty on rows of invite-link inputs.
- `sourceRank` - empty on rows of invite-link inputs.
- `searchRank` - empty on rows of invite-link inputs.
- `searchTotal` - empty on rows of invite-link inputs.
- `error` - empty when the lookup worked.
- `error_reason` - empty when the lookup worked.
- `clanTag` - servers without a server tag.
- `clanBadge` - see clanTag.
- `badge` - see clanTag.

### Limits of Discord Servers Scraper

- Only servers listed in Discord's public directory are found by keyword or category; any server can be looked up by invite link.
- Emojis, stickers, messages and member lists need a login (HTTP 401) and are not returned.

### How much does Discord Servers Scraper cost?

Discord Servers Scraper uses pay-per-event pricing: you pay a small amount per saved row (the `result` event) plus the Apify platform usage. The price is $1.49 per 1,000 results on the free plan and goes down to $1.19 per 1,000 results on higher plans.

Worked example: 20 server rows cost about 20 / 1,000 x $1.49 = $0.03 in result events; 1,000 rows cost about $1.49; 10,000 rows cost about $14.90 (less on a higher plan). With the Apify free plan ($5 of monthly credit) you can test Discord Servers Scraper many times before paying anything.

### Use Discord Servers Scraper through the API

You can start Discord Servers Scraper from your own code with the Apify API or the Apify client. Python example:

```python
from apify_client import ApifyClient

client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('neuro-scraper/discord-servers-scraper').call(run_input={"searchQueries": ["minecraft"], "maxItems": 20})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

JavaScript example:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/discord-servers-scraper').call({"searchQueries": ["minecraft"], "maxItems": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

The rows of Discord Servers Scraper are also available as a direct download link (JSON, CSV, Excel) from the run's dataset, and Discord Servers Scraper can send a webhook when a run finishes.

### Integrations of Discord Servers Scraper

Connect Discord Servers Scraper to Google Sheets, Slack, Airtable, Make, Zapier, n8n, LangChain or your own webhook. Schedule Discord Servers Scraper daily or weekly in the Apify Console to keep a fresh copy of the data, and compare runs to spot new and changed server rows.

### FAQ about Discord Servers Scraper

#### Does the Discord Servers Scraper need a Discord token?

No. It reads only public pages and public invite lookups - no account, token or bot.

#### Can the Discord Servers Scraper read messages or members?

No. Messages and member lists need a logged-in account; this Actor returns server-level data only.

#### Why are invite lookups slower?

Discord rate-limits invite lookups; the Actor waits as Discord asks instead of switching addresses.

#### Is it legal to use Discord Servers Scraper?

Discord Servers Scraper collects only data that is shown publicly without logging in. It never collects email addresses or phone numbers. You are responsible for how you use the data - check the website's terms and the data-protection laws (GDPR, CCPA) that apply to you, and ask a lawyer if you are unsure.

#### What if Discord Servers Scraper returns fewer rows than I asked for?

Discord Servers Scraper stops when the list ends or when the website shows no more server rows for your input. The final status message of the run says which targets stopped early and why. Try a broader input or more inputs to get more rows.

#### Can I request a feature for Discord Servers Scraper?

Yes - open an issue on the Discord Servers Scraper page in the Apify Store and describe the field or filter you need.

### Related scrapers

| Actor | What it extracts |
|---|---|
| [discord-server-search-scraper](https://apify.com/neuro-scraper/discord-server-search-scraper) | Discord servers by category / keyword |
| [facebook-reels-scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) | Facebook Reels with views, likes and comments |

Discord Servers Scraper is maintained and updated when the website changes. If Discord Servers Scraper helps you, a review in the Apify Store helps others find it.

# Actor input Schema

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

Keywords to search in the public Discord server directory, e.g. minecraft, study, anime.

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

Directory categories: Gaming, Music, Entertainment, Science & Tech, Education (and the other category names). With keywords they filter the keyword results.

## `inviteUrls` (type: `array`):

discord.gg/<code> links, invite codes, vanity codes or discord.com/servers/<id> links to look up.

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

auto runs every input; search ignores invite links; resolve only looks up the invite links.

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

Servers per keyword and per category (the directory is paged 12 at a time).

## `maxPages` (type: `integer`):

Stop after N directory pages of 12 servers (0 = no page limit).

## `resumeCursor` (type: `integer`):

Start the directory at this offset (the RESUME_CURSOR record of an earlier run says where it stopped).

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

Open each server page: vanity link, keywords, categories, creation date, reasons to join, social links, about.

## `enrichWithInviteApi` (type: `boolean`):

Look up each server's invite: verification level, boost tier, invite channel, clan tag / badge, live online count.

## `includeVotes` (type: `boolean`):

Adds the server's public vote count where one is published (votes).

## `includeChannels` (type: `boolean`):

Adds the channel list and instant invite of servers that switched their public widget on.

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

Keep servers with at least this many members (0 = no filter).

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

Keep servers with at most this many members (0 = no filter).

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

Keep servers with at least this many members online (0 = no filter).

## `maxOnline` (type: `integer`):

Keep servers with at most this many members online (0 = no filter).

## `minBoosts` (type: `integer`):

Keep servers with at least this many boosts (0 = no filter).

## `maxBoosts` (type: `integer`):

Keep servers with at most this many boosts (0 = no filter).

## `createdAfter` (type: `string`):

Keep servers created on or after this date (YYYY-MM-DD).

## `createdBefore` (type: `string`):

Keep servers created on or before this date (YYYY-MM-DD).

## `vanityFilter` (type: `string`):

Filter by vanity invite link.

## `onlyWithServerTag` (type: `boolean`):

Keep only servers that have a server tag (clan tag / badge).

## `onlyVerified` (type: `boolean`):

Keep only servers verified by Discord.

## `onlyPartnered` (type: `boolean`):

Keep only Discord partner servers.

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

Keep servers whose language starts with one of these codes, e.g. en, de, pt-BR.

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

Servers completed in parallel.

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

Not needed; switch on the Apify proxy only if your requests are refused.

## `searchQuery` (type: `array`):

Alias of searchQueries for saved tasks of other tools.

## `searchKeywords` (type: `array`):

Alias of searchQueries for saved tasks of other tools.

## `keywords` (type: `array`):

Alias of searchQueries for saved tasks of other tools.

## `tag` (type: `array`):

Alias of searchQueries for saved tasks of other tools.

## `category` (type: `array`):

Alias of categories for saved tasks of other tools.

## `invites` (type: `array`):

Alias of inviteUrls for saved tasks of other tools.

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

Alias of inviteUrls for saved tasks of other tools.

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

Alias of inviteUrls for saved tasks of other tools.

## `startUrls` (type: `array`):

Alias of inviteUrls for saved tasks of other tools.

## `maxResults` (type: `integer`):

Alias of maxItems for saved tasks of other tools.

## Actor input object example

```json
{
  "searchQueries": [],
  "categories": [
    "Gaming"
  ],
  "inviteUrls": [],
  "mode": "auto",
  "maxItems": 20,
  "maxPages": 0,
  "resumeCursor": 0,
  "includeDetails": true,
  "enrichWithInviteApi": true,
  "includeVotes": true,
  "includeChannels": false,
  "minMembers": 0,
  "maxMembers": 0,
  "minOnline": 0,
  "maxOnline": 0,
  "minBoosts": 0,
  "maxBoosts": 0,
  "vanityFilter": "any",
  "onlyWithServerTag": false,
  "onlyVerified": false,
  "onlyPartnered": false,
  "languages": [],
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

# 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": [],
    "categories": [
        "Gaming"
    ],
    "inviteUrls": [],
    "languages": [],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/discord-servers-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": [],
    "categories": ["Gaming"],
    "inviteUrls": [],
    "languages": [],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/discord-servers-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": [],
  "categories": [
    "Gaming"
  ],
  "inviteUrls": [],
  "languages": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call neuro-scraper/discord-servers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/discord-servers-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/GjiCV8UebSbXbwdWL/builds/s4fkMqmkaLR6IZNQ4/openapi.json
