# Discord App Directory Scraper (`alien_force/discord-app-directory-scraper`) Actor

Scrape Discord App Directory by search query and/or category. Returns app name, description, tags, categories, guild count, install URL, popular commands, support server info, and directory links—ideal for bot discovery and competitor research.

- **URL**: https://apify.com/alien\_force/discord-app-directory-scraper.md
- **Developed by:** [Alien Force](https://apify.com/alien_force) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 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 App Directory Scraper

Scrape public apps from the [Discord App Directory](https://discord.com/discovery/applications) by search query and/or category. Each run searches the directory API, then enriches every hit with the application detail endpoint.

### Features

- Filter by **search query** and/or **category** (same filters as the website)
- Paginated search with a configurable **limit**
- Detail enrichment: guild count, install URL, popular commands, support server, flags
- Proxy support via Apify Proxy

### Input

Provide **at least one** of `searchQuery` or `category`.

#### `searchQuery`

- **Type**: `string`
- **Description**: Text matched against App Directory listings (website search box).
- **Example**: `carl`

#### `category`

- **Type**: `string` (select)
- **Description**: Website “Show” category filter. Readable labels only; mapped to Discord’s numeric `category_id` internally.
- **Options**: `Games`, `Entertainment`, `Moderation and Tools`, `Social`, `Utilities`
- **Example**: `Games`

#### `limit`

- **Type**: `integer`
- **Description**: Maximum number of apps to scrape. Set to `0` for no limit. Default is `10`.
- **Example**: `100`

#### `proxyConfiguration`

- **Type**: `object`
- **Description**: Proxy settings. Datacenter proxies are used by default; switch to `RESIDENTIAL` if requests are blocked.
- **Example**:
  ```json
  { "useApifyProxy": true }
  ```

#### Input example

```json
{
  "searchQuery": "carl",
  "category": "Games",
  "limit": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

Sorting is not available: the App Directory UI and search API do not expose a sort control.

### Output

One dataset row per successfully enriched app.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Application ID |
| `name` | string | Display name |
| `description` | string | Short description |
| `iconUrl` | string | CDN icon URL |
| `tags` | string\[] | Tags |
| `categories` | object\[] | Categories (`id`, `name`) |
| `isVerified` | boolean | Verified flag |
| `isDiscoverable` | boolean | Discoverable flag |
| `isMonetized` | boolean | Monetized flag |
| `guildCount` | integer | Approximate install / guild count |
| `detailedDescription` | string | Long directory description |
| `popularCommands` | object\[] | Popular slash commands |
| `botUsername` / `botId` | string | Linked bot user |
| `guildName` / `guildMemberCount` | — | Support server info |
| `customInstallUrl` | string | OAuth / install link |
| `directoryUrl` | string | App Directory page URL |
| `searchQuery` / `category` | string | Filters used for the run |
| `scrapedAt` | string | ISO timestamp |

#### Example row

```json
{
  "id": "1076935463698448404",
  "name": "Carl Johnson",
  "description": "A Discord bot designed for Grand Theft Auto...",
  "iconUrl": "https://cdn.discordapp.com/app-icons/1076935463698448404/....png?size=256",
  "tags": ["GTA Open Multiplayer"],
  "categories": [{ "id": 6, "name": "Games" }],
  "isVerified": true,
  "isDiscoverable": true,
  "isMonetized": false,
  "guildCount": 92,
  "customInstallUrl": "https://discord.com/oauth2/authorize?client_id=...",
  "directoryUrl": "https://discord.com/discovery/applications/1076935463698448404",
  "searchQuery": "carl",
  "category": "Games",
  "scrapedAt": "2026-09-19T00:00:00.000Z"
}
```

### Handling of empty / failed results

Inputs that yield no apps are kept out of the dataset and reported in the **`RUN_REPORT`** key-value store record, with warnings in the log.

- **Empty search**: no apps match the filters — run succeeds with zero rows.
- **Detail 404 / failed enrichments**: skipped and listed in `RUN_REPORT`.
- **All requests blocked**: run fails with a clear message (try residential proxies).

# Actor input Schema

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

Text to search in the Discord App Directory (maps to the website search box). Provide this and/or category.

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

Filter by App Directory category (the website "Show" filter). Provide this and/or searchQuery.

## `limit` (type: `integer`):

Maximum number of apps to scrape. Set to 0 for no limit. Default is 10.

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

Proxy settings for the run. Apify Proxy datacenter IPs are used by default; switch to RESIDENTIAL if Discord starts blocking requests.

## Actor input object example

```json
{
  "searchQuery": "carl",
  "category": "Games",
  "limit": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "carl",
    "category": "Games",
    "limit": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("alien_force/discord-app-directory-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 = {
    "searchQuery": "carl",
    "category": "Games",
    "limit": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("alien_force/discord-app-directory-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 '{
  "searchQuery": "carl",
  "category": "Games",
  "limit": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call alien_force/discord-app-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alien_force/discord-app-directory-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/uuYkLgitu7NX4TcfO/builds/gs0jZ8gwlMY2qtDbk/openapi.json
