Discord
Badges for Discord servers — online count, member count, and more.
Display live Discord server stats using the widget API or invite API.
Available badges
| 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 |
Quick examples
Data sources
- Widget API — Requires server widget enabled in Server Settings → Widget
- Invite API — Uses public invite codes with
with_counts=true
No API key required. Cached 1 hour.
Endpoint details
Use these sections when you need the exact URL shape or a focused example for a specific badge type.
Discord Members
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).


URL format
/discord/members/{inviteCode}.svgExamples
Copy-paste examples
Default — total member count via invite code
Branded — Discord blurple background
How to get an invite code
- Create or find a permanent invite link for your server
- The invite code is the part after
discord.gg/— e.g.,reactifluxfromhttps://discord.gg/reactiflux
Discord Online Members
This 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).


URL format
/discord/online-members/{inviteCode}.svgExamples
Copy-paste examples
Default — approximate online count via invite
Branded — Discord blurple background
When to use this vs widget API
| 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 |
Discord Online 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.


URL format
/discord/{serverId}.svgExamples
Copy-paste examples
Branded — Discord blurple background
How to find your server ID
- Enable Developer Mode in Discord (User Settings → Advanced → Developer Mode)
- Right-click your server name and click "Copy Server ID"
Requirements
The server must have the widget enabled:
- Go to Server Settings → Widget
- Enable "Enable Server Widget"