Public access returns basic profile data. Moderators see extended detail with redacted subscription fields. Admins and above see full detail including subscription history.
Public API key (required for unauthenticated access).
Response
Public (unauthenticated or insufficient permissions)
Command prefix for this guild.
Discord ID of the guild owner.
Guild state. 0 = Active, 1 = Inactive, 2 = Banned.
When the guild was created (UTC).
When the guild was last updated (UTC).
Elevated (moderator+ with hierarchy access)
All public fields plus:
Subscription tier. 0 = Basic, 1 = Trial, 2 = Premium, 3 = Lifetime. Redacted to 0 for moderators.
Subscription expiry (admin+ only, null for moderators).
Sponsor Discord ID (admin+ only, null for moderators).
Whether guild has an active blacklist.
Subscription tier change history (admin+ only, empty for moderators).
cURL (public)
cURL (authenticated)
curl https://hapi.7331.org/v1/guilds/987654321098765432 \
-H "X-API-Key: $API_KEY "
200 (public)
200 (elevated)
{
"discord_id" : "987654321098765432" ,
"name" : "Example Server" ,
"avatar_url" : "https://cdn.discordapp.com/icons/987654321098765432/abc.png" ,
"member_count" : 150 ,
"prefix" : "!" ,
"owner_discord_id" : "123456789012345678" ,
"state" : 0 ,
"source" : "database" ,
"created_at" : "2025-01-01T00:00:00Z" ,
"updated_at" : "2025-01-15T12:00:00Z"
}