Discord Online Members
Display the online member count for a Discord server via invite.
Show the approximate online member count using a public invite code.
GET/discord/online-members/:inviteCode.svg
Path Parameters
required
Public invite code (not the full URL).

URL format
/discord/online-members/{inviteCode}.svg
Examples



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 |
Data source
Uses the Discord Invite API with with_counts=true. No API key required. Cached 1 hour.