POST
/
v1
/
posts
/
comment
curl --request POST \
  --url https://api.linkupapi.com/v1/posts/comment \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "post_url": "<string>",
  "message": "<string>",
  "country": "<string>",
  "login_token": "<string>"
}'
{
  "status": "success",
  "message": "Comment posted successfully"
}

Add a new comment to any LinkedIn post using the post URL.

This endpoint costs 1 credit per request.

Header Parameters

x-api-key
string
required

Your API key

Body Parameters

post_url
string
required

LinkedIn post URL to comment on (must contain a valid activity URN)

message
string
required

Text content of the comment to post

country
string
default:"FR"

Country code for proxy selection. Available: (US,UK,FR)

login_token
string
required

LinkedIn authentication cookie obtained from the login/verify process

Response

status
string

Request status (success/error)

message
string

Detailed status message about the comment request

{
  "status": "success",
  "message": "Comment posted successfully"
}

Notes

  • The post URL must contain a valid LinkedIn activity URN
  • Example of valid post URLs:
    • https://www.linkedin.com/feed/update/urn:li:activity:...
    • https://www.linkedin.com/posts/user-activity-...
  • Comments are posted with the identity associated with the login token
  • Comment text supports plain text only
  • No formatting or special characters are supported in comments
  • The post must be accessible with the provided login token
  • LinkedIn’s rate limits and spam detection apply to comment posting
  • Comments cannot be longer than LinkedIn’s maximum character limit
  • Some posts may have commenting disabled by their authors