# Discord Search API (discord.search)

- Canonical page: [https://everyinfra.com/en/discord-api/search](https://everyinfra.com/en/discord-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "discord", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=discord&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 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 | 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. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| member_count | platform-native meaning |
| online_count | platform-native meaning |
| boost_count | platform-native meaning |
| vanity_url_code | platform-native meaning |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| categories | platform-native meaning |
| keywords | platform-native meaning |
| icon_url | platform-native meaning |
| banner_url | platform-native meaning |
| verification_level | platform-native meaning |
| is_nsfw | platform-native meaning |
| created_at | Creation time, same format as posted_at. |
| directory_url | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
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",
  "params": {
    "keyword": "game development"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "discord",
        "action": "search",
        "params": {
            "keyword": "game development",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "discord",
  "action": "search",
  "results": [
    {
      "id": "•••",
      "name": "Krunker Bunker",
      "url": "https://discord.gg/krunker",
      "text": "The official Krunker.io Discord server! Your hub for game development, trading, giveaways, and chatting!",
      "member_count": 192954,
      "online_count": 6754,
      "boost_count": 21,
      "language": "en-US",
      "categories": [
        "LFG"
      ],
      "keywords": [
        "Game",
        "Gaming",
        "Krunker"
      ],
      "icon_url": "https://cdn.discordapp.com/icons/448194623580667916/307504ce3821a7b6ffd605b21dc996a8.png?size=256.webp?size=256",
      "banner_url": "https://cdn.discordapp.com/banners/448194623580667916/b77e42c8e9069afa2fbdcee16a23adfc.webp?size=480",
      "verification_level": "COMMUNITY, DISCOVERABLE, VERIFIED",
      "directory_url": "https://discord.com/servers/krunker-bunker-448194623580667916",
      "platform": "discord"
    },
    {
      "id": "•••",
      "name": "InfinitySports",
      "url": "https://discord.gg/infinitysports",
      "text": "Official discord server for the ROBLOX game development studio InfinitySports",
      "member_count": 156670,
      "online_count": 17822,
      "boost_count": 102,
      "language": "en-US",
      "categories": [
        "Esports"
      ],
      "keywords": [
        "basketball",
        "football",
        "hockey"
      ],
      "icon_url": "https://cdn.discordapp.com/icons/1102970117853282374/ddccd7682a0870316aa7c477b00fb259.png?size=256.webp?size=256",
      "banner_url": "https://cdn.discordapp.com/banners/1102970117853282374/d42d8db7fa0b142d5c23c3f0ff56eb2a.webp?size=480",
      "verification_level": "COMMUNITY, DISCOVERABLE",
      "directory_url": "https://discord.com/servers/infinitysports-1102970117853282374",
      "platform": "discord"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=discord
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
