social.coves.community.comment.getComments
Get comments for a post with threading and sorting support. Supports hot/top/new sorting, configurable nesting depth, and pagination.
Details · query
| Kind | query |
|---|---|
| Authority | comment.community.coves.social |
| Commit rev | 3n2v225bl5s26 |
| Indexed |
Showing version bafyreierl3xcb4x6ywnjilvfjmhsczei6lw4mu5mmle63oxcqy2x3s7cuq. Show the latest
Query
query · GETParameters
query stringcursor
stringPagination cursor from previous response
maxLength: 500
depth
integerMaximum reply nesting depth to return. 0 returns only top-level comments.
minimum: 0maximum: 100default: 10
feed
string · at-uriAT-URI of the comment feed generator (kind comments, thread scope) that orders the thread, such as the instance's comments-hot, comments-top or comments-new. Takes precedence over sort. When neither is given, the instance's comments-hot is used.
limit
integerMaximum number of top-level comments to return per page
minimum: 1maximum: 100default: 50
parentRkey
string · record-keyRecord key of a comment within the post. When provided, the response contains only the subtree rooted at that comment: the comment itself as the sole top-level entry, with its descendants nested beneath it. depth is relative to this comment (0 returns only the comment itself), and limit/cursor paginate its direct replies.
AT-URI of the post to get comments for
sort
stringDeprecated alias of feed: hot, top and new select the instance's comments-hot, comments-top and comments-new generators. Ignored when feed is given.
maxLength: 64default: "hot"knownValues: hot | top | new
timeframe
stringTimeframe the top level is ranked within. Accepted only when the resolved feed is comments-top; any other feed rejects it as InvalidRequest. Unset means all time.
maxLength: 64knownValues: hour | day | week | month | year | all
Output
application/jsonTop-level comments with nested replies up to requested depth
cursor
stringPagination cursor for fetching next page of top-level comments
maxLength: 500
The post these comments belong to
Errors
NotFound
Post not found
ParentNotFound
No comment with the given parentRkey exists within the post
InvalidRequest
Invalid parameters (malformed URI, invalid sort, a timeframe on a feed other than comments-top, etc.)
UnknownFeed
The feed is not a registered feed generator
UnsupportedFeedScope
The feed is not a comment feed for threads
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Get the ordered direct replies for one or more parent posts or comments from a comment feed generator. Served by the generator's service and called by the AppView, which hydrates the comments.
-
Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.
-
A post and a page of its top-level comments.
-
Get comments for a subject (gallery or story), sorted oldest-first with author profiles.
-
Get comments for a subject (gallery or story), sorted oldest-first with author profiles.