Skip to main content
GET
Post Comments
Returns the comment thread of a post by post_id. See Pricing for current prices. Where supported, get a quote for your request.

Example

Path parameters and required query parameters are documented in the operation reference.

Request contract

  • Method and path: GET /apis/v1/unipile/linkedin/posts/{post_id}/comments
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}/comments
  • post_id: path; required
  • account_id: query; required
  • comment_id: query; optional
  • cursor: query; optional
  • limit: query; optional
  • sort_by: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.005 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

The ID of the associated post.
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
Instagram: Need to use the provider_id. Short code cannot be used here (www.instagram.com/p/SHORTCODE)

Query Parameters

account_id
string
required

The id of the account to perform the request from.

comment_id
string

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

cursor
string

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.

Minimum string length: 1
limit
integer

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

Required range: 1 <= x <= 100
Example:

100

sort_by
enum<string>

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

Available options:
MOST_RECENT,
MOST_RELEVANT

Response

OK. Request succeeded.

cursor
string
required
items
object[]
required
object
enum<string>
required
Available options:
CommentList
paging
object
required
total_items
number
required