Badges for Discord servers — online count, member count, and more.
Display live Discord server stats using the widget API or invite API.
| Badge | Endpoint | Description |
|---|---|---|
| Online Count | /discord/{serverId} | Live online members via widget API |
| Members | /discord/members/{inviteCode} | Total member count via invite API |
| Online Members | /discord/online-members/{inviteCode} | Online members via invite API |
with_counts=trueNo API key required. Cached 1 hour.
Use these sections when you need the exact URL shape or a focused example for a specific badge type.
This section covers the discord/members badge endpoint.
Show the approximate total member count using a public invite code.
Path Parameters
Public invite code (not the full URL).
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/discord/members/reactiflux.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/discord/members/reactiflux.svg?mode=light"></picture>
/discord/members/{inviteCode}.svgDefault — total member count via invite code
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/discord/members/reactiflux.svg?mode=dark"><img alt="discord members" src="https://shieldcn.dev/discord/members/reactiflux.svg?mode=light"></picture>Branded — Discord blurple background
discord.gg/ — e.g., reactiflux from https://discord.gg/reactifluxThis section covers the discord/online-members badge endpoint.
Show the approximate online member count using a public invite code.
Path Parameters
Public invite code (not the full URL).
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/discord/online-members/reactiflux.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/discord/online-members/reactiflux.svg?mode=light"></picture>
/discord/online-members/{inviteCode}.svgDefault — approximate online count via invite
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/discord/online-members/reactiflux.svg?mode=dark"><img alt="discord online members" src="https://shieldcn.dev/discord/online-members/reactiflux.svg?mode=light"></picture>Branded — Discord blurple background
| Method | Endpoint | Pros | Cons |
|---|---|---|---|
| Widget API | /discord/{serverId} | Exact count | Requires widget enabled |
| Invite API | /discord/online-members/{inviteCode} | No server config needed | Approximate count |
This section covers the discord/online badge endpoint.
Show how many members are currently online using the Discord widget API.
Path Parameters
Server must have widget enabled in Server Settings → Widget.
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/discord/1316199667142496307.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/discord/1316199667142496307.svg?mode=light"></picture>
/discord/{serverId}.svgBranded — Discord blurple background
The server must have the widget enabled: