Skip to main content

app.bsky.unspecced.getPostThreadV2

#main

(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of unspecced or your application WILL break) Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.

Parameters

PropertyTypeKnown ValuesRequiredDescription
anchorstring (at-uri)-Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.
aboveboolean-Whether to include parents above the anchor.
belowinteger-How many levels of replies to include below the anchor.
branchingFactorinteger-Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).
sortstringnewest
oldest
top
Sorting for the thread replies.

Output

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
threadarray of #threadItem-A flat list of thread items. The depth of each item is indicated by the depth property inside the item.
threadgateapp.bsky.feed.defs#threadgateView--
hasOtherRepliesboolean-Whether this thread has additional replies. If true, a call can be made to the getPostThreadOtherV2 endpoint to retrieve them.

#threadItem

PropertyTypeKnown ValuesRequiredDescription
uristring (at-uri)--
depthinteger-The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.
valueunion of
app.bsky.unspecced.defs#threadItemPost
app.bsky.unspecced.defs#threadItemNoUnauthenticated
app.bsky.unspecced.defs#threadItemNotFound
app.bsky.unspecced.defs#threadItemBlocked
--