Lemmy

Get Lemmy post

Get one Lemmy post with its community, cross-posts and moderators.

GET/v1/lemmy/post
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
instancestringrequiredquery

The Lemmy instance, e.g. `lemmy.world`. A URL on the instance is also accepted. Ids and counts belong to this instance.

idintegeroptionalquery

Post id on the chosen instance, e.g. `53910627`.

≥ 1 · ≤ 2147483647

commentIdintegeroptionalquery

Find the post a comment belongs to.

≥ 1 · ≤ 2147483647

Response fields
177

Endpoint-specific response payload.

datalookupStatus
string

`found`, `not_found` (the entity is missing, or the host name does not resolve), `private` (the instance does not allow public lists) or `not_compatible` (the host is not a Lemmy instance, or its version does not serve this operation). See `reason`.

one of: found, not_found, private, not_compatible

datainstance
string

The instance that was asked.

Why `lookupStatus` is not `found`, or null when it is `found`.

datareasoncode
string

Machine-readable reason.

one of: instance_private, not_a_lemmy_instance, not_available, deleted, host_not_found

datareasonmessage
string

Plain-language explanation.

The post with its cross-posts and moderators when `lookupStatus` is `found`; otherwise null.

datapostid
integer

Post id on this instance.

datapostapId
stringnullable

Canonical ActivityPub id.

dataposttitle
stringnullable

Post title.

dataposturl
stringnullable

Link the post points at; null for a text post.

dataposturlContentType
stringnullable

Content type of the link.

datapostthumbnailUrl
stringnullable

Thumbnail URL.

datapostnsfw
booleannullable

Whether the post is NSFW.

datapostlocked
booleannullable

Whether the post is locked.

datapostremoved
booleannullable

Whether a moderator removed it.

datapostdeleted
booleannullable

Whether it was deleted.

datapostpublishedAt
stringnullable

When it was posted.

datapostupdatedAt
stringnullable

When it last changed.

datapostlanguageId
integernullable

Discussion language id.

datapostisLocal
booleannullable

Whether it was posted on the instance asked.

datapostscore
integernullable

Votes up minus votes down.

datapostupvotes
integernullable

Upvotes.

datapostdownvotes
integernullable

Downvotes.

datapostcommentCount
integernullable

Comments on the post.

The community it was posted in, with the counts the single-post answer carries.

datapostcommunityid
integer

Community id on this instance.

datapostcommunityname
string

Community name without the host.

datapostcommunitytitle
stringnullable

Display title.

datapostcommunityactorId
stringnullable

Canonical ActivityPub id.

datapostcommunityhost
stringnullable

Host the community lives on.

datapostcommunityhandle
stringnullable

`name@host`.

datapostcommunityicon
stringnullable

Community icon URL.

datapostcommunitynsfw
booleannullable

Whether the community is NSFW.

datapostcommunityisLocal
booleannullable

Whether the community lives on the instance asked.

datapostcommunitydescription
stringnullable

Description as Markdown.

datapostcommunitybanner
stringnullable

Banner URL.

datapostcommunitypublishedAt
stringnullable

When the community was created.

datapostcommunityupdatedAt
stringnullable

When the community last changed.

datapostcommunityremoved
booleannullable

Whether a moderator removed the community.

datapostcommunitydeleted
booleannullable

Whether the community was deleted.

datapostcommunityhidden
booleannullable

Whether the community is hidden.

datapostcommunitypostingRestrictedToMods
booleannullable

Whether only moderators may post.

datapostcommunityvisibility
stringnullable

`Public` or another visibility the instance reports.

datapostcommunitysubscriberCount
integernullable

Subscribers.

datapostcommunitylocalSubscriberCount
integernullable

Subscribers on the community's own instance.

datapostcommunitypostCount
integernullable

Posts in the community.

datapostcommunitycommentCount
integernullable

Comments in the community.

Active users in the community.

datapostcommunityactiveUsersday
integernullable

Active users today.

datapostcommunityactiveUsersweek
integernullable

Active users this week.

datapostcommunityactiveUsersmonth
integernullable

Active users this month.

datapostcommunityactiveUsershalfYear
integernullable

Active users in the last six months.

Moderators; null on list rows, which do not carry them.

datapostcommunitymoderators[]id
integer

User id on this instance.

datapostcommunitymoderators[]name
string

Username without the host.

datapostcommunitymoderators[]displayName
stringnullable

Display name.

datapostcommunitymoderators[]bio
stringnullable

Profile text as Markdown.

datapostcommunitymoderators[]avatar
stringnullable

Avatar URL.

datapostcommunitymoderators[]banner
stringnullable

Banner URL.

datapostcommunitymoderators[]actorId
stringnullable

Canonical ActivityPub id.

datapostcommunitymoderators[]host
stringnullable

Host the account lives on.

datapostcommunitymoderators[]handle
stringnullable

`user@host`.

datapostcommunitymoderators[]publishedAt
stringnullable

When the account was created.

datapostcommunitymoderators[]updatedAt
stringnullable

When the profile last changed.

datapostcommunitymoderators[]banned
booleannullable

Whether the account is banned.

datapostcommunitymoderators[]banExpiresAt
stringnullable

When the ban ends.

datapostcommunitymoderators[]deleted
booleannullable

Whether the account was deleted.

datapostcommunitymoderators[]isBot
booleannullable

Whether the account is a bot.

datapostcommunitymoderators[]isLocal
booleannullable

Whether the account lives on the instance asked.

datapostcommunitymoderators[]matrixUserId
stringnullable

Matrix id the user chose to publish.

Discussion language ids; null on rows that do not carry them. The instance endpoint maps ids to language codes.

datapostcommunitylanguageIds[]
integeroptional

Who posted it; null on a modlog row, which does not carry the creator.

datapostauthorid
integer

User id on this instance.

datapostauthorname
string

Username without the host.

datapostauthordisplayName
stringnullable

Display name.

datapostauthorbio
stringnullable

Profile text as Markdown.

datapostauthoravatar
stringnullable

Avatar URL.

datapostauthorbanner
stringnullable

Banner URL.

datapostauthoractorId
stringnullable

Canonical ActivityPub id.

datapostauthorhost
stringnullable

Host the account lives on.

datapostauthorhandle
stringnullable

`user@host`.

datapostauthorpublishedAt
stringnullable

When the account was created.

datapostauthorupdatedAt
stringnullable

When the profile last changed.

datapostauthorbanned
booleannullable

Whether the account is banned.

datapostauthorbanExpiresAt
stringnullable

When the ban ends.

datapostauthordeleted
booleannullable

Whether the account was deleted.

datapostauthorisBot
booleannullable

Whether the account is a bot.

datapostauthorisLocal
booleannullable

Whether the account lives on the instance asked.

datapostauthormatrixUserId
stringnullable

Matrix id the user chose to publish.

datapostbody
stringnullable

Post text as Markdown.

Link preview; null when the instance found none.

datapostembedtitle
stringnullable

Embedded page title.

datapostembeddescription
stringnullable

Embedded page description.

datapostembedvideoUrl
stringnullable

Embedded video URL.

datapostaltText
stringnullable

Alt text for the image.

Image details; null when the post has no image.

datapostimagelink
string

Image URL.

datapostimagewidth
integernullable

Width in pixels.

datapostimageheight
integernullable

Height in pixels.

datapostimagecontentType
stringnullable

Media type.

datapostfeaturedInCommunity
booleannullable

Whether it is featured in its community.

datapostfeaturedOnInstance
booleannullable

Whether it is featured on the instance.

datapostnewestCommentAt
stringnullable

When the newest comment was made.

datapostisAdmin
booleannullable

Whether the author is an instance administrator.

datapostisModerator
booleannullable

Whether the author moderates the community.

datapostbannedFromCommunity
booleannullable

Whether the author is banned from the community.

Posts of the same link in other communities; null on list rows.

datapostcrossPosts[]id
integer

Post id on this instance.

datapostcrossPosts[]apId
stringnullable

Canonical ActivityPub id.

datapostcrossPosts[]title
stringnullable

Post title.

datapostcrossPosts[]url
stringnullable

Link the post points at; null for a text post.

datapostcrossPosts[]urlContentType
stringnullable

Content type of the link.

datapostcrossPosts[]thumbnailUrl
stringnullable

Thumbnail URL.

datapostcrossPosts[]nsfw
booleannullable

Whether the post is NSFW.

datapostcrossPosts[]locked
booleannullable

Whether the post is locked.

datapostcrossPosts[]removed
booleannullable

Whether a moderator removed it.

datapostcrossPosts[]deleted
booleannullable

Whether it was deleted.

datapostcrossPosts[]publishedAt
stringnullable

When it was posted.

datapostcrossPosts[]updatedAt
stringnullable

When it last changed.

datapostcrossPosts[]languageId
integernullable

Discussion language id.

datapostcrossPosts[]isLocal
booleannullable

Whether it was posted on the instance asked.

datapostcrossPosts[]score
integernullable

Votes up minus votes down.

datapostcrossPosts[]upvotes
integernullable

Upvotes.

datapostcrossPosts[]downvotes
integernullable

Downvotes.

datapostcrossPosts[]commentCount
integernullable

Comments on the post.

The community it was posted in.

datapostcrossPosts[]communityid
integer

Community id on this instance.

datapostcrossPosts[]communityname
string

Community name without the host.

datapostcrossPosts[]communitytitle
stringnullable

Display title.

datapostcrossPosts[]communityactorId
stringnullable

Canonical ActivityPub id.

datapostcrossPosts[]communityhost
stringnullable

Host the community lives on.

datapostcrossPosts[]communityhandle
stringnullable

`name@host`.

datapostcrossPosts[]communityicon
stringnullable

Community icon URL.

datapostcrossPosts[]communitynsfw
booleannullable

Whether the community is NSFW.

datapostcrossPosts[]communityisLocal
booleannullable

Whether the community lives on the instance asked.

Who posted it; null on a modlog row, which does not carry the creator.

datapostcrossPosts[]authorid
integer

User id on this instance.

datapostcrossPosts[]authorname
string

Username without the host.

datapostcrossPosts[]authordisplayName
stringnullable

Display name.

datapostcrossPosts[]authorbio
stringnullable

Profile text as Markdown.

datapostcrossPosts[]authoravatar
stringnullable

Avatar URL.

datapostcrossPosts[]authorbanner
stringnullable

Banner URL.

datapostcrossPosts[]authoractorId
stringnullable

Canonical ActivityPub id.

datapostcrossPosts[]authorhost
stringnullable

Host the account lives on.

datapostcrossPosts[]authorhandle
stringnullable

`user@host`.

datapostcrossPosts[]authorpublishedAt
stringnullable

When the account was created.

datapostcrossPosts[]authorupdatedAt
stringnullable

When the profile last changed.

datapostcrossPosts[]authorbanned
booleannullable

Whether the account is banned.

datapostcrossPosts[]authorbanExpiresAt
stringnullable

When the ban ends.

datapostcrossPosts[]authordeleted
booleannullable

Whether the account was deleted.

datapostcrossPosts[]authorisBot
booleannullable

Whether the account is a bot.

datapostcrossPosts[]authorisLocal
booleannullable

Whether the account lives on the instance asked.

datapostcrossPosts[]authormatrixUserId
stringnullable

Matrix id the user chose to publish.

Moderators of the community; null on list rows, which do not carry them.

datapostmoderators[]id
integer

User id on this instance.

datapostmoderators[]name
string

Username without the host.

datapostmoderators[]displayName
stringnullable

Display name.

datapostmoderators[]bio
stringnullable

Profile text as Markdown.

datapostmoderators[]avatar
stringnullable

Avatar URL.

datapostmoderators[]banner
stringnullable

Banner URL.

datapostmoderators[]actorId
stringnullable

Canonical ActivityPub id.

datapostmoderators[]host
stringnullable

Host the account lives on.

datapostmoderators[]handle
stringnullable

`user@host`.

datapostmoderators[]publishedAt
stringnullable

When the account was created.

datapostmoderators[]updatedAt
stringnullable

When the profile last changed.

datapostmoderators[]banned
booleannullable

Whether the account is banned.

datapostmoderators[]banExpiresAt
stringnullable

When the ban ends.

datapostmoderators[]deleted
booleannullable

Whether the account was deleted.

datapostmoderators[]isBot
booleannullable

Whether the account is a bot.

datapostmoderators[]isLocal
booleannullable

Whether the account lives on the instance asked.

datapostmoderators[]matrixUserId
stringnullable

Matrix id the user chose to publish.

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/lemmy/post?instance=lemmy.world&id=53910627" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Post.