APILinkedIn Posts
Like a comment
Like an existing comment on a LinkedIn post. Sends a pre-signal to LinkedIn before the actual like action for realistic engagement simulation.
POST
/like-commentAuthentication requiredPosts
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/like-comment' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"commentId":"urn:li:comment:(activity:7441028442856251392,7441783492948054016)"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
commentId | string | Yes | URN of the comment to like. Supports formats: urn:li:comment:(activity:...,...), urn:li:fsd_comment:(...,urn:li:activity:...) |
postUrl | string | No | Optional post URL for referer header (helps with browser simulation) |
companyUrn | string | No | Optional company URN if liking as a company page |
Example
{
"commentId": "urn:li:comment:(activity:7441028442856251392,7441783492948054016)",
"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7441028442856251392"
}Responses
| Status | Description |
|---|---|
| 200 | Comment liked successfully |
| 400 | Invalid comment URN format |
| 401 | Unauthorized |
| 500 | Server error |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | Whether the like was successful |
message | string | Status message |
commentId | string | The transformed comment URN |
originalCommentId | string | The original comment ID as provided |
accountId | string | The account ID used |
200 Example
{
"success": true,
"message": "Successfully liked comment",
"commentId": "urn:li:comment:(activity:7441028442856251392,7441783492948054016)",
"originalCommentId": "7441783492948054016",
"accountId": "acc_123"
}Reply to a comment
Post a reply to an existing comment on a LinkedIn post. Replies appear threaded under the original comment. Useful for continuing conversations and engaging with community discussions.
LinkedIn Profiles API
Retrieve enriched LinkedIn profile data via API. Get work history, skills, education, and contact information for lead enrichment and CRM sync.
