Discord User search API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
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.
Send POST https://api.everyinfra.com/api/v1/social with platform set to discord and action set to search_users. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
Discord User search looks up public Discord accounts whose username or display name matches a keyword, such as leo. Each row carries the account's id, its username, the display name in name, the avatar, the server Clan tag in clan_tag, the account's creation time in created_at, and the number of servers and invite links in the result as server_count and invite_count. It answers which public accounts go by a given name.
Brand and community teams use it to find accounts that borrow an official name and to confirm that a handle they publish points to the intended account. Treat the rows as candidates: one term can match several accounts with the same or similar names, so key stored records on id rather than on either name. The search covers public account records only; it does not read messages inside servers and does not open private servers.
AI prompt
#Please help me write a data collection script with the EveryInfra Discord User search endpoint (discord/search_users).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to discord and action to search_users, and put the parameters inside params.
- Required parameters:
- keyword: 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.
- Optional parameters:
- limit: The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. (default: 20)
- Returns a list of records. Main fields of each record: id, username, name, avatar, clan_tag, server_count, invite_count, created_at.
- Example request body:
{
"platform": "discord",
"action": "search_users",
"params": {
"keyword": "leo"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | discord | Platform identifier, fixed value. |
action | body | string | Yes | search_users | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | 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. |
limit | body.params | integer (1–100) | No | 20 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "discord",
"action": "search_users",
"params": {
"keyword": "leo"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "discord", "action": "search_users", "results": [ { "id": "•••", "username": "•••", "name": "•••", "avatar": "https://cdn.discordapp.com/•••", "clan_tag": "Ca㏌e", "server_count": 65, "invite_count": 65, "created_at": "2025-05-14T00:00:00+00:00", "platform": "discord" }, { "id": "•••", "username": "•••", "name": "•••", "avatar": "https://cdn.discordapp.com/•••", "server_count": 25, "invite_count": 42, "created_at": "2018-02-16T00:00:00+00:00", "platform": "discord" } ], "count": 20, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
username | Username (@handle). |
name | Name of the object itself, for account, product and business capabilities. |
avatar | Keeps the platform's own meaning |
clan_tag | Keeps the platform's own meaning |
server_count | Keeps the platform's own meaning |
invite_count | Keeps the platform's own meaning |
created_at | Creation time, same format as posted_at. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
FAQ
#Can I look up a Discord user by username?
#Yes. Pass the username as keyword. Discord User search matches usernames and display names alike, so several accounts can come back instead of one exact hit. Compare the username on each row with the handle you expected before you rely on a match, and remember that only public account records are searched.
Does Discord User search read messages or private servers?
#No. It reads public account records and nothing else: it does not search messages inside servers and does not grant access to private servers. To find public servers rather than people, use the Discord Search capability, which searches the public server directory by keyword, or browse that directory by category with Discord Directory.
How do I tell look-alike accounts apart?
#Key them on id, the account's unique ID on Discord, because a name alone can match several accounts. Then compare username, the account's handle, and created_at, its creation time in ISO 8601, to tell an established account from a newer one with a similar name.
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- Discord: Unique Usernames vs. Display Names and Server Nicknames ↗
Discord official sources distinguish unique usernames from editable display names and prioritized server nicknames. This distinction clarifies returned candidate fields, but does not represent a global user directory or membership lookup capability.
Checked 2026-09-04