v1

latestOpenAPI 3.0.02026-07-249301.3 MB
Posts

List all comments from a post

Returns a list of either comments on a given post or replies on a given comment.

get/api/v1/posts/{post_id}/comments

Path parameters

post_idstring required

The ID of the associated post. <br> Linkedin: use the social_id from the post object (GET post or list posts). The post id visible in url will not work in all case, you can refer here for more details : https://developer.unipile.com/docs/posts-and-comments <br> Instagram: Need to use the provider_id. Short code cannot be used here (www.instagram.com/p/SHORTCODE)

Query parameters

cursorstring

A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the preceding request. This process should be repeated until all entries have been retrieved.

limitinteger

A limit for the number of items returned in the response. The value can be set between 1 and 100.

Example:100
sort_by'MOST_RECENT' | 'MOST_RELEVANT'

The sort method for the post comments. Default is MOST_RECENT.

comment_idstring

The id of the comment to get replies from. <br> Linkedin: use the comment id returned by the comments list.

account_idstring required

The id of the account to perform the request from.

Response

OK. Request succeeded.

object'CommentList' required