List Stack Overflow user comments
List the comments a Stack Overflow user has written, by time or votes.
Headers
Get your API keyAPI key (`sfk_...`)
User id on the chosen site, e.g. `22656`. `-1` is the Community user.
≥ -1 · ≤ 2147483647
Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all.
Order: `creation` (default) or `votes`. `creation` pages without a ceiling; `votes` stops at the list ceiling. Rows with equal scores can repeat or skip.
one of: creation, votes
Direction of the sort: `desc` (default) or `asc`.
one of: desc, asc
Up to this many rows per page, 1 to 100. Default: 30. A page can hold fewer than `limit` rows where rows share a creation second or a block of 100 rows ends. Follow `page.nextCursor` until `hasMore` is false.
≥ 1 · ≤ 100
Cursor from `page.nextCursor` of the previous response. It only works with the same filters.
min 1 chars · max 1024 chars
Endpoint-specific response payload.
`not_found` when no user has this id on the site. A user with no comments is `found` with an empty list.
one of: found, not_found
The Stack Exchange site the comments belong to.
The user the comments belong to.
The comments on this page.
Comment id.
The question or answer the comment is on.
Whether the comment is on a question or an answer; null when not known.
one of: question, answer, null
Link to the comment.
Upvotes the comment received.
Whether the comment was edited. The flag comes from the route that returned the comment, so the same comment can differ between routes.
When it was written, ISO 8601 UTC.
Who wrote it.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
The user the comment is addressed to, when it is a reply. Null when the comment is not a reply; on the comments-by-post routes it is always null because those routes do not carry reply targets.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
Whether the comment's author wrote the post it is on; null on lists that do not carry it.
Content licence, e.g. `CC BY-SA 4.0`.
Comment text as HTML.
Comment text as Markdown; null on lists that do not carry it.
Pagination state for the current page.
Whether another page is available.
Cursor for the next page; null on the last page.
True when the list stopped at the site's 25-page ceiling (2,500 rows, or 625 when the page carries text), or when a user's answer or comment list is too large for page-offset paging and has served its first 100 rows (25 when it carries text). Sort by `creation` to page deeper. False for every list that ends because it ran out.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/stack-overflow/users/22656/comments" \
-H "x-api-key: YOUR_API_KEY"Responses
Comment listing.