LinkedIn Get Post Comments
Retrieve comments on a LinkedIn post by its activity identifier. Inputs: - urn (required string): the numeric activity identifier from the post URL, for example "7267273010393358336" from .../urn:li:activity:7267273010393358336/. - sort_by (optional): "Most relevant" (default) or "Most recent". - page (optional integer): page number, starting at 1. - pagination_token (optional string): use the token returned by the previous response when fetching another page. - share_urn (optional string): an additional share URN for a shared post. Returns comment data, which may include commenter details, text, time, pinned status and replies. The documented result includes data for the comments, pagination_token for the next page and total for the number of items returned in this response; total is not the post's overall comment count. Each call retrieves a page rather than necessarily all comments. Intermittent 400 or other errors may be transient. Up to three retries are recommended for transient failures; retries are not guaranteed to resolve every error.
Pricing
| Condition | Charge |
|---|---|
| Each call | 103.27 credits/call |
103.27 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
urn | string | Yes | 帖子 activity urn/Post activity urn | — |
page | integer | null | No | 页码,从 1 开始/Page number, starts at 1 | — |
sort_by | string | null | No | Most relevant(默认)| Most recent | — |
share_urn | string | null | No | 分享类帖子的 share urn(可选)/Share urn (optional) | — |
pagination_token | string | null | No | 上一次响应返回的翻页令牌/Pagination token | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_linkedin_get_post_comments' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"urn": "xxx"
}
}'No response example available yet.




