# Discord Username Availability Checker (`the1890/discord-username-availability`) Actor

Check if a Discord username is available, taken, or rejected by Discord itself. Three-state results, local prechecks that cost nothing, and a per-run cap that respects Discord's real rate limit. Only definitive answers are charged.

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

## Pricing

from $8.00 / 1,000 username check (definitive answer)s

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

## Discord Username Availability Checker

Check whether a Discord username is **available**, **already taken**, or **not allowed by Discord at all**.

Most checkers only tell you "available / taken". This one separates the third case, because Discord rejects some names outright — reserved words, bad length, illegal characters. If a checker reports those as "available", you find out only when you try to register and fail.

### What you get

Each username comes back with exactly one `state`:

| state | meaning | charged? |
|---|---|---|
| `AVAILABLE` | The name can be registered. | yes |
| `TAKEN` | Someone already has it. | yes |
| `INVALID` | Discord will not allow this name. See `detail`. | **no** |
| `RATE_LIMITED` | Discord throttled us. See `retryAfterSecs`. | **no** |
| `UNREACHABLE` | Network failure. Not an answer about the name. | **no** |
| `SERVER_ERROR` | Discord returned 5xx. | **no** |
| `UNEXPECTED` | Response did not match any known shape. | **no** |
| `SKIPPED` | Not attempted because the quota was already exhausted. | **no** |

Only `AVAILABLE` and `TAKEN` are charged, because those are the only states where we actually asked Discord about the name and got an answer.

#### `detail`: the machine-readable sub-reason

Every state carries a `detail` code you can branch on. These are all the values this Actor can emit.

**Local precheck — no request made, never charged** (`INVALID`):

| detail | meaning |
|---|---|
| `PRECHECK_TOO_SHORT` | Shorter than 2 characters. |
| `PRECHECK_TOO_LONG` | Longer than 32 characters. |
| `PRECHECK_INVALID_CHARACTERS` | Not in `[a-z0-9._]`. |
| `PRECHECK_CONTAINS_RESERVED_DISCORD` | Contains the reserved word `discord`. |
| `PRECHECK_EMPTY` | Empty or whitespace-only after trimming. |
| `PRECHECK_NOT_A_STRING` | Input item was not a string. |

**Discord rejected the name** (`INVALID`, a request *was* made but is free):

These come straight from Discord's own response, so the set is not fixed. Observed values include `USERNAME_INVALID_CONTAINS` (the name contains a word Discord reserves) and `BASE_TYPE_BAD_LENGTH` (Discord's own length check). When Discord returns more than one code, they are joined with `+`.

**Network layer failed** (`UNREACHABLE`, never charged):

| detail | meaning |
|---|---|
| `DNS_FAIL` | The hostname did not resolve. |
| `CONNECT_TIMEOUT` | TCP or TLS connection timed out. |
| `CONN_RESET` | Connection was reset mid-request. |
| `NETWORK_ERROR` | A network error occurred but produced no specific code. |
| any other code | The raw error code from the runtime. |

**Response did not match any known shape** (`UNEXPECTED`, never charged):

| detail | meaning |
|---|---|
| `HTTP_200_NOT_A_VERDICT` | Got HTTP 200 but the body had no boolean `taken` field. |
| `HTTP_400_NO_ERROR_DETAIL` | Got HTTP 400 but no recognisable `errors.username` structure. |
| `HTTP_404_ENDPOINT_MOVED` | The endpoint no longer exists. |
| `HTTP_401_AUTH` / `HTTP_403_AUTH` | The endpoint started requiring auth. |
| `HTTP_<code>` | Any other unexpected status. |

**Something else** (`SERVER_ERROR` / `RATE_LIMITED`):

- `HTTP_5xx` — Discord returned a server error.
- `PER_ROUTE` / `GLOBAL` — which kind of rate limit was hit.

**Not attempted** (`SKIPPED`):

- `PREVIOUS_REQUEST_WAS_RATE_LIMITED` — an earlier check in the same batch already hit the limit, so this one was not sent. Nothing is charged.

When a run produces no verdict at all — because the input exceeded the per-run cap — no dataset rows and no `detail` values are produced. The run simply fails with an error.

### The rate limit is about speed, not a fixed count — and it is enforced

Discord throttles this endpoint per egress IP. The cooldown is a fixed ~2160 seconds (36 minutes), but **how many checks you get before hitting it depends on how fast you send them**. Measured on the Apify platform, 2026-11-08, four independent egress IPs:

| interval between checks | checks before HTTP 429 | retry_after |
|---|---|---|
| 0 ms (as fast as possible) | 12 | 2156.9 s |
| 120 ms | 20 | 2156.2 s / 2155.6 s |
| 250 ms (default) | 20 + (no 429 observed at 15 checks) | — |

Because the threshold moves with your request rate, a fixed count cap alone is not a safety valve. This Actor enforces **both**:

- at most **20 usernames per run**
- a **minimum 150 ms interval**, silently raised if you ask for less

If you submit more than 20 names, the run is **rejected before it starts** (`Field input.usernames must NOT have more than 20 items`) and **nothing is charged** — no start fee, no check fee. It does not silently check the first 20 and drop the rest, and it does not start a billable run just to tell you the input is too long.

To check more, split your list and start one run per slice.

**Read this before you do that.** Runs draw egress IPs from a small, reused pool, and Discord's quota belongs to the IP, not to the run. Measured on the Apify platform, 2026-11-09, 6 runs across 3 rounds:

| egress IP | used by | result |
|---|---|---|
| `18.208.109.242` | round 1 (20 checks ok) | — |
| `18.208.109.242` | round 2, new run | **first check 429**, retry_after 2136.9 s |
| `18.208.109.242` | round 3, new run | **first check 429**, retry_after 2127.0 s |
| `44.197.111.165` | round 2 (20 checks ok) | — |
| `44.197.111.165` | round 3, new run | **0 checks ok**, immediate 429 |

Only **3 distinct IPs** appeared across 6 runs. So a fresh `runId` does **not** guarantee a fresh quota: if the pool hands you an IP that has already been burned, that run gets nothing done.

What that means in practice:

- Splitting a large list into several runs usually works, because *some* IPs in the pool are still clean.
- But it is not unlimited. When the rotation lands on a spent IP, that slice returns `RATE_LIMITED` / `SKIPPED` and **you are charged nothing for it**.
- Retry that slice later — after the ~36 minute cooldown — rather than immediately, since an immediate retry is likely to land on the same spent IP.

Earlier versions of this README claimed "each run gets a fresh egress IP, so the quota does not carry over". That was based on 12 runs that happened to hit 12 distinct IPs. It is wrong, and it has been corrected here.

If a check does hit the limit, every remaining name is marked `SKIPPED` and **nothing is charged for any of it**.

### Input

```json
{
  "usernames": ["admin", "zzqx-new-name-9f3k", "discord"],
  "throttleMs": 250,
  "timeoutMs": 15000
}
```

Duplicates are removed before checking and are never charged twice.

### Output

Dataset rows:

```json
{
  "username": "discord",
  "state": "INVALID",
  "detail": "USERNAME_INVALID_CONTAINS",
  "reason": "Username cannot contain \"discord\"",
  "httpStatus": 400,
  "ms": 76
}
```

The `SUMMARY` key-value record holds the full breakdown plus a `complete` flag. When `complete` is `false`, some names did not resolve and the results are partial — do not treat them as a full answer.

### Pricing

Tiered, per successful check:

| tier | per check |
|---|---|
| FREE | $0.08 |
| BRONZE / SILVER / GOLD / PLATINUM / DIAMOND | $0.008 |

Free-tier users pay more because typical usage is a handful of trial checks; paying users run large batches and get the volume rate.

### Notes and limits

- Verified against real data: names that are almost certainly registered (`admin`, `support`, `help`, `test`, `mod`, `official`, `staff`, `root`) all come back `TAKEN`, so the availability signal is real and not an artefact.
- This Actor uses Discord's public, unauthenticated availability endpoint. No Discord account is needed, and no credentials are collected.
- It does not create accounts, reserve names, or interact with Discord beyond the availability check.
- The endpoint can change without notice. If it does, results will show `UNEXPECTED` rather than a wrong answer.
- Rate limits are set by Discord and may change. The values above are measurements, not published quotas.

# Actor input Schema

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

Up to 20 per run. Duplicates are removed automatically and never charged twice.

## `throttleMs` (type: `integer`):

Milliseconds between requests. Values below 150 are raised to 150 because Discord throttles this endpoint by request rate, not by a fixed count: measured, a 120ms gap allows 20 checks before a 36-minute cooldown, while a 0ms gap allows only 12. You are never charged for checks that hit the limit.

## `timeoutMs` (type: `integer`):

Give up on a single check after this long. The endpoint normally answers in under 200ms.

## Actor input object example

```json
{
  "usernames": [
    "admin",
    "zzqx-new-name-9f3k",
    "discord"
  ],
  "throttleMs": 250,
  "timeoutMs": 15000
}
```

# Actor output Schema

## `results` (type: `string`):

One item per unique username: the verdict (AVAILABLE / TAKEN / INVALID / ...), a machine-readable detail code, and the HTTP status and latency of the check. Available through the API as a dataset.

## `summary` (type: `string`):

Counts per state plus a 'complete' flag. Read 'complete' before treating the results as a full answer.

# 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": [
        "admin",
        "zzqx-new-name-9f3k",
        "discord"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("the1890/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": [
        "admin",
        "zzqx-new-name-9f3k",
        "discord",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("the1890/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": [
    "admin",
    "zzqx-new-name-9f3k",
    "discord"
  ]
}' |
apify call the1890/discord-username-availability --silent --output-dataset

```

## MCP server setup

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