Discord

List Discord server index

List Discord server ids and slugs from the public directory.

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

API key (`sfk_...`)

Parameters
2
pageintegerquery

Page number, 1 to 200. Each page returns up to 500 ids and slugs; omit for the first page and pass `page.nextCursor` to continue.

≥ 1 · ≤ 200

cursorstringquery

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

min 1 chars · max 1024 chars

Response fields
17

Endpoint-specific response payload.

datalookupStatus
string

`found` when the index exists; `not_found` when Discord has no index.

one of: found, not_found, restricted

datageneratedAt
stringnullable

When the directory snapshot was generated, ISO 8601 UTC.

Server ids on this page.

dataids[]
stringoptional

The URL slug of each server, aligned with `ids`; the slug carries the name.

dataslugs[]
stringoptional
datatotalIds
integer

How many server ids the directory snapshot held.

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.

datalimitReached
boolean

True when the walk stopped at the page cap while the directory still had ids.

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/index?page=1" \
  -H "x-api-key: YOUR_API_KEY"

Responses

A page of server ids.