Discord

Get Discord announcement

Get one public Discord announcement post by channel and message id.

GET/v1/discord/announcement-channels/{channelId}/posts/{messageId}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
channelIdstringrequiredpath

Channel id, 1 to 20 digits and at most 9223372036854775807, e.g. `267631170882240512`.

pattern: ^[0-9]{1,20}$

messageIdstringrequiredpath

Message id, 1 to 20 digits and at most 9223372036854775807, e.g. `267624335836053506`.

pattern: ^[0-9]{1,20}$

Response fields
38

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the channel id is not a public announcement channel or the message is not one of its public posts.

one of: found, not_found, restricted

datachannelId
string

The channel the post belongs to.

The server the channel belongs to.

dataserverid
string

Server id.

dataservername
string

Server name.

dataserverdescription
stringnullable

Server description.

dataservericonUrl
stringnullable

Server icon URL.

dataserversplashUrl
stringnullable

Discovery splash URL.

dataserverbannerUrl
stringnullable

Server banner URL.

dataserverinviteCode
stringnullable

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

dataservermembers
integernullable

Indexed member count.

dataserveronline
integernullable

Indexed online count.

The announcement channel.

datachannelid
string

Channel id.

datachannelname
stringnullable

Channel name.

datachanneltopic
stringnullable

Channel topic.

The post when found; otherwise null.

datapostid
string

Message id.

dataposttext
string

The message text.

datapostpostedAt
stringnullable

When it was posted, ISO 8601 UTC.

dataposteditedAt
stringnullable

When it was edited, ISO 8601 UTC; null when never edited.

Files attached to the post.

datapostattachments[]url
string

The attachment URL. Its signed query parameters expire, so the link is time-limited.

datapostattachments[]mediaUrl
stringnullableoptional

A second URL for the attachment on Discord's media host, when present.

datapostattachments[]contentType
stringnullable

MIME type, when given.

datapostattachments[]width
integernullable

Width in pixels, when given.

datapostattachments[]height
integernullable

Height in pixels, when given.

datapostattachments[]description
stringnullable

Alt text, when present.

Reactions on the post.

datapostreactions[]emojiId
stringnullable

Custom emoji id, or null.

datapostreactions[]emojiName
stringnullable

Emoji name, or null.

datapostreactions[]animated
booleannullable

Whether the emoji is animated.

datapostreactions[]count
integer

How many people reacted.

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/announcement-channels/538844350856298526/posts/1565380934721605652" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Announcement post.