Fetch Post Activities V2

This endpoint retrieves the comments or reactions of a post, or the replies or reactions of a comment, based on the post or comment URN. Comments and reactions are paged with page / size and carry LinkedIn's total; a comment's replies are continued with repliesFrom and have no total.

Use the post's threadUrn (from Fetch Post Details): for a post backed by a ugcPost, the activity URN returns no comments or reactions.

The header Content-Type: application/json must be included in the request.

Body Params
string
required
Defaults to urn:li:ugcPost:7498273885877084161

The URN of a LinkedIn post (urn:li:activity:<id>, urn:li:ugcPost:<id>, urn:li:share:<id>) or of a comment (urn:li:comment:(<post type>:<post id>,<comment id>)). With a comment URN, COMMENT returns its replies and REACTION its reactions.

string
enum
Defaults to COMMENT

Optional Type of activities to be returned. Default is COMMENT.

Allowed:
string
enum
Defaults to REVERSE_CHRONOLOGICAL

Optional REVERSE_CHRONOLOGICAL (newest first, the default), CHRONOLOGICAL (oldest first) or RELEVANCE (LinkedIn's filtered view, which can leave comments out). RELEVANCE is for the comments of a post only; reactions and replies answer 400.

Allowed:
string
enum

Optional Reactions only: return only this reaction. LinkedIn shows them as Like (LIKE), Celebrate (PRAISE), Love (EMPATHY), Support (APPRECIATION), Insightful (INTEREST) and Funny (ENTERTAINMENT).

Allowed:
date-time

Optional The replies of a comment only: an ISO-8601 time. Returns the replies created before it with REVERSE_CHRONOLOGICAL and after it with CHRONOLOGICAL. To continue, send the createdAt of the last reply received; that reply is not returned again.

integer
≥ 0
Defaults to 0

Page number, zero-based. Must be 0 for the replies of a comment (they continue with repliesFrom).

integer
1 to 100
Defaults to 10

Number of items per page, 1 to 100.

boolean
Defaults to true

Optional If this value is True, it will use the cache for up to 24 hours. Default value is True

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json