Lemmy

Get Lemmy comment

Get one Lemmy comment with its post, community, creator and moderation flags.

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

API key (`sfk_...`)

Parameters
2
instancestringrequiredquery

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

idintegerrequiredquery

Comment id on the chosen instance, e.g. `1000`.

≥ 1 · ≤ 2147483647

Response fields
107

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 comment, including removed and deleted rows with their flags, when `lookupStatus` is `found`; otherwise null.

datacommentid
integer

Comment id on this instance.

datacommentapId
stringnullable

Canonical ActivityPub id.

datacommentcontent
stringnullable

Comment text as Markdown; empty when a moderator removed it or its author deleted it.

datacommentpostId
integernullable

The post it belongs to.

datacommentpath
stringnullable

The dotted ancestor chain, from the root post (`0.1234.5678`).

datacommentdepth
integernullable

Depth in the tree, from `path`.

datacommentparentId
integernullable

The comment it replies to; null for a top-level comment.

datacommentdistinguished
booleannullable

Whether a moderator marked it as a moderator comment.

datacommentlanguageId
integernullable

Discussion language id.

datacommentisLocal
booleannullable

Whether it was written on the instance asked.

datacommentremoved
booleannullable

Whether a moderator removed it.

datacommentdeleted
booleannullable

Whether its author deleted it.

datacommentpublishedAt
stringnullable

When it was written.

datacommentupdatedAt
stringnullable

When it last changed.

datacommentscore
integernullable

Votes up minus votes down.

datacommentupvotes
integernullable

Upvotes.

datacommentdownvotes
integernullable

Downvotes.

datacommentreplyCount
integernullable

Direct replies.

datacommentisAdmin
booleannullable

Whether the author is an instance administrator.

datacommentisModerator
booleannullable

Whether the author moderates the community.

datacommentbannedFromCommunity
booleannullable

Whether the author is banned from the community.

The post it belongs to.

datacommentpostid
integer

Post id on this instance.

datacommentpostapId
stringnullable

Canonical ActivityPub id.

datacommentposttitle
stringnullable

Post title.

datacommentposturl
stringnullable

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

datacommentposturlContentType
stringnullable

Content type of the link.

datacommentpostthumbnailUrl
stringnullable

Thumbnail URL.

datacommentpostnsfw
booleannullable

Whether the post is NSFW.

datacommentpostlocked
booleannullable

Whether the post is locked.

datacommentpostremoved
booleannullable

Whether a moderator removed it.

datacommentpostdeleted
booleannullable

Whether it was deleted.

datacommentpostpublishedAt
stringnullable

When it was posted.

datacommentpostupdatedAt
stringnullable

When it last changed.

datacommentpostlanguageId
integernullable

Discussion language id.

datacommentpostisLocal
booleannullable

Whether it was posted on the instance asked.

datacommentpostscore
integernullable

Votes up minus votes down.

datacommentpostupvotes
integernullable

Upvotes.

datacommentpostdownvotes
integernullable

Downvotes.

datacommentpostcommentCount
integernullable

Comments on the post.

The community it was posted in.

datacommentpostcommunityid
integer

Community id on this instance.

datacommentpostcommunityname
string

Community name without the host.

datacommentpostcommunitytitle
stringnullable

Display title.

datacommentpostcommunityactorId
stringnullable

Canonical ActivityPub id.

datacommentpostcommunityhost
stringnullable

Host the community lives on.

datacommentpostcommunityhandle
stringnullable

`name@host`.

datacommentpostcommunityicon
stringnullable

Community icon URL.

datacommentpostcommunitynsfw
booleannullable

Whether the community is NSFW.

datacommentpostcommunityisLocal
booleannullable

Whether the community lives on the instance asked.

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

datacommentpostauthorid
integer

User id on this instance.

datacommentpostauthorname
string

Username without the host.

datacommentpostauthordisplayName
stringnullable

Display name.

datacommentpostauthorbio
stringnullable

Profile text as Markdown.

datacommentpostauthoravatar
stringnullable

Avatar URL.

datacommentpostauthorbanner
stringnullable

Banner URL.

datacommentpostauthoractorId
stringnullable

Canonical ActivityPub id.

datacommentpostauthorhost
stringnullable

Host the account lives on.

datacommentpostauthorhandle
stringnullable

`user@host`.

datacommentpostauthorpublishedAt
stringnullable

When the account was created.

datacommentpostauthorupdatedAt
stringnullable

When the profile last changed.

datacommentpostauthorbanned
booleannullable

Whether the account is banned.

datacommentpostauthorbanExpiresAt
stringnullable

When the ban ends.

datacommentpostauthordeleted
booleannullable

Whether the account was deleted.

datacommentpostauthorisBot
booleannullable

Whether the account is a bot.

datacommentpostauthorisLocal
booleannullable

Whether the account lives on the instance asked.

datacommentpostauthormatrixUserId
stringnullable

Matrix id the user chose to publish.

The community of the post.

datacommentcommunityid
integer

Community id on this instance.

datacommentcommunityname
string

Community name without the host.

datacommentcommunitytitle
stringnullable

Display title.

datacommentcommunityactorId
stringnullable

Canonical ActivityPub id.

datacommentcommunityhost
stringnullable

Host the community lives on.

datacommentcommunityhandle
stringnullable

`name@host`.

datacommentcommunityicon
stringnullable

Community icon URL.

datacommentcommunitynsfw
booleannullable

Whether the community is NSFW.

datacommentcommunityisLocal
booleannullable

Whether the community lives on the instance asked.

Who wrote it.

datacommentauthorid
integer

User id on this instance.

datacommentauthorname
string

Username without the host.

datacommentauthordisplayName
stringnullable

Display name.

datacommentauthorbio
stringnullable

Profile text as Markdown.

datacommentauthoravatar
stringnullable

Avatar URL.

datacommentauthorbanner
stringnullable

Banner URL.

datacommentauthoractorId
stringnullable

Canonical ActivityPub id.

datacommentauthorhost
stringnullable

Host the account lives on.

datacommentauthorhandle
stringnullable

`user@host`.

datacommentauthorpublishedAt
stringnullable

When the account was created.

datacommentauthorupdatedAt
stringnullable

When the profile last changed.

datacommentauthorbanned
booleannullable

Whether the account is banned.

datacommentauthorbanExpiresAt
stringnullable

When the ban ends.

datacommentauthordeleted
booleannullable

Whether the account was deleted.

datacommentauthorisBot
booleannullable

Whether the account is a bot.

datacommentauthorisLocal
booleannullable

Whether the account lives on the instance asked.

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

Responses

Comment.