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

Search public Disboard Discord server listings by keyword, category, and language, with explicit diagnostics when public data is unavailable.

- **URL**: https://apify.com/w3crawler/discord-servers-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 servers

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 collects public Discord server records in two bounded modes: Discord's public Invite Resource API for supplied invite codes, or publicly visible Disboard.org listings for keyword/category discovery. It returns public server identity, counts, descriptions, links, transport provenance, and timestamps.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/discord-servers-scraper) and select **Try for free** or open the **Input** tab.
2. Enter `searchQuery`, `category`, or `language` for Disboard discovery, or supply `inviteCodes` to use Discord's Invite Resource API.
3. Set `maxItems` and keep it small for the first run.
4. Start the Actor, open the dataset, and export the records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check the source mode, counts, and transport.

### Input

All fields are optional, but provide at least one of `searchQuery`, `category`, or `inviteCodes`. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `searchQuery` | string | Optional | Not supplied | Public listing keywords to search for Discord servers. 1–120 characters. |
| `category` | string | Optional | Not supplied | Public listing category or tag, such as gaming, anime, music, technology, or crypto. 1–80 characters. |
| `language` | string | Optional | Not supplied | Optional language or locale filter, such as en, es, or fr. |
| `inviteCodes` | string array | Optional | Not supplied | Optional Discord-owned public invite codes or HTTPS invite URLs. When supplied, the Actor uses Discord's public Invite Resource API and does not use search-index discovery. up to 25 items. |
| `maxItems` | integer | Optional | `40` | Maximum number of public Discord server records to collect. Pagination is bounded to four public Load More actions per run. 1–100. |
| `proxyConfiguration` | object | Optional | `{}` | Optional Apify proxy routing for Discord invite API lookups. Disboard discovery uses one direct browser attempt and never falls back to a proxy. Access-control, CAPTCHA, login, rate-limit, and WAF pages are reported and never bypassed. |
| `requestDelayMs` | integer | Optional | `600` | Delay before Disboard navigation and between sequential Discord invite API lookups, from 0 to 5000 ms. |
| `userAgent` | string | Optional | `""` | Optional transparent browser user-agent for the public page request. Leave blank to use the Actor default. 0–300 characters. |

Example input for category-based discovery:

```json
{
  "category": "gaming",
  "maxItems": 40,
  "proxyConfiguration": {},
  "requestDelayMs": 600,
  "userAgent": ""
}
```

For supplied `inviteCodes`, optional `proxyConfiguration` uses standard Apify Proxy settings. Disboard listing mode always uses direct browser access.

### Output

The dataset contains one row per public server returned by either the Discord Invite Resource API or Disboard discovery. Optional information appears only when the source publishes it; missing values are omitted rather than inferred. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable deterministic identifier for a source-backed server row. |
| `recordType` | string enum | Always | Identifies a source-backed public server row. |
| `found` | boolean | When published | Whether a usable public server listing was found. |
| `dataAvailable` | boolean | When published | Whether usable public listing data is available for this row. |
| `position` | integer | When published | One-based position of the server in the saved result set. |
| `serverId` | string | When published | Public Discord guild identifier from the source response or Disboard listing. |
| `inviteCode` | string | When published | Public Discord invite code used with the Invite Resource API in invite mode. |
| `name` | string | Always | Public server name shown on the listing card or returned by the Invite Resource API. |
| `description` | string | When published | Public server description. |
| `memberCount` | integer | When published | Public member count when exposed. |
| `onlineCount` | integer | When published | Public online-member count when exposed. |
| `category` | string | When published | Primary public listing tag inferred from the card. |
| `tags` | string array | When published | Public listing tags shown on the card. |
| `inviteUrl` | string | When published | Public join/invite URL; in invite mode this is the Discord invite URL, while listing mode may return the listing's join target. |
| `serverUrl` | string | When published | Public server landing URL when exposed, such as `https://discord.com/invite/<code>` in invite mode. |
| `thumbnailUrl` | string | When published | Public server thumbnail or icon URL when exposed by the source. |
| `iconUrl` | string | When published | Public Discord CDN icon URL when exposed by the Invite Resource API. |
| `bannerUrl` | string | When published | Public Discord CDN banner URL when exposed by the Invite Resource API. |
| `bumpTime` | string | When published | Public relative bump-time text shown on the card. |
| `guildFeatures` | string array | When published | Public Discord guild feature flags returned by the Invite Resource API. |
| `verificationLevel` | integer | When published | Public Discord verification level when returned by the Invite Resource API. |
| `nsfwLevel` | integer | When published | Public Discord NSFW level when returned by the Invite Resource API. |
| `premiumTier` | integer | When published | Public Discord premium tier when returned by the Invite Resource API. |
| `premiumSubscriptionCount` | integer | When published | Public Discord premium subscription count when returned by the Invite Resource API. |
| `language` | string | When published | Requested public language filter when supplied. |
| `inviteCodes` | string array | When published | Public invite codes supplied for an Invite Resource API run. |
| `searchQuery` | string | When published | Keyword query used for the public listing request. |
| `source` | string | When published | Stable Actor source label. |
| `sourceMode` | string | When published | Source route mode, such as disboard_browser or discord_invite_api. |
| `sourceUrl` | string | Always | Public source URL that produced the row: the Discord Invite API URL in invite mode or the Disboard listing page in discovery mode. |
| `requestUrl` | string | When published | Public page URL used for the row. |
| `targetUrl` | string | When published | Public navigation target associated with the row. |
| `queryProvided` | boolean | When published | Whether a keyword query was provided. |
| `categoryProvided` | boolean | When published | Whether a category filter was provided. |
| `languageProvided` | boolean | When published | Whether a language filter was provided. |
| `inviteCodesProvided` | boolean | When published | Whether public invite codes were supplied for this run. |
| `actorStatus` | string | When published | Actor-level outcome such as success, blocked, no_results, or failed. |
| `status` | string | When published | Row outcome; blocked and no-data rows are never reported as success. |
| `errorCategory` | string | When published | Extraction classification for a source-backed server record. |
| `extractionMode` | string | When published | Extraction mode used for the row. |
| `transport` | string | When published | Public transport used for the row: `direct_browser`, `direct_api`, or `apify_proxy_api`. |
| `usedProxy` | boolean | When published | Whether the configured ordinary Apify proxy handled the row. |
| `userAgent` | string | When published | Transparent user-agent provenance for the public browser request. |
| `actorVersion` | string | When published | Actor package version that produced the row. |
| `totalAvailable` | integer | When published | Public total count when the source exposes one. |
| `scrapedAt` | string | Always | UTC timestamp when the row was produced. |

The example below is a real saved row from the 2026-10-25 invite-API run, with the 50-entry `guildFeatures` array shortened to three entries for readability; all other fields are complete.

```json
{
  "recordId": "discord_servers_server_267624335836053506_2d1115433a8b",
  "recordType": "server",
  "found": true,
  "dataAvailable": true,
  "position": 1,
  "serverId": "267624335836053506",
  "inviteCode": "python",
  "name": "Python",
  "description": "We're a large community focused around the Python programming language. We believe that anyone can learn to code.",
  "memberCount": 432128,
  "onlineCount": 48096,
  "inviteUrl": "https://discord.gg/python",
  "serverUrl": "https://discord.com/invite/python",
  "thumbnailUrl": "https://cdn.discordapp.com/icons/267624335836053506/a_421bfdb0fba2e5bbf0408c0f2bc15f53.gif?size=256",
  "iconUrl": "https://cdn.discordapp.com/icons/267624335836053506/a_421bfdb0fba2e5bbf0408c0f2bc15f53.gif?size=256",
  "bannerUrl": "https://cdn.discordapp.com/banners/267624335836053506/ed3be5b67371fe219d7006152087afdb.png?size=256",
  "guildFeatures": [
    "BANNER",
    "GUILD_WEB_PAGE_VANITY_URL",
    "NEW_THREAD_PERMISSIONS"
  ],
  "verificationLevel": 2,
  "nsfwLevel": 0,
  "premiumTier": 3,
  "premiumSubscriptionCount": 28,
  "source": "discord-public-invite-api",
  "sourceUrl": "https://discord.com/api/v10/invites/python?with_counts=true&with_expiration=true",
  "requestUrl": "https://discord.com/api/v10/invites/python?with_counts=true&with_expiration=true",
  "targetUrl": "https://discord.gg/python",
  "queryProvided": false,
  "categoryProvided": false,
  "languageProvided": false,
  "inviteCodesProvided": true,
  "sourceMode": "discord_invite_api",
  "actorStatus": "success",
  "status": "success",
  "errorCategory": "none",
  "extractionMode": "invite_api",
  "transport": "direct_api",
  "usedProxy": false,
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
  "actorVersion": "1.2.0",
  "scrapedAt": "2026-10-25T20:45:15.258Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`.

| Field | Meaning |
| --- | --- |
| `recordType` | Summary discriminator; always `discord_run_summary`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved servers: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `accessStatus` | Final public-access classification, such as `available` or `blocked`. |
| `dataAvailable` | Whether at least one public server row was saved. |
| `sourceUrl` | Public source URL for the run: Discord Invite API or Disboard page. |
| `requestUrl` | Last public page or API URL requested for a row. |
| `searchQuery` | Keyword query used for Disboard discovery, when supplied. |
| `category` | Category or tag filter used for discovery, when supplied. |
| `language` | Language or locale filter used for discovery, when supplied. |
| `inviteCodes` | Public invite codes supplied for an invite-mode run. |
| `inviteCodesProvided` | Whether invite codes were supplied; when true, search-index discovery is skipped. |
| `sourceMode` | Route used: `discord_invite_api` or a Disboard discovery mode. |
| `queryProvided` | Whether a keyword query was supplied. |
| `categoryProvided` | Whether a category filter was supplied. |
| `languageProvided` | Whether a language filter was supplied. |
| `normalCount` | Source-backed server rows accepted for output. |
| `datasetItems` | Dataset rows written, matching the accepted server count. |
| `datasetItemCount` | Dataset item count reported for the run. |
| `itemsEmitted` | Server rows emitted to the dataset. |
| `diagnosticItems` | Diagnostic dataset rows; always zero because diagnostics stay in the summary and logs. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `itemCount` | Unique server records saved. |
| `uniqueItems` | Unique servers after de-duplication. |
| `duplicateCount` | Duplicate servers removed. |
| `failureCount` | Invite lookups or listing requests that failed. |
| `requestCount` | Public requests made. |
| `pagesProcessed` | Disboard pages or invite requests processed. |
| `attemptCount` | Mode-level transport attempts recorded for the run. |
| `transport` | Transport used for the run: `direct_api`, `direct_browser`, or `apify_proxy_api`. |
| `usedProxy` | Whether an Apify Proxy connection handled any row. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Eligible results were saved without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some results were saved, but a later problem prevented a complete run. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The source completed cleanly and returned no matching results. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable result was saved. |

Example `OUTPUT` from the saved run:

```json
{
  "recordType": "discord_run_summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "accessStatus": "available",
  "dataAvailable": true,
  "sourceUrl": "https://discord.com/api/v10/invites/python?with_counts=true&with_expiration=true",
  "requestUrl": "https://discord.com/api/v10/invites/typescript?with_counts=true&with_expiration=true",
  "inviteCodes": [
    "python",
    "reactiflux",
    "typescript"
  ],
  "inviteCodesProvided": true,
  "sourceMode": "discord_invite_api",
  "queryProvided": false,
  "categoryProvided": false,
  "languageProvided": false,
  "normalCount": 3,
  "datasetItems": 3,
  "datasetItemCount": 3,
  "itemsEmitted": 3,
  "diagnosticItems": 0,
  "diagnosticCount": 0,
  "itemCount": 3,
  "uniqueItems": 3,
  "duplicateCount": 0,
  "failureCount": 0,
  "requestCount": 3,
  "pagesProcessed": 3,
  "attemptCount": 1,
  "transport": "direct_api",
  "usedProxy": false,
  "completedAt": "2026-10-25T20:45:17.374Z"
}
```

### Coverage and limitations

The Actor supports two public routes. With `inviteCodes`, it calls Discord's public Invite Resource API for up to 25 supplied codes or invite URLs and does not use search-index discovery. Without invite codes, it reads publicly visible Disboard.org listing pages for the supplied keyword, category, or language filters and is bounded to four public Load More actions per run.

It does not log in, solve CAPTCHAs, inspect protected browser state, call private endpoints, inject fingerprints, use stealth headers, or bypass rate limits, WAFs, geofences, or other access controls. Optional fields are omitted when the source does not publish them. `inviteUrl` and `serverUrl` depend on the source: invite mode usually returns Discord URLs, while Disboard mode may return listing join targets. Blocked, empty, or partial responses are reported in `OUTPUT` and logs rather than written as server rows.

### Usage and support

Apify compute and storage usage depends on browser startup, API requests, page load time, bounded pagination, proxy routing, and dataset rows. Start with small item and page limits, inspect the dataset and run summary, then scale gradually. See the Actor's Pricing tab for current account rates. Use the [Actor Issues page](https://apify.com/w3crawler/discord-servers-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Discord or Disboard, endorsed by either company, or an official product of either company. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/discord-servers-scraper/changelog.md

# Actor input Schema

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

Public listing keywords to search for Discord servers.

## `category` (type: `string`):

Public listing category or tag, such as gaming, anime, music, technology, or crypto.

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

Optional language or locale filter, such as en, es, or fr.

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

Optional Discord-owned public invite codes or HTTPS invite URLs. When supplied, the Actor uses Discord's public Invite Resource API and does not use search-index discovery.

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

Maximum number of public Discord server records to collect. Pagination is bounded to four public Load More actions per run.

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

Optional Apify proxy routing for ordinary network connectivity. Access-control, CAPTCHA, login, rate-limit, and WAF pages are reported and never bypassed.

## `requestDelayMs` (type: `integer`):

Conservative delay before navigation and between direct and configured-proxy attempts.

## `userAgent` (type: `string`):

Optional transparent browser user-agent for the public page request. Leave blank to use the Actor default.

## Actor input object example

```json
{
  "maxItems": 40,
  "proxyConfiguration": {},
  "requestDelayMs": 600,
  "userAgent": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing source-backed public listing records only.

## `runSummary` (type: `string`):

JSON summary stored under the exact OUTPUT key in the default key-value store.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/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 '{}' |
apify call w3crawler/discord-servers-scraper --silent --output-dataset

```

## MCP server setup

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