# Discord Scraper & API | EveryInfra (`blushing_parachute/everyinfra-discord-api`) Actor

Unofficial Discord data via one Actor: search, directory, server, search_users. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-discord-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 21.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.60 / 1,000 search requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper & API | EveryInfra

This Discord server API looks up public servers by invite link or keyword and returns them as JSON. It also browses the server directory and finds users by name.

Passing an invite code or URL inspects public server metadata without joining the community.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `search` | Find Discord servers that match a keyword. Get description, member and online counts, Boost count, language, categories, verification level and NSFW flag. It does not search messages inside servers or open private communities. | keyword | — | 20 (up to 100) | $0.0096 |
| `directory` | Browse Discord's server directory, with an optional category. Each server has description, member and online counts, Boosts, language, tags and verification level. `category` accepts gaming, entertainment, education, music or science-and-tech. Unrecognized values are ignored. | — | category | 20 (up to 100) | $0.0017 |
| `server` | Resolve a Discord invite code or link to its server's name, description, member and online counts, Boosts, verification level, channel, inviter and expiry. Reading an invite does not join the server, and a null `expires_at` means the invite never expires. | invite | code, url | 1 | $0.0008 |
| `search_users` | Look up Discord users by username or display name and get each account's ID, avatar, Clan tag, creation date, and server and invite counts. It is not a global member search and exposes no private relationships. | keyword | — | 20 (up to 100) | $0.0020 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "game development"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `search`: `id`, `name`, `url`, `text`, `member_count`, `online_count`, `boost_count`, `vanity_url_code`, `language`, `categories`, `keywords`, `icon_url`, `banner_url`, `verification_level`, `is_nsfw`, `created_at`, `directory_url`, `platform`
- `directory`: `id`, `name`, `url`, `text`, `member_count`, `online_count`, `boost_count`, `vanity_url_code`, `language`, `categories`, `keywords`, `icon_url`, `banner_url`, `verification_level`, `is_nsfw`, `created_at`, `directory_url`, `platform`
- `server`: `id`, `name`, `url`, `text`, `member_count`, `online_count`, `boost_count`, `invite_code`, `vanity_url_code`, `icon_url`, `banner_url`, `verification_level`, `nsfw_level`, `channel_name`, `channel_type`, `inviter_username`, `inviter_name`, `expires_at`, `platform`
- `search_users`: `id`, `username`, `name`, `avatar`, `clan_tag`, `server_count`, `invite_count`, `created_at`, `platform`

#### Field notes

- `avatar`: Avatar.
- `banner_url`: Banner image.
- `boost_count`: Server Boost count (paid boosts from members).
- `categories`: Server categories.
- `channel_name`: Channel name.
- `channel_type`: Channel type (text, voice or forum).
- `clan_tag`: Server Clan tag.
- `directory_url`: Link to the server's directory page.
- `expires_at`: Expiry time of the invite link. null means it never expires.
- `icon_url`: Server icon.
- `invite_code`: Invite code (the part after discord.gg/).
- `invite_count`: Number of invite links.
- `inviter_name`: Nickname of the inviter.
- `inviter_username`: Username of the inviter.
- `is_nsfw`: Whether the server is NSFW.
- `keywords`: Keyword tags.
- `member_count`: Total number of members in the server.
- `nsfw_level`: NSFW level.
- `online_count`: Number of members currently online. The online-to-total ratio shows community activity better than the total does.
- `server_count`: Number of servers in the result.
- `vanity_url_code`: Custom short invite link. Having one means the server has reached a Boost level threshold.
- `verification_level`: Verification level (the requirement to join).

### Pricing

Pay per event, charged only when a run delivers data:

- `search`: $0.0096, one event per started block of 20 results.
- `directory`: $0.0017, one event per started block of 20 results.
- `server`: $0.0008, one event per non-empty request, whatever the row count.
- `search_users`: $0.0020, one event per started block of 20 results.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Discord or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `keyword` (type: `string`):

Used by `search` (required), `search_users` (required). Specifies search terms for public Discord server discovery in search or public user matching by username and display name in search_users. Does not index channel messages or grant access to private servers.

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

Used by `directory`. Filters server discovery in directory using preset values: gaming, entertainment, education, music, or science-and-tech. Leaving this unassigned returns unfiltered directory results; unrecognized categories are ignored.

## `invite` (type: `string`):

Used by `server` (required). Identifies a target server using a raw invite code or full URL format (discord.gg/<code> or discord.com/invite/<code>). The server action reads public metadata attached to the invite without joining the server; expired or invalid invites do not prove a server is non-existent.

## `code` (type: `string`):

Used by `server`. Accepts the invite code segment from an invite link as a compatibility alias for the invite parameter. The request must still pass the required invite parameter; this field does not accept verification codes, bot tokens, or server IDs.

## `url` (type: `string`):

Used by `server`. Provides a compatibility alias for the invite parameter that accepts a full Discord invite link. The request must still pass the required invite parameter; channel message links are not accepted as valid invites.

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

How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 100); `directory` 20 (max 100); `search_users` 20 (max 100). Billing: `search` one event per started block of 20 results; `directory` one event per started block of 20 results; `search_users` one event per started block of 20 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "game development"
}
```

# Actor output Schema

## `records` (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 = {
    "keyword": "game development"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-discord-api").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 = { "keyword": "game development" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-discord-api").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 '{
  "keyword": "game development"
}' |
apify call blushing_parachute/everyinfra-discord-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-discord-api"
        }
    }
}
```

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/19mfWO8rVtXY9mkZf/builds/68viY4f3B0UJSGnDI/openapi.json
