# Discord Username Checker | Availability, Vanity & Invite Codes (`feedminer/discord-username-availability`) Actor

Paste Discord usernames and get each one's status as Discord's sign-up form reports it: available, taken or invalid, with Discord's own reason. Add vanity or invite codes to get the server behind each, with its member and online counts. No Discord account, login or token needed.

- **URL**: https://apify.com/feedminer/discord-username-availability.md
- **Developed by:** [FeedMiner](https://apify.com/feedminer) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 33 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.70 / 1,000 username or code checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

<div style="border-left:3px solid #1C1917;background:#FAFAF9;padding:15px 20px;border-radius:3px">
<strong>Discord usernames in, in bulk, one row per name out: available, taken or invalid as Discord's own sign-up form is told, with Discord's reason for every refusal. Vanity and invite codes beside them, one row per code: the server it leads to with its member and online counts, or free. As JSON, CSV or Excel, or straight from the API.</strong> No Discord account, bot token, cookie or proxy setting is involved, so there is nothing to connect.
</div>

🔓 **Nothing to connect.** No Discord login, no bot token, no cookie to paste, and no proxy to configure: the Actor picks its own exits. Each name is asked what Discord's sign-up page asks for a visitor who is not logged in, and each code is read as its invite page reads it.

⚡ **1 320 rows in 18.5 seconds.** Measured on platform run `h7rTtmWW2yLBdyklT` at 256 MB: 1 170 usernames and 150 codes in one list. Its twin, started at the same moment on the same list, took 17.5 seconds (`JZY74Fh5c35b5SHQp`).

💸 **$3.60 per 1 000 checks on the free plan, $2.70 from Gold.** That is below each of the five Discord username checkers we compared on the Apify Store on 6 November 2026, at every plan: their prices then ran from $4.00 to $100.00 per 1 000 on the free plan, and from $3.00 to $10.00 from Gold.

🔗 **Usernames and server codes in one run, with the server behind each code.** A taken vanity or invite comes back with the server that holds it: name, id, member and online counts, boosts, Discord's verified badge. Of the five checkers we compared on 6 November 2026, one also took vanity codes, one kind per run, and none listed a server's member count in its output.

![How Discord Username Checker works: usernames and discord.gg codes in, one row per name with Discord's verdict and one row per code with the server behind it](https://api.apify.com/v2/key-value-stores/RPT1LNaNbQoVImUE9/records/discord-username-availability-how-it-works-v1.png)

#### Copy to your AI assistant

```
feedminer/discord-username-availability on Apify. Checks Discord usernames and Discord server vanity or invite codes anonymously: no Discord account, no bot token, no cookies, no proxy setting. A username is asked what Discord's own sign-up form asks a logged-out visitor; a code is looked up as its invite page reads it. One row per entry, told apart by "kind". Username row: kind "username", input (the line as typed; for a generated name, the base word it was built from), username (trimmed, one leading @ dropped, lowercased), status (available | taken | invalid | unchecked), reason_code and reason (Discord's own code and sentence on invalid, e.g. USERNAME_INVALID_CONTAINS / "Username cannot contain \"discord\""; the run's own on unchecked: no_answer | lane_closed | proxy_refused | unexpected_answer), checked_at (RFC3339 UTC, empty on unchecked). Code row: kind "code", input, code (the bare code asked, case kept), url (https://discord.gg/<code>), status (taken | free | unchecked), reason_code and reason (on free: 10006 "Unknown Invite" or 50270 "Invite is expired."), invite_type (server | group_dm | friend), expires_at, server_id, server_name, description, vanity_code, members, online, boosts, boost_tier (0-3), verification_level (none | low | medium | high | very_high), nsfw_level (default | explicit | safe | age_restricted), verified, partnered, features[], icon, banner, channel, checked_at. Counts and flags Discord did not give (a free code) are null, text columns are "", features is []. Billing: one "check" event per row Discord answered (available, taken or invalid; taken or free); an unchecked row is delivered and not billed; duplicates after cleaning, set-aside lines and entries past maxRows are never asked. Call ApifyClient("TOKEN").actor("feedminer/discord-username-availability").call(run_input={"usernames": ["mrbeast", "@Acme_HQ"], "codes": ["discord.gg/midjourney"]}), then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: usernames (string[]), codes (string[]; a bare code, or a discord.gg/..., discord.com/invite/... or discordapp.com/invite/... link), maxRows (integer 1-1000000, default 100000; pasted usernames are kept first, then generated ones, then codes), baseWords (string[]; each checked as itself, then in every pattern), patterns (string[]; * stands for the base word, e.g. the_*, *hq; a line with no * is set aside), debugMode (bool, default false). At least one username, base word or code is needed. Full spec: GET https://api.apify.com/v2/acts/feedminer~discord-username-availability/builds/default (Bearer TOKEN) → inputSchema, actorDefinition.storages.dataset, readme. Token: https://console.apify.com/account/integrations
```

***

### How to check Discord usernames and codes

Paste what you hold: names to check, and codes or links to look up. That is the whole input.

##### A few usernames

```json
{ "usernames": ["mrbeast", "@Acme_HQ", "  Acme.Official ", "discord"] }
```

One row per name. A leading `@`, surrounding spaces and capitals are cleaned before Discord is asked, and the row keeps your line as you typed it. Nothing else is filtered: `discord` is sent as is and comes back `invalid` with Discord's own reason, which is the point of asking.

##### Vanity and invite codes

```json
{ "codes": ["minecraft", "https://discord.gg/midjourney", "discord.com/invite/fortnite", "zz-not-a-real-vanity-77"] }
```

This is the "who holds `discord.gg/<brand>`" question. A held code comes back `taken` with the server behind it and its counts; a code Discord knows nothing about comes back `free`. Platform run `AmHasDFwY0BVk4rzl` asked four codes like these and answered all four in 1.7 seconds.

##### Both together

```json
{
  "usernames": ["mrbeast", "@Acme_HQ", "acme.official", "acme-store"],
  "codes": ["minecraft", "discord.gg/midjourney", "https://discord.com/invite/fortnite"]
}
```

The form's prefill, as platform run `7885Hh0az7CyhqYCj` ran it: seven rows in 2.1 seconds. Names and codes are asked side by side, each kind on its own lane, and every pasted form reached its answer: the `@`, the capitals and both link shapes.

##### Names you did not type out

```json
{
  "baseWords": ["Acme", "zork"],
  "patterns": ["the_*", "*hq", "real.*.tv"],
  "maxRows": 500
}
```

Each base word is checked as itself, then dressed in each pattern, `*` standing for the word: `acme`, `zork`, `the_acme`, `the_zork`, `acmehq`, `zorkhq`, `real.acme.tv`, `real.zork.tv`. The words take turns, so a `maxRows` reached early still covers every one of them. Each generated name is checked and charged like a pasted one, and its row's `input` is the base word it came from. The platform runs measured on this page all used pasted lists.

### Input parameters

##### What to check

| Parameter | Type | Default | Description |
|---|---|---|---|
| `usernames` | string\[] | prefill: `mrbeast`, `@Acme_HQ`, `acme.official`, `acme-store` | Discord usernames, one per line, as you have them. Spaces are trimmed, one leading `@` is dropped and the name is lowercased; nothing else is touched, and a name Discord refuses comes back `invalid` with its reason. A name that cleans to one already in the list is checked once. |
| `codes` | string\[] | prefill: `minecraft`, `discord.gg/midjourney`, `https://discord.com/invite/fortnite` | Vanity or invite codes, bare or as a `discord.gg/`, `discord.com/invite/` or `discordapp.com/invite/` link, with or without `https://` and `www.`. A query string or a trailing `/` is dropped. A code keeps its case, which is part of an invite. A line that is not letters, digits and dashes once its link is stripped is set aside and counted. |
| `maxRows` | integer | `100000` | The most usernames and codes one run checks, generated names included. 1 to 1 000 000. Pasted usernames are kept first, then generated ones, then codes. |

##### Generate candidates

| Parameter | Type | Default | Description |
|---|---|---|---|
| `baseWords` | string\[] | none | Words to build usernames from: a brand, a nickname, a project. Cleaned like a username, then checked as itself and in every pattern. |
| `patterns` | string\[] | none | How each base word is dressed, one per line, `*` standing for the word: `the_*`, `*hq`, `real.*.tv`. Applied to the base words only, never to the pasted usernames. A line with no `*` is set aside. Discord accepts `_` and `.` in a username and refuses `-`, so a pattern with a dash gives `invalid` rows, each still checked and charged. |

##### Advanced

| Parameter | Type | Default | Description |
|---|---|---|---|
| `debugMode` | boolean | `false` | Verbose log lines for support. Leave off. |

The groups add up: pasted usernames, then the names the base words build, then the codes, the whole capped by `maxRows`. Whatever is set aside, folded as a duplicate or left past the cap is counted in the run's closing sentence, never dropped in silence.

### What data can you extract from Discord?

Every row carries `kind`, which says whether it is a username row or a code row, `input`, your line as typed, and `checked_at`, the moment Discord answered. A username row has seven columns; a code row has twenty-six. In a CSV or Excel export, a username row leaves the code columns empty.

##### The username row

| Theme | Fields |
|---|---|
| What was asked | `input` (your line, or the base word a generated name was built from), `username` (trimmed, one `@` dropped, lowercased) |
| Discord's verdict | `status`: `available`, `taken` or `invalid`, or `unchecked` when Discord never answered |
| Why | `reason_code` and `reason`: on `invalid`, Discord's own code and sentence, such as `USERNAME_INVALID_CONTAINS` with `Username cannot contain "discord"`, or `BASE_TYPE_BAD_LENGTH` with `Must be between 2 and 32 in length.`; on `unchecked`, the run's own reason. Empty otherwise. |
| When | `checked_at`, RFC 3339 in UTC; empty on `unchecked` |

##### The code row

| Theme | Fields |
|---|---|
| What was asked | `input` (your line), `code` (the bare code asked), `url` (`https://discord.gg/<code>`, on every code row whatever its status) |
| Discord's verdict | `status`: `taken` when the code leads somewhere, `free` when Discord knows no such code, `unchecked` when it never answered; `reason_code` and `reason`: on `free`, Discord's own, `10006` `Unknown Invite` or `50270` `Invite is expired.` |
| The server | `server_id`, `server_name`, `description`, `vanity_code` (the vanity the server holds, whichever code led to it), `icon` and `banner` (links on Discord's CDN, empty when the server has none) |
| Its size | `members`, `online` (Discord's approximate counts), `boosts`, `boost_tier` (0 to 3) |
| Its standing | `verified`, `partnered`, `verification_level` (`none`, `low`, `medium`, `high`, `very_high`), `nsfw_level` (`default`, `explicit`, `safe`, `age_restricted`), `features[]` (Discord's own flags on the server) |
| The invite | `invite_type` (`server`, `group_dm`, `friend`), `expires_at` (empty when it never expires), `channel` (the channel the invite opens on) |
| When | `checked_at` |

A count or a flag Discord did not give, on a free code or an invite that leads to no server, is `null` rather than `0`, so a free code never reads as an empty server. Text columns Discord left blank are `""` and `features` is `[]`.

![What one Discord code row carries, field by field: the code read out of any link form, taken or free, the server that holds it and its member and online counts](https://api.apify.com/v2/key-value-stores/RPT1LNaNbQoVImUE9/records/discord-username-availability-row-anatomy-v1.png)

##### Example rows

A refused username, as platform run `aSgDcKxacfOaLTHeT` delivered it on 7 November 2026:

```json
{
  "kind": "username",
  "input": "discord",
  "username": "discord",
  "status": "invalid",
  "reason_code": "USERNAME_INVALID_CONTAINS",
  "reason": "Username cannot contain \"discord\"",
  "checked_at": "2026-11-07T01:47:58Z"
}
```

A taken vanity, pasted as a link, from platform run `7885Hh0az7CyhqYCj` the same day. The `features` list is cut here to its first six flags; the row carries all 48.

```json
{
  "kind": "code",
  "input": "discord.gg/midjourney",
  "code": "midjourney",
  "url": "https://discord.gg/midjourney",
  "status": "taken",
  "reason_code": "",
  "reason": "",
  "invite_type": "server",
  "expires_at": "",
  "server_id": "662267976984297473",
  "server_name": "Midjourney",
  "description": "The official server for Midjourney, a text-to-image AI where your imagination is the only limit.",
  "vanity_code": "midjourney",
  "members": 18230199,
  "online": 611846,
  "boosts": 248,
  "boost_tier": 3,
  "verification_level": "low",
  "nsfw_level": "safe",
  "verified": true,
  "partnered": false,
  "features": ["VIDEO_QUALITY_720_60FPS", "COMMUNITY", "ENABLED_DISCOVERABLE_BEFORE", "GUILD_PRODUCTS", "WELCOME_SCREEN_ENABLED", "INVITE_SPLASH"],
  "icon": "https://cdn.discordapp.com/icons/662267976984297473/39128f6c9fc33f4c95a27d4c601ad7db.png",
  "banner": "https://cdn.discordapp.com/banners/662267976984297473/63249e6867f276efc07d32793b7b3b5a.png",
  "channel": "getting-started",
  "checked_at": "2026-11-07T01:47:45Z"
}
```

An expired invite, from platform run `AmHasDFwY0BVk4rzl`:

```json
{
  "kind": "code",
  "input": "alphahq",
  "code": "alphahq",
  "url": "https://discord.gg/alphahq",
  "status": "free",
  "reason_code": "50270",
  "reason": "Invite is expired.",
  "invite_type": "",
  "expires_at": "",
  "server_id": "",
  "server_name": "",
  "description": "",
  "vanity_code": "",
  "members": null,
  "online": null,
  "boosts": null,
  "boost_tier": null,
  "verification_level": "",
  "nsfw_level": "",
  "verified": null,
  "partnered": null,
  "features": [],
  "icon": "",
  "banner": "",
  "channel": "",
  "checked_at": "2026-11-07T01:48:16Z"
}
```

#### Does "available" mean I can register the Discord username?

It means Discord's sign-up form was told the name is not taken. Registering it is a separate step on Discord, and this Actor never creates an account to try, so it cannot promise the registration goes through.

#### What does a free vanity or invite code mean?

That Discord leads the code nowhere. For a vanity, nobody holds it: `10006`, `Unknown Invite`. For an invite that once worked, it ran out or was revoked; Discord sometimes says so outright, `50270`, `Invite is expired.`. The `reason_code` column tells the two apart.

### What this Actor covers

![What Discord Username Checker reaches, and what it does not](https://api.apify.com/v2/key-value-stores/RPT1LNaNbQoVImUE9/records/discord-username-availability-coverage-v1.png)

It asks Discord two things a logged-out visitor can ask: whether a username is free, and where a vanity or invite code leads. It does not say who holds a taken username, because Discord answers that check with no user id; it does not read a server's members, channels or messages; and it keeps no history between runs. No other FeedMiner Actor reads Discord either.

**For the same name on other networks**, [X Profile Scraper](https://apify.com/feedminer/x-profile-scraper) reads the account behind a handle on X, and [Telegram Channel Enrichment](https://apify.com/feedminer/telegram-channel-enrichment) reads a Telegram channel's subscribers, reach and posting pace.

### Pricing

| Plan | Price per 1 000 checks |
|---|---|
| Free | $3.60 |
| Bronze | $3.51 |
| Silver | $3.42 |
| Gold, Platinum, Diamond | $2.70 |

A check is one `check` event, titled "Username or code checked" on the Store: one username Discord called available, taken or invalid, or one code it called taken or free. Usernames, generated names and codes are one price. The only other charge is the platform's own Actor start, $0.00005 per run.

You are charged for answers that reach your dataset and for nothing else. Not billed:

- a row marked `unchecked`, where Discord never answered: it is delivered, with its reason, and free;
- a second line that cleans to a name or code already asked;
- a line set aside because it names nothing to ask, or a pattern with no `*`;
- whatever lies past `maxRows`.

##### Against the market

The five other Discord username checkers we compared on the Apify Store on 6 November 2026 (read at 23:24 UTC) each charge one price per result or per check. Their prices then, per 1 000:

| Plan | This Actor | The five others, lowest to highest |
|---|---|---|
| Free | $3.60 | $4.00 to $100.00 |
| Bronze | $3.51 | $3.90 to $10.00 |
| Silver | $3.42 | $3.80 to $10.00 |
| Gold, Platinum, Diamond | $2.70 | $3.00 to $10.00 |

Their Actor start ran from nothing to $0.001 per run. Store prices move, so read these as of that date.

##### What a real run comes to

These runs were made before the price was posted, so none was billed. At the prices above, they come to:

| Run | What it did | Rows | Free plan | Gold |
|---|---|---|---|---|
| `7885Hh0az7CyhqYCj` | the form's prefill: four usernames, three codes | 7 | $0.025 | $0.019 |
| `aSgDcKxacfOaLTHeT` | five usernames at the form's edges | 5 | $0.018 | $0.014 |
| `AmHasDFwY0BVk4rzl` | four codes: two held vanities, one nobody holds, one expired | 4 | $0.014 | $0.011 |
| `h7rTtmWW2yLBdyklT` | 1 170 usernames and 150 codes | 1 320 | $4.75 | $3.56 |

Each run also pays the $0.00005 start. An `unchecked` row in any of them would be free, so these are the most each would come to.

##### Free tier

Apify's free plan comes with monthly platform credits. The prefill run above, seven checks, comes to under three cents of them, so you can see the output before committing to anything.

### Advanced usage

##### Screening a brand before launch

```json
{
  "usernames": ["acme", "acmehq", "acme_official", "acme.gg"],
  "codes": ["acme", "acmehq", "acmeofficial"]
}
```

One run answers both sides of the name: whether the handles are free to register, and whether `discord.gg/acme` is free or which server holds it, with its member count and verified badge. A vanity held by a large verified server is a different conversation from one held by a server of a hundred members.

##### Hunting a short handle

```json
{
  "baseWords": ["nova", "orbit", "falcon"],
  "patterns": ["*hq", "the_*", "*.gg", "*_", "*x"],
  "maxRows": 2000
}
```

Eighteen candidates from three words: each word, then each word in five shapes. Filter the dataset on `status` = `available` and you have the shortlist. Add more words rather than more patterns when you want variety: every pattern applies to every word.

##### Sizing the servers behind a list of invite links

```json
{
  "codes": [
    "https://discord.gg/minecraft",
    "https://discord.gg/midjourney",
    "https://discord.com/invite/fortnite"
  ]
}
```

Paste the links a spreadsheet, a directory or a creator's bio gives you, unedited. Sort on `members` for size or on `online` for activity, keep `verified` or `partnered` for the official ones, and the `free` rows are the dead links.

##### Asking again on a schedule

The Actor checks one list per run and keeps nothing between runs. To catch a name the day it frees up, save the input as an Apify task, put it on a schedule, and compare `status` from one run's dataset to the next.

### Integrate Discord data into your stack

Everything Apify offers applies: scheduled runs, webhooks on finish, and exports to S3, Google Sheets, Airtable or a database. The dataset is readable as JSON, CSV, Excel or XML from the API, and the Console shows it as a Checks table.

##### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("feedminer/discord-username-availability").call(run_input={
    "usernames": ["mrbeast", "@Acme_HQ", "acme.official"],
    "codes": ["discord.gg/midjourney"],
})

for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row["kind"] == "username":
        print(row["username"], row["status"], row["reason"])
    else:
        print(row["code"], row["status"], row["server_name"], row["members"])
```

##### JavaScript

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('feedminer/discord-username-availability').call({
    usernames: ['mrbeast', '@Acme_HQ', 'acme.official'],
    codes: ['discord.gg/midjourney'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const row of items) {
    if (row.kind === 'username') console.log(row.username, row.status, row.reason);
    else console.log(row.code, row.status, row.server_name, row.members);
}
```

### Performance

| Measure | Value | Measured on |
|---|---|---|
| Rows per second | 71.2 | run `h7rTtmWW2yLBdyklT`: 1 170 usernames and 150 codes, 1 320 rows in 18.5 s |
| The same list, started alongside | 75.3 a second | run `JZY74Fh5c35b5SHQp`: 1 320 rows in 17.5 s |
| The form's prefill | 7 rows in 2.1 s | run `7885Hh0az7CyhqYCj` |
| Five usernames, one worker | 5 rows in 3.6 s | run `aSgDcKxacfOaLTHeT` |
| Four codes | 4 rows in 1.7 s | run `AmHasDFwY0BVk4rzl` |
| Usernames asked at once | one worker per 20 names, up to 48 | the code (`run.go`) |
| Codes looked up at once | up to 8 | the code (`run.go`) |
| Checks per connection | at most 20, then a fresh one | the code (`libs/discord/names.go`) |
| Refused connections a name may meet | 25, then it is delivered `unchecked`, free | the code (`libs/discord/names.go`) |
| Memory | 256 MB | every run in this table |
| Outcome | SUCCEEDED, 5 of 5 | every run not killed on purpose |
| Rows kept when a run is killed | 1 000 in the dataset | run `W4NEPxDKxxaJMrrqE`, aborted 8.7 s in |
| Discord accounts used | none | every run |

The deepest platform run so far delivered 1 320 rows; the form allows 1 000 000. How long a list of 100 000 takes has not been measured yet, so give a very large list a run timeout with room to spare.

Rows are written to the dataset as they are answered: a batch goes out when 1 000 rows are waiting, or 30 seconds after the last write. A run that is killed keeps every batch already written and can lose what was answered since the last one; you are not charged for those, because billing follows what the dataset accepted.

Discord lets one address check about twenty usernames before it asks it to wait, and other Apify users spend some of the same addresses. The Actor moves to a fresh connection at its twentieth answer or its first refusal and never waits on a spent one, so the refusals cost connections, not your rows. If two minutes pass without a single verdict from Discord, the run stops asking and delivers what is left as `unchecked`, free, rather than spending your time.

### FAQ

**Do I need a Discord account, a bot token or a proxy?**
No. Every check is a question Discord answers for a visitor who is not logged in, and the Actor chooses its own Apify proxy exits. There is nothing in the form to connect.

**Does "available" mean I can register the name?**
It means Discord's sign-up form is told the name is not taken. Registering is a step on Discord that this Actor never takes, since trying would create an account. Check soon after: a free name can be taken by anyone.

**Why does `everyone` come back taken?**
Discord answers its reserved words as taken, and does not tell a reserved name from a held one. Platform run `aSgDcKxacfOaLTHeT` asked `everyone` and got `taken`. The row says what Discord said.

**Can it tell me who holds a taken username?**
No. Discord answers the username check with taken or not, and no user id. For a vanity or invite code it can: a taken code's row names the server that holds it.

**Why is my name `invalid`?**
Discord refused the name itself, and the row carries its code and sentence. A name must be 2 to 32 characters (`BASE_TYPE_BAD_LENGTH`), and some words may not appear in it at all (`USERNAME_INVALID_CONTAINS`). Discord accepts `_` and `.`, and refuses `-`. The Actor sends every name as you wrote it, so the reason is Discord's, never a guess of ours.

**A row says `unchecked`. Was I charged?**
No. Discord gave no verdict for it, and `reason` says why: every fresh connection tried for it was refused (`no_answer`), Discord stopped answering the run (`lane_closed`), the proxy refused the connection (`proxy_refused`), or Discord answered something this Actor does not read (`unexpected_answer`). Run those lines again later.

**How many names can one run check?**
Up to 1 000 000, set by `maxRows`, which defaults to 100 000. The deepest platform run so far checked 1 320 in 18.5 seconds (`h7rTtmWW2yLBdyklT`).

**One of my code lines was set aside.**
A code is letters, digits and dashes. Once the `discord.gg/` or `discord.com/invite/` part of a link is stripped, a line that is anything else names no code, and is counted in the run's closing sentence instead of being asked.

**Is the data live?**
Yes. Every run asks Discord at that moment, and `checked_at` is on every answered row. Member and online counts are Discord's at the moment of the check; nothing is cached or resold.

**Can it watch a name and tell me when it frees up?**
Not by itself: one list in, one dataset out. Put the same input on an Apify schedule and compare `status` between runs.

***

### Support

- Found something off in the output, or need a field that is missing? Open the **Issues** tab on this Actor's page with the input you ran and what you expected. Issues are read daily.
- Need a custom variant, such as another way to build candidates, a column this one does not carry, or a different network's handles? Ask in the Issues tab; FeedMiner builds on request.

### Legal compliance

This Actor reads only what Discord answers anyone who is not logged in: whether a username is free on its sign-up form, and what a public invite link shows about its server. Usernames can identify people, and processing information about people in the EU, the UK or California requires a lawful basis under GDPR or CCPA. Use the data for brand protection, name research, community analysis and tooling, not to impersonate anyone, to squat a name or a vanity that belongs to someone else's brand, or to send spam or raids to the servers it finds.

***

**FeedMiner** · Fast, honestly priced scrapers, kept alive when platforms change.

Discord Username Checker · [X Profile Scraper](https://apify.com/feedminer/x-profile-scraper) · [All FeedMiner Actors](https://apify.com/feedminer)

# Actor input Schema

## `usernames` (type: `array`):

The Discord usernames to check, one per line, as you have them: spaces, a leading @ and capitals are cleaned, and the row keeps your line as typed. Each comes back available, taken or invalid, as Discord's own sign-up form is told — an invalid name carries Discord's reason. Duplicates are checked once.

## `codes` (type: `array`):

Optional. Server vanity or invite codes, bare or as a discord.gg/… or discord.com/invite/… link. Each comes back taken, with the server it leads to and its member and online counts, or free when Discord knows no such code: for a vanity, nobody holds it; for an invite, it expired or was revoked.

## `maxRows` (type: `integer`):

The most usernames and codes one run checks, generated candidates included: pasted usernames first, then generated ones, then codes. Each one checked is one row and one charge, except the rare row Discord never answered, which is delivered as unchecked and not charged.

## `baseWords` (type: `array`):

Optional. Words to build candidate usernames from, one per line: a brand, a nickname, a project. Each is checked as itself, then in every pattern below. Every candidate is checked and charged like a pasted username, and its row keeps the base word it was built from as typed. The base words take turns, so a row cap reached early still covers each of them.

## `patterns` (type: `array`):

Optional. How each base word is dressed, one pattern per line, \* standing for the word: the\_\*, *hq, real.*.tv. Applied to the base words only, never to the usernames pasted above, and a line with no \* is set aside. Discord accepts \_ and . in a username and refuses -, so a pattern it refuses makes every candidate written in it invalid — and each is still checked and charged.

## `debugMode` (type: `boolean`):

Verbose log lines for support. Leave off.

## Actor input object example

```json
{
  "usernames": [
    "mrbeast",
    "@Acme_HQ",
    "acme.official",
    "acme-store"
  ],
  "codes": [
    "minecraft",
    "discord.gg/midjourney",
    "https://discord.com/invite/fortnite"
  ],
  "maxRows": 100000,
  "debugMode": false
}
```

# Actor output Schema

## `checks` (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 = {
    "usernames": [
        "mrbeast",
        "@Acme_HQ",
        "acme.official",
        "acme-store"
    ],
    "codes": [
        "minecraft",
        "discord.gg/midjourney",
        "https://discord.com/invite/fortnite"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("feedminer/discord-username-availability").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 = {
    "usernames": [
        "mrbeast",
        "@Acme_HQ",
        "acme.official",
        "acme-store",
    ],
    "codes": [
        "minecraft",
        "discord.gg/midjourney",
        "https://discord.com/invite/fortnite",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("feedminer/discord-username-availability").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 '{
  "usernames": [
    "mrbeast",
    "@Acme_HQ",
    "acme.official",
    "acme-store"
  ],
  "codes": [
    "minecraft",
    "discord.gg/midjourney",
    "https://discord.com/invite/fortnite"
  ]
}' |
apify call feedminer/discord-username-availability --silent --output-dataset

```

## MCP server setup

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

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/bQ1gNUV9OXLXAP4aj/builds/9X7l9GtcT8VsRBnwA/openapi.json
