Discord

Search Discord servers

Search the public Discord server directory by relevance, with an optional category filter.

GET/v1/discord/servers/search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
querystringrequiredquery

Words to search the public server directory for. Case-insensitive; whole-word and prefix matching.

min 1 chars · max 200 chars

categorystringoptionalquery

Directory category: `gaming`, `music`, `entertainment`, `science-tech` or `education`.

one of: gaming, music, entertainment, science-tech, education

pageintegeroptionalquery

Page number, 1 to 6. Each page returns up to 12 servers; omit for the first page and pass `page.nextCursor` to continue.

≥ 1 · ≤ 6

cursorstringoptionalquery

Cursor from `page.nextCursor` of the previous response. It only works with the same filters.

min 1 chars · max 1024 chars

Response fields
51

Endpoint-specific response payload.

datalookupStatus
string

`found` for a page of search results, including an empty page.

one of: found, not_found, restricted

dataquery
string

The query that was searched.

datacategory
stringnullable

The category filter; null when searching the whole directory.

one of: gaming, music, entertainment, science-tech, education, null

The servers on this page.

dataresults[]id
string

Server id.

dataresults[]name
string

Server name.

dataresults[]description
stringnullable

Short description.

dataresults[]iconUrl
stringnullable

Server icon URL.

dataresults[]splashUrl
stringnullable

Invite splash URL.

dataresults[]discoverySplashUrl
stringnullable

Discovery splash URL.

dataresults[]bannerUrl
stringnullable

Banner URL.

dataresults[]members
integernullable

Indexed member count.

dataresults[]online
integernullable

Indexed online count.

dataresults[]countsAsOf
string

Always `index` for directory rows.

one of: live, index

Boost count; browse rows only.

dataresults[]boostscount
integernullable

Boost count.

dataresults[]locale
stringnullable

Preferred locale.

dataresults[]verificationLevel
stringnullable

Verification level; not present on directory rows.

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

dataresults[]ageRestricted
booleannullable

Age restriction; not present on directory rows.

dataresults[]nsfwLevel
integernullable

NSFW level; not present on directory rows.

dataresults[]vanityCode
stringnullable

Vanity invite code; browse rows only.

Search keywords; browse rows only.

dataresults[]keywords[]
stringoptional

Feature flags, passed through.

dataresults[]features[]
stringoptional

Categories; browse rows only.

dataresults[]categories[]id
integer

Category id.

dataresults[]categories[]name
stringnullable

Category name; null when unknown.

dataresults[]categories[]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.

dataresults[]categories[]nameLocalizations
objectnullable

Localised category names, keyed by locale, passed through.

Primary category; browse rows only.

dataresults[]primaryCategoryid
integer

Category id.

dataresults[]primaryCategoryname
stringnullable

Category name; null when unknown.

dataresults[]primaryCategoryisPrimary
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.

dataresults[]primaryCategorynameLocalizations
objectnullable

Localised category names, keyed by locale, passed through.

dataresults[]verified
booleannullable

Verified flag. Search rows carry it directly; browse rows derive it from the `VERIFIED` feature.

dataresults[]partnered
booleannullable

Partnered flag. Search rows carry it directly; browse rows derive it from the `PARTNERED` feature.

dataresults[]autoRemoved
booleannullable

Whether the row is marked auto-removed; browse only.

dataresults[]isPublished
booleannullable

Whether the row is published; browse only.

dataresults[]shape
string

Which directory result shape this row came from.

one of: browse, search

Pagination state for the current page. A list that reorders between requests can repeat rows on numbered pages; follow `page.nextCursor` to continue from the previous page's position.

datapagepage
integer

The page this response is.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor for the next page; null on the last page.

datareachableSoFar
integer

How many rows this walk has reached, counting this page. It is not a reported total.

datalimitReached
boolean

True when the walk stopped at the sixth page while Discord reported more results than those pages hold.

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/servers/search?query=python" \
  -H "x-api-key: YOUR_API_KEY"

Responses

A page of server search results.