# Discord Public Servers Browser (`w3crawler/discord-public-server-scraper`) Actor

Browse and scrape public Discord servers from Discord's official Discovery API. Filter by category, extract member counts, boost level, invite links, and more — no login required.

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

## Pricing

from $2.99 / 1,000 public 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 Public Servers Browser

Discord Public Servers Browser reads public Discord Discovery listings from the official Discord Discovery service through its public JSON route. It returns multiple public server records with stable guild identity, source provenance, bounded pagination, and records access and failure details in run logs plus count-only summaries. It does not log in, use bot tokens, access private servers, or bypass CAPTCHA, WAF, rate, device, or other access controls.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/discord-public-server-scraper) and select **Try for free** or open the **Input** tab.
2. Set `category` and `maxItems` for the data you need.
3. Keep `maxItems` and the other limits small for the first run.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `category` | string | Optional | `""` | Optional public Discovery category, such as Gaming, Creative Arts, Science & Tech, Anime, Music, or Education. Leave empty to browse the bounded known category list. up to 80 characters. |
| `maxItems` | integer | Optional | `50` | Maximum number of unique public servers to return. The Actor caps this value at 500 and caps requests per run. 1–500. |
| `userAgent` | string | Optional | `""` | Optional transparent User-Agent header for the public request. Leave blank to use the Actor default; it is length-limited and never used to bypass access controls. 0–256 characters. |
| `requestTimeoutSeconds` | integer | Optional | `30` | Maximum time allowed for each public request. 5–60. |
| `maxRetries` | integer | Optional | `2` | Maximum bounded retries for transient network or server errors. Access boundaries are never retried. 0–3. |
| `requestDelayMs` | integer | Optional | `250` | Delay between public requests, from 0 to 2000 ms. Set to 0 to disable the additional delay. |

Full default input:

```json
{
  "category": "",
  "maxItems": 50,
  "userAgent": "",
  "requestTimeoutSeconds": 30,
  "maxRetries": 2,
  "requestDelayMs": 250
}
```

The Actor reads public data from Discord.

### Output

The dataset contains one row per public Discord Discovery server returned by the official public JSON route. Optional information appears only when Discovery 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 public server record was found for this row. |
| `dataAvailable` | boolean | When published | Whether usable public server data is available for this row. |
| `categoryProvided` | boolean | When published | Whether a specific Discovery category was requested. |
| `rank` | integer | When published | One-based rank of a source-backed server row. |
| `guildId` | string | When published | Public Discord guild identifier exposed by Discovery. |
| `name` | string | Always | Public Discord server name. |
| `description` | string | When published | Public server description when exposed by Discovery. |
| `memberCount` | integer | When published | Approximate public member count when exposed. |
| `onlineMemberCount` | integer | When published | Approximate public online member count when exposed. |
| `boostCount` | integer | When published | Public server boost count when exposed. |
| `boostLevel` | integer | When published | Public Discord server boost tier when exposed. |
| `primaryCategory` | string | When published | Primary public Discovery category. |
| `categories` | string array | When published | Public Discovery category labels assigned to the server. |
| `keywords` | string array | When published | Public Discovery keywords assigned to the server. |
| `features` | string array | When published | Public Discord feature flags exposed by Discovery. |
| `inviteUrl` | string | When published | Public Discord invite URL derived from a public vanity code. |
| `icon` | string | When published | Public Discord server icon URL when an icon hash is exposed. |
| `preferredLocale` | string | When published | Public preferred locale exposed by Discovery. |
| `isVerified` | boolean | When published | Whether Discord publicly marks the server as verified. |
| `vanityCode` | string | When published | Public Discord vanity invite code when available. |
| `source` | string | When published | Stable Actor source label. |
| `sourceUrl` | string | Always | Official public Discord Discovery page associated with the run. |
| `requestUrl` | string | When published | Public Discovery API request URL used for the row. |
| `targetUrl` | string | When published | Public request target associated with the row. |
| `searchCategory` | string | When published | Discovery category used for the request, or all when category is not constrained. |
| `actorStatus` | string | When published | Actor-level row status such as success, partial, blocked, no_results, or failed. |
| `status` | string | When published | Record status; 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 transport used for the row. |
| `userAgent` | string | When published | Transparent User-Agent value used for the public API request. |
| `actorVersion` | string | When published | Actor package version that produced the row. |
| `totalAvailable` | integer | When published | Public total count reported by the response when available. |
| `scrapedAt` | string | Always | UTC timestamp when the row was produced. |

The example below is the complete real saved row from the 2026-10-25 run:

```json
{
  "recordId": "discord_public_servers_server_1376018788041887795_aeb860f76d12",
  "recordType": "server",
  "found": true,
  "dataAvailable": true,
  "categoryProvided": true,
  "rank": 1,
  "guildId": "1376018788041887795",
  "name": "Steal a Brainrot",
  "description": "Welcome to the official Steal a Brainrot server! 🧠",
  "memberCount": 7659968,
  "onlineMemberCount": 300389,
  "boostCount": 450,
  "primaryCategory": "Gaming",
  "categories": [
    "Memes",
    "Gaming"
  ],
  "keywords": [
    "brainrot",
    "roblox"
  ],
  "features": [
    "COMMUNITY",
    "DISCOVERABLE",
    "ENABLED_DISCOVERABLE_BEFORE",
    "MEMBER_VERIFICATION_GATE_ENABLED",
    "PREVIEW_ENABLED"
  ],
  "inviteUrl": "https://discord.gg/brainrots",
  "icon": "https://cdn.discordapp.com/icons/1376018788041887795/f9f69ceda1bb918075ee1b2fd4cb5fcc.png",
  "preferredLocale": "en-US",
  "vanityCode": "brainrots",
  "source": "discord-public-server-scraper",
  "sourceUrl": "https://discord.com/discovery",
  "requestUrl": "https://discord.com/api/v9/index/servers/search?category_id=1&limit=24&offset=0",
  "targetUrl": "https://discord.com/api/v9/index/servers/search?category_id=1&limit=24&offset=0",
  "searchCategory": "Gaming",
  "actorStatus": "success",
  "status": "success",
  "errorCategory": "none",
  "extractionMode": "api",
  "userAgent": "DiscordPublicServerScraper/1.0 (+https://discord.com/discovery)",
  "actorVersion": "1.1.0",
  "scrapedAt": "2026-10-25T20:44:43.873Z"
}
```

### 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 Discord Discovery page used for the run. |
| `requestUrl` | Public Discovery API request URL used for the saved rows. |
| `category` | Requested Discovery category, or blank when the bounded category list was used. |
| `categoryProvided` | Whether a specific category was requested. |
| `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` | Requests or category passes that failed. |
| `requestCount` | Public Discovery requests made. |
| `pagesProcessed` | Pagination pages processed. |
| `categoriesProcessed` | Category passes processed. |
| `totalAvailable` | Public total count reported by Discovery, or `null` when not exposed. |
| `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/discovery",
  "requestUrl": "https://discord.com/api/v9/index/servers/search?category_id=1&limit=24&offset=0",
  "category": "Gaming",
  "categoryProvided": true,
  "normalCount": 3,
  "datasetItems": 3,
  "datasetItemCount": 3,
  "itemsEmitted": 3,
  "diagnosticItems": 0,
  "diagnosticCount": 0,
  "itemCount": 3,
  "uniqueItems": 3,
  "duplicateCount": 0,
  "failureCount": 0,
  "requestCount": 1,
  "pagesProcessed": 1,
  "categoriesProcessed": 1,
  "totalAvailable": null,
  "completedAt": "2026-10-25T20:44:44.031Z"
}
```

### Coverage and limitations

The Actor reads public Discord Discovery listings through Discord's public JSON route. A supplied `category` must match one of the supported Discovery categories (`Gaming`, `Creative Arts`, `Science & Tech`, `Anime`, `Music`, or `Education`); an unknown name is an input failure and produces no dataset rows. Leaving `category` blank uses the bounded known category list. `maxItems` caps unique servers, and requests and pagination are bounded per run.

It does not log in, use bot tokens, access private servers, or bypass CAPTCHA, WAF, rate, device, or other access controls. Optional fields are omitted when Discovery does not expose them. Counts and labels are copied only from the public response; the Actor does not invent missing values or merge data from another source. Blocked, empty, or partial responses are reported in the run summary and logs rather than written as server rows.

### Usage and support

Apify compute and storage usage depends on request count, timeout duration, retries, 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-public-server-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. 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-public-server-scraper/changelog.md

# Actor input Schema

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

Optional public Discovery category, such as Gaming, Creative Arts, Science & Tech, Anime, Music, or Education. Leave empty to browse the bounded known category list.

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

Maximum number of unique public servers to return. The Actor caps this value at 500 and caps requests per run.

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

Optional transparent User-Agent header for the public request. Leave blank to use the Actor default; it is length-limited and never used to bypass access controls.

## `requestTimeoutSeconds` (type: `integer`):

Maximum time allowed for each public request.

## `maxRetries` (type: `integer`):

Maximum bounded retries for transient network or server errors. Access boundaries are never retried.

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

Delay between public requests. Set to 0 to disable the additional delay.

## Actor input object example

```json
{
  "category": "",
  "maxItems": 50,
  "userAgent": "",
  "requestTimeoutSeconds": 30,
  "maxRetries": 2,
  "requestDelayMs": 250
}
```

# Actor output Schema

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

Source-backed public server records only.

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

Counts and status for the bounded public Discovery run.

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

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

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

```

## MCP server setup

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