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).

![badge](https://shieldcn.dev/discord/online-members/reactiflux.svg)
badge preview

URL format

/discord/online-members/{inviteCode}.svg

Examples

![online](https://shieldcn.dev/discord/online-members/reactiflux.svg)
![online](https://shieldcn.dev/discord/online-members/reactiflux.svg?variant=branded)
![online](https://shieldcn.dev/discord/online-members/typescript.svg?theme=green)

When to use this vs widget API

MethodEndpointProsCons
Widget API/discord/{serverId}Exact countRequires widget enabled
Invite API/discord/online-members/{inviteCode}No server config neededApproximate count

Data source

Uses the Discord Invite API with with_counts=true. No API key required. Cached 1 hour.