Lemmy hub

Lemmy User Comments API

One user's comments by time or a time-window top, with the post and community each one belongs to.

GET /v1/lemmy/user/comments

1 credit Failed requests are free

About this endpoint

GET /v1/lemmy/user/comments?instance=lemmy.world&username=Rooki&sort=New returns data.user as a profile reference, data.comments as comment rows and data.page. Each comment carries id, content, postId, path, depth, parentId, publishedAt, score, upvotes, downvotes, replyCount, plus its post, community and author.

This route returns the user's comments only; use the user posts route for their posts. Sorts are New, Old and the time-window tops. A removed or deleted comment keeps its flags and may have empty content.

Lemmy User Comments API FAQ

Does this include the posts?

No. This route returns only the user's comments. Use the user posts route for their posts.

Can I read a deleted user's comments?

If the instance still serves them, yes; deleted rows keep their deleted flag and may have empty content. A missing user returns lookupStatus: not_found.

How do I page through a user's comments?

Follow page.nextCursor with the same username and sort while page.hasMore is true. The cursor only works with those filters.

How many credits does a user comments page cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.