> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/lemmy/user-comments>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/lemmy/user-comments.mdx>

---

# 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?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`.

## Request

- **Endpoint:** `GET /v1/lemmy/user/comments`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by username and sort
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/lemmy/user/comments/get)
- **Platform page:** [/platforms/lemmy](https://www.socialfetch.dev/platforms/lemmy)

## 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.
