Discord API
Read the public Discord server directory, browse servers by category, read the server behind an invite and search public users as JSON with one EveryInfra API key, from $1.39 per 1,000 calls.
All you need is one API key, no Discord account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.
- Failed calls and empty results are not charged.
- No direct messages, chat history or private server member lists.
- 4 endpoints, one key.
Real sample values for one server search
POST /api/v1/social params {"keyword":"game development"}
Platform availability
- 24h health
- Normal
Last 30 days
Available capabilities
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.
Servers
- SearchNormal
Find Discord servers that match a keyword.
search$1.39 per 1,000 callsEvery 20 rows count as one call - DirectoryNormal
Browse Discord's server directory, with an optional category.
directory$1.39 per 1,000 callsEvery 20 rows count as one call - ServerNormal
Resolve a Discord invite code or link to its server's name, description, member and online counts, Boosts, verification level, channel, inviter and expiry.
server$1.39 per 1,000 calls
Users
- User searchNormal
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.
search_users$1.39 per 1,000 callsEvery 20 rows count as one call
5 questions to ask before choosing a data API for Discord
Do I need to log in to Discord or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, $1.39 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this Discord API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server.
What compliance points apply when using Discord data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What Discord data can I get?
Available Discord capabilities (4): Search, Directory, Server, User search. The parameters and response fields of each capability are in the API reference on this page.
Use cases
Find communities where your audience gathers
Search public servers by topic word, or browse by category, and compare member counts and online counts.
Check one invite
Read the server, the landing channel and the inviter behind an invite without joining the server.
Usesserver
Find public user leads
Search public users by username or display name and use
idto tell look-alike display names apart.Usessearch_users
Discord Developer Documentation and Help Center vs EveryInfra
How the Discord documentation and EveryInfra compare on what can be read, what you need to connect and how servers are found:
| Compared | Discord Developer Documentation and Help Center | EveryInfra |
|---|---|---|
| What can be read | "Returns a list of partial guild objects the current user is a member of." | The 4 endpoints read the public server directory, the server behind an invite and public users. They do not depend on which servers an account has joined. |
| Access you need | "Before you can specify any of these privileged intents in your IDENTIFY payload, you must enable the specific privileged intents you need in the Developer Portal." | One EveryInfra API key in the Authorization: Bearer header. You create no Discord app, add no bot to a server and enable no intent. |
| How servers are found | "In the Discover Tab, you will find discoverable Community Servers along with their categories." | search and directory read servers in the public server directory, and server reads the server behind an invite. |
The quotes come from the User and Gateway pages of the Discord developer documentation and from the Discover Tab page of the Help Center, checked on 2026-11-22. The pages show no update date. Official sources: User Resource · Gateway · Discover Tab
What does each Discord action accept?
Parameter table for all 4 actions
Sync delivery for every action.
| Action | Required | Optional | Limit | Per 1,000 | Response fields |
|---|---|---|---|---|---|
searchSearch 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 | — | Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | 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 |
directoryDirectory Browse Discord's server directory, with an optional category. Each server has description, member and online counts, Boosts, language, tags and verification level. | category | Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | 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 | |
serverServer 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 | invite | code, url | — | $1.39 per 1,000 requests | 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_usersUser search 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 | — | Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | id · username · name · avatar · clan_tag · server_count · invite_count · created_at · platform |
What each action's parameters mean (4 actions)
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
What do the Discord search parameters mean?
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.
Full API reference: parameters, code samples, response example and healthkeywordRequired- 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.Discord Discover: Discovering Community Servers — Discord official documentation defines Discover Servers as discoverable Community Servers that can be browsed by category. This explains server, category, and discovery concepts, but does not represent client experiment states or complete directory coverage as an API guarantee. · Checked
What do the Discord directory parameters mean?
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.
categoryOptional- 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.Discord Server Categories and Discovery Scope — Discord official documentation lists community categories such as gaming, music, and entertainment. Supported categories are exactly the ones listed on this page and do not adopt legacy Discovery documentation categories or sorting features. · Checked
What do the Discord server parameters mean?
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.
inviteRequired- 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.Discord Invites: Invite Codes, Servers, and Channels as Distinct Objects — Discord official Invite objects separate `code`, `guild`, `channel`, `inviter`, and `expires_at`, treating member counts returned by invites as approximate numbers. This reference clarifies object relationships and count boundaries without implying support for creating or deleting invites or managing target users. · Checked
codeOptional- 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.
urlOptional- 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.
What do the Discord search_users parameters mean?
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.
Full API reference: parameters, code samples, response example and healthkeywordRequired- 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.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
How to use the Discord API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"discord","action":"search","params":{"keyword":"<keyword>"}}'
Discord API questions
What can I retrieve with the Discord API?
Set platform to discord. The current catalog lists search, directory, server, and user search. These action names identify different Discord objects or views; they are not interchangeable search modes.
Which input starts the Discord search request?
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. Send it as keyword inside params.
Which fields can Discord search return?
Its declared schema includes name, text, member_count, and online_count. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every Discord action return immediately?
Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.