If you are an AI agent, LLM, or automated tool, a clean markdown version of this page is available at https://www.socialfetch.dev/docs/api/v1/lemmy/post/get.mdx.
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.
data.lookupStatus
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
data.instance
string
The instance that was asked.
Why `lookupStatus` is not `found`, or null when it is `found`.
data.reason.code
string
Machine-readable reason.
one of: instance_private, not_a_lemmy_instance, not_available, deleted, host_not_found
data.reason.message
string
Plain-language explanation.
The post with its cross-posts and moderators when `lookupStatus` is `found`; otherwise null.
data.post.id
integer
Post id on this instance.
data.post.apId
stringnullable
Canonical ActivityPub id.
data.post.title
stringnullable
Post title.
data.post.url
stringnullable
Link the post points at; null for a text post.
data.post.urlContentType
stringnullable
Content type of the link.
data.post.thumbnailUrl
stringnullable
Thumbnail URL.
data.post.nsfw
booleannullable
Whether the post is NSFW.
data.post.locked
booleannullable
Whether the post is locked.
data.post.removed
booleannullable
Whether a moderator removed it.
data.post.deleted
booleannullable
Whether it was deleted.
data.post.publishedAt
stringnullable
When it was posted.
data.post.updatedAt
stringnullable
When it last changed.
data.post.languageId
integernullable
Discussion language id.
data.post.isLocal
booleannullable
Whether it was posted on the instance asked.
data.post.score
integernullable
Votes up minus votes down.
data.post.upvotes
integernullable
Upvotes.
data.post.downvotes
integernullable
Downvotes.
data.post.commentCount
integernullable
Comments on the post.
The community it was posted in, with the counts the single-post answer carries.
data.post.community.id
integer
Community id on this instance.
data.post.community.name
string
Community name without the host.
data.post.community.title
stringnullable
Display title.
data.post.community.actorId
stringnullable
Canonical ActivityPub id.
data.post.community.host
stringnullable
Host the community lives on.
data.post.community.handle
stringnullable
`name@host`.
data.post.community.icon
stringnullable
Community icon URL.
data.post.community.nsfw
booleannullable
Whether the community is NSFW.
data.post.community.isLocal
booleannullable
Whether the community lives on the instance asked.
data.post.community.description
stringnullable
Description as Markdown.
data.post.community.banner
stringnullable
Banner URL.
data.post.community.publishedAt
stringnullable
When the community was created.
data.post.community.updatedAt
stringnullable
When the community last changed.
data.post.community.removed
booleannullable
Whether a moderator removed the community.
data.post.community.deleted
booleannullable
Whether the community was deleted.
data.post.community.hidden
booleannullable
Whether the community is hidden.
data.post.community.postingRestrictedToMods
booleannullable
Whether only moderators may post.
data.post.community.visibility
stringnullable
`Public` or another visibility the instance reports.
data.post.community.subscriberCount
integernullable
Subscribers.
data.post.community.localSubscriberCount
integernullable
Subscribers on the community's own instance.
data.post.community.postCount
integernullable
Posts in the community.
data.post.community.commentCount
integernullable
Comments in the community.
Active users in the community.
data.post.community.activeUsers.day
integernullable
Active users today.
data.post.community.activeUsers.week
integernullable
Active users this week.
data.post.community.activeUsers.month
integernullable
Active users this month.
data.post.community.activeUsers.halfYear
integernullable
Active users in the last six months.
Moderators; null on list rows, which do not carry them.
data.post.community.moderators[].id
integer
User id on this instance.
data.post.community.moderators[].name
string
Username without the host.
data.post.community.moderators[].displayName
stringnullable
Display name.
data.post.community.moderators[].bio
stringnullable
Profile text as Markdown.
data.post.community.moderators[].avatar
stringnullable
Avatar URL.
data.post.community.moderators[].banner
stringnullable
Banner URL.
data.post.community.moderators[].actorId
stringnullable
Canonical ActivityPub id.
data.post.community.moderators[].host
stringnullable
Host the account lives on.
data.post.community.moderators[].handle
stringnullable
`user@host`.
data.post.community.moderators[].publishedAt
stringnullable
When the account was created.
data.post.community.moderators[].updatedAt
stringnullable
When the profile last changed.
data.post.community.moderators[].banned
booleannullable
Whether the account is banned.
data.post.community.moderators[].banExpiresAt
stringnullable
When the ban ends.
data.post.community.moderators[].deleted
booleannullable
Whether the account was deleted.
data.post.community.moderators[].isBot
booleannullable
Whether the account is a bot.
data.post.community.moderators[].isLocal
booleannullable
Whether the account lives on the instance asked.
data.post.community.moderators[].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.
data.post.community.languageIds[]
integeroptional
Who posted it; null on a modlog row, which does not carry the creator.
data.post.author.id
integer
User id on this instance.
data.post.author.name
string
Username without the host.
data.post.author.displayName
stringnullable
Display name.
data.post.author.bio
stringnullable
Profile text as Markdown.
data.post.author.avatar
stringnullable
Avatar URL.
data.post.author.banner
stringnullable
Banner URL.
data.post.author.actorId
stringnullable
Canonical ActivityPub id.
data.post.author.host
stringnullable
Host the account lives on.
data.post.author.handle
stringnullable
`user@host`.
data.post.author.publishedAt
stringnullable
When the account was created.
data.post.author.updatedAt
stringnullable
When the profile last changed.
data.post.author.banned
booleannullable
Whether the account is banned.
data.post.author.banExpiresAt
stringnullable
When the ban ends.
data.post.author.deleted
booleannullable
Whether the account was deleted.
data.post.author.isBot
booleannullable
Whether the account is a bot.
data.post.author.isLocal
booleannullable
Whether the account lives on the instance asked.
data.post.author.matrixUserId
stringnullable
Matrix id the user chose to publish.
data.post.body
stringnullable
Post text as Markdown.
Link preview; null when the instance found none.
data.post.embed.title
stringnullable
Embedded page title.
data.post.embed.description
stringnullable
Embedded page description.
data.post.embed.videoUrl
stringnullable
Embedded video URL.
data.post.altText
stringnullable
Alt text for the image.
Image details; null when the post has no image.
data.post.image.link
string
Image URL.
data.post.image.width
integernullable
Width in pixels.
data.post.image.height
integernullable
Height in pixels.
data.post.image.contentType
stringnullable
Media type.
data.post.featuredInCommunity
booleannullable
Whether it is featured in its community.
data.post.featuredOnInstance
booleannullable
Whether it is featured on the instance.
data.post.newestCommentAt
stringnullable
When the newest comment was made.
data.post.isAdmin
booleannullable
Whether the author is an instance administrator.
data.post.isModerator
booleannullable
Whether the author moderates the community.
data.post.bannedFromCommunity
booleannullable
Whether the author is banned from the community.
Posts of the same link in other communities; null on list rows.
data.post.crossPosts[].id
integer
Post id on this instance.
data.post.crossPosts[].apId
stringnullable
Canonical ActivityPub id.
data.post.crossPosts[].title
stringnullable
Post title.
data.post.crossPosts[].url
stringnullable
Link the post points at; null for a text post.
data.post.crossPosts[].urlContentType
stringnullable
Content type of the link.
data.post.crossPosts[].thumbnailUrl
stringnullable
Thumbnail URL.
data.post.crossPosts[].nsfw
booleannullable
Whether the post is NSFW.
data.post.crossPosts[].locked
booleannullable
Whether the post is locked.
data.post.crossPosts[].removed
booleannullable
Whether a moderator removed it.
data.post.crossPosts[].deleted
booleannullable
Whether it was deleted.
data.post.crossPosts[].publishedAt
stringnullable
When it was posted.
data.post.crossPosts[].updatedAt
stringnullable
When it last changed.
data.post.crossPosts[].languageId
integernullable
Discussion language id.
data.post.crossPosts[].isLocal
booleannullable
Whether it was posted on the instance asked.
data.post.crossPosts[].score
integernullable
Votes up minus votes down.
data.post.crossPosts[].upvotes
integernullable
Upvotes.
data.post.crossPosts[].downvotes
integernullable
Downvotes.
data.post.crossPosts[].commentCount
integernullable
Comments on the post.
The community it was posted in.
data.post.crossPosts[].community.id
integer
Community id on this instance.
data.post.crossPosts[].community.name
string
Community name without the host.
data.post.crossPosts[].community.title
stringnullable
Display title.
data.post.crossPosts[].community.actorId
stringnullable
Canonical ActivityPub id.
data.post.crossPosts[].community.host
stringnullable
Host the community lives on.
data.post.crossPosts[].community.handle
stringnullable
`name@host`.
data.post.crossPosts[].community.icon
stringnullable
Community icon URL.
data.post.crossPosts[].community.nsfw
booleannullable
Whether the community is NSFW.
data.post.crossPosts[].community.isLocal
booleannullable
Whether the community lives on the instance asked.
Who posted it; null on a modlog row, which does not carry the creator.
data.post.crossPosts[].author.id
integer
User id on this instance.
data.post.crossPosts[].author.name
string
Username without the host.
data.post.crossPosts[].author.displayName
stringnullable
Display name.
data.post.crossPosts[].author.bio
stringnullable
Profile text as Markdown.
data.post.crossPosts[].author.avatar
stringnullable
Avatar URL.
data.post.crossPosts[].author.banner
stringnullable
Banner URL.
data.post.crossPosts[].author.actorId
stringnullable
Canonical ActivityPub id.
data.post.crossPosts[].author.host
stringnullable
Host the account lives on.
data.post.crossPosts[].author.handle
stringnullable
`user@host`.
data.post.crossPosts[].author.publishedAt
stringnullable
When the account was created.
data.post.crossPosts[].author.updatedAt
stringnullable
When the profile last changed.
data.post.crossPosts[].author.banned
booleannullable
Whether the account is banned.
data.post.crossPosts[].author.banExpiresAt
stringnullable
When the ban ends.
data.post.crossPosts[].author.deleted
booleannullable
Whether the account was deleted.
data.post.crossPosts[].author.isBot
booleannullable
Whether the account is a bot.
data.post.crossPosts[].author.isLocal
booleannullable
Whether the account lives on the instance asked.
data.post.crossPosts[].author.matrixUserId
stringnullable
Matrix id the user chose to publish.
Moderators of the community; null on list rows, which do not carry them.
data.post.moderators[].id
integer
User id on this instance.
data.post.moderators[].name
string
Username without the host.
data.post.moderators[].displayName
stringnullable
Display name.
data.post.moderators[].bio
stringnullable
Profile text as Markdown.
data.post.moderators[].avatar
stringnullable
Avatar URL.
data.post.moderators[].banner
stringnullable
Banner URL.
data.post.moderators[].actorId
stringnullable
Canonical ActivityPub id.
data.post.moderators[].host
stringnullable
Host the account lives on.
data.post.moderators[].handle
stringnullable
`user@host`.
data.post.moderators[].publishedAt
stringnullable
When the account was created.
data.post.moderators[].updatedAt
stringnullable
When the profile last changed.
data.post.moderators[].banned
booleannullable
Whether the account is banned.
data.post.moderators[].banExpiresAt
stringnullable
When the ban ends.
data.post.moderators[].deleted
booleannullable
Whether the account was deleted.
data.post.moderators[].isBot
booleannullable
Whether the account is a bot.
data.post.moderators[].isLocal
booleannullable
Whether the account lives on the instance asked.
data.post.moderators[].matrixUserId
stringnullable
Matrix id the user chose to publish.
Metadata describing the request and billing outcome.
meta.requestId
string
Unique request identifier for tracing this API call.