Fetches a paginated list of comments filtered by entity ID, user ID, or parent comment ID. Supports optional sorting by newest, oldest, top (most upvoted), or most controversial. Replies, direct comments, and user-authored comments can all be queried. Optionally includes associated entity data.
Query Parameters
ID of the entity to fetch comments for
ID of the user to fetch their comments
ID of the parent comment to fetch its replies
Sorting method: new (default), old, top, controversial
Page number for pagination
Number of results per page (max: 100)
If true, includes related entity data in each comment
At least one of entityId, userId, or parentId must be provided.
Response
Returns an array of comment objects.
Unique comment identifier
ID of the entity this comment belongs to
ID of the user who created the comment
Array of user IDs who upvoted
Array of user IDs who downvoted
Attached files or resources
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Error Responses
Invalid Query - 400 Bad Request
{
"error" : "Invalid request data" ,
"code" : "comment/invalid-request"
}
Invalid Limit - 400 Bad Request
{
"error" : "Invalid request: limit must be a positive number." ,
"code" : "comment/invalid-limit"
}
Invalid Page - 400 Bad Request
{
"error" : "Invalid request: page must be a whole number greater than 0." ,
"code" : "comment/invalid-page"
}
Server Error - 500 Internal Server Error
{
"error" : "Internal server error." ,
"code" : "comment/server-error" ,
"details" : "[error message]"
}
Notes
Filtering
One of entityId, userId, or parentId must be specified.
Querying does not require authentication.
Sorting Modes
new : Most recent comments first (default)
old : Oldest comments first
top : Highest upvote-to-downvote ratio
controversial : High activity with mixed votes
Additional Features
Results are paginated. Maximum of 100 per page.
If includeEntity=true, each comment includes basic data about its entity.
Votes are returned as arrays of user IDs.