Reddit Search

Get the comments of a Reddit post

Changed on

Reads the comments of any Reddit post the connected account can see, for example one found through /v1/reddit/feed or /v1/reddit/search, straight from Reddit on every call. The tree comes flattened in thread order (a reply follows its parent); rebuild it from parentId, which is t3_… for a reply to the post and t1_… for a reply to a comment. Deleted and removed comments are passed through as Reddit sends them ([deleted] / [removed]). Where Reddit truncates a thread, the ids it left out are listed in more; commentId fetches one such comment with its replies. A post Reddit no longer serves answers 404 and a private subreddit 403, both with platform_api_error. For comments on posts published through Zernio, /v1/inbox/comments/{postId} adds caching, moderation and replies.

get/v1/reddit/comments/{postId}

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/reddit/comments/{postId}
  • Auth: HTTP bearer

Path parameters

postIdstring required

Reddit post id, with or without the t3_ prefix (as id or fullname on RedditPost).

Query parameters

accountIdstring required

An active Reddit account the request is made as.

sort'new' | 'top' | 'best' | 'controversial' | 'old' | 'qa'
limitinteger

Maximum number of top-level comments.

commentIdstring

Return only this comment and its replies, with or without the t1_ prefix; pass an id from more to expand it.

Response

The post and its comments

morestring[]

Ids of comments Reddit left out of this page, at any depth.

Changes