Discord

Get Discord invite

Get a Discord invite's live member and online counts, the server behind it, its boosts, tag, traits and games.

GET/v1/discord/invites/{code}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
codestringrequiredpath

Invite code (a vanity code or a temporary code), 2 to 32 letters, digits, underscores or hyphens. Vanity codes are case-insensitive; temporary codes are case-sensitive.

pattern: ^[A-Za-z0-9_-]{2,32}$

Response fields
84

Endpoint-specific response payload.

datalookupStatus
string

`not_found` for an unknown, expired or malformed code; `reason` uses the same `unknown_or_expired` value for all of them.

one of: found, not_found, restricted

datareason
stringnullable

Why the invite was not returned; null when found.

one of: unknown_or_expired, not_found, null

The invite when `lookupStatus` is `found`.

datainvitecode
string

The invite code.

datainvitetype
string

Invite kind: `guild` for a server invite; `group_dm`, `friend` and `unknown` cover the rest.

one of: guild, group_dm, friend, unknown

datainviteexpiresAt
stringnullable

When a temporary invite expires, ISO 8601 UTC; null for a permanent one.

The channel the invite lands in.

datainvitechannelid
string

Channel id.

datainvitechannelname
stringnullable

Channel name.

datainvitechanneltype
string

Channel kind: `text`, `announcement`, or `unknown` for any other kind.

one of: text, announcement, unknown

datainvitechanneltypeId
integernullable

Discord's channel type.

The server behind the invite when it was found.

dataserverid
string

Server id.

dataservername
string

Server name.

dataserverdescription
stringnullable

Short description shown in the directory.

dataservericonUrl
stringnullable

Server icon URL.

dataserversplashUrl
stringnullable

Invite splash URL.

dataserverdiscoverySplashUrl
stringnullable

Discovery splash URL.

dataserverbannerUrl
stringnullable

Banner URL.

dataservercustomBannerUrl
stringnullable

Custom invite banner URL, when a working image path is known.

dataservercustomBannerHash
stringnullable

The custom invite banner hash. No image URL is available for it.

dataservermembers
integernullable

Member count; live on an invite, indexed elsewhere.

dataserveronline
integernullable

Online member count; live on an invite, indexed elsewhere.

dataservercountsAsOf
stringnullable

Whether `members` and `online` are live or indexed.

one of: live, index, null

Boost count and tier, when present.

dataserverboostscount
integernullable

Boost count.

dataserverbooststier
integernullable

Boost tier.

dataserverlocale
stringnullable

The server's preferred locale, e.g. `en-US`.

dataserververificationLevel
stringnullable

The server's verification level.

one of: none, low, medium, high, very_high, unknown, null

dataserverageRestricted
booleannullable

Whether the server is age-restricted.

dataservernsfwLevel
integernullable

Discord's NSFW level value.

dataservervanityCode
stringnullable

The server's vanity invite code, when it has one.

dataservertag
stringnullable

The server tag shown on the invite card.

The server tag's badge, when it has one.

dataservertagBadgeid
integernullable

Discord's badge id.

dataservertagBadgehash
stringnullable

Badge image hash.

dataservertagBadgeurl
stringnullable

Badge image URL.

Badge colours as hex strings.

dataservertagBadgecolorsprimary
stringnullable

Primary badge colour.

dataservertagBadgecolorssecondary
stringnullable

Secondary badge colour.

dataserverbrandColor
stringnullable

The invite card's brand colour.

Labels the server shows on its invite card.

dataservertraits[]label
string

The trait label.

dataservertraits[]emojiName
stringnullable

Emoji name shown with the trait, or null.

dataservertraits[]emojiId
stringnullable

Custom emoji id shown with the trait, or null.

dataservertraits[]emojiAnimated
booleannullable

Whether the custom emoji is animated; null when absent.

Games the invite card shows for this server.

dataservergames[]applicationId
string

The game's application id.

dataservergames[]activityLevel
integernullable

How active the game is on the server, as Discord ranks it.

dataservergames[]activityScore
numbernullable

Discord's activity score for the game on the server.

The server's feature flags, passed through.

dataserverfeatures[]
stringoptional

Feature flags from the invite card's profile block, when present.

dataserverprofileFeatures[]
stringoptional
dataserverprofileVisibility
integernullable

The invite card profile visibility value, when given.

dataserverflags
integernullable

The invite's public flags value, when given.

dataservernsfwProperties
objectnullable

The server's age-gate properties, passed through.

Search keywords listed for the server.

dataserverkeywords[]
stringoptional

Directory categories the server belongs to.

dataservercategories[]id
integer

Category id.

dataservercategories[]name
stringnullable

Category name; null when unknown.

dataservercategories[]isPrimary
booleannullable

True on `primaryCategory`, which is primary by definition. On a list entry, whether it is the server's primary category, or null when the page names no primary.

dataservercategories[]nameLocalizations
objectnullable

Localised category names, keyed by locale, passed through.

The server's primary directory category.

dataserverprimaryCategoryid
integer

Category id.

dataserverprimaryCategoryname
stringnullable

Category name; null when unknown.

dataserverprimaryCategoryisPrimary
booleannullable

True on `primaryCategory`, which is primary by definition. On a list entry, whether it is the server's primary category, or null when the page names no primary.

dataserverprimaryCategorynameLocalizations
objectnullable

Localised category names, keyed by locale, passed through.

dataservercreatedAt
stringnullable

When the server was created, ISO 8601 UTC.

Reasons to join that the server lists.

dataserverreasonsToJoin[]text
string

The reason text.

dataserverreasonsToJoin[]emojiName
stringnullable

Emoji name, or null.

dataserverreasonsToJoin[]emojiId
stringnullable

Custom emoji id, or null.

Social links the server lists.

dataserversocialLinks[]
stringoptional
dataserverabout
stringnullable

The server's long about text.

Directory category ids the server lists.

dataservercategoryIds[]
integeroptional

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/discord/invites/python" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Invite.