Get Discord server widget
Get a Discord server's public widget with its online count, voice channels and invite.
Headers
Get your API keyAPI key (`sfk_...`)
Server id, 17 to 20 digits and at most 9223372036854775807, e.g. `267624335836053506`. A server whose owner disabled the widget returns `lookupStatus: restricted`.
pattern: ^[0-9]{17,20}$
Endpoint-specific response payload.
`restricted` when the server exists but its widget is switched off; `not_found` when no server has the id.
one of: found, not_found, restricted
The server, when the widget names it.
Server id.
Server name.
The exact online count, not capped at the member sample.
The temporary invite the widget shows.
The temporary invite code.
The invite URL.
The widget invite is temporary; its code expires within hours, not never.
Public voice channels.
Channel id.
Channel name.
Channel position.
Number of online members in the sample (at most 100). The members themselves are not returned.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/discord/servers/267624335836053506/widget" \
-H "x-api-key: YOUR_API_KEY"Responses
Server widget.