Skip to main content
POST
Add Comment to Post
Add a new comment to any LinkedIn post using the post URL.
This endpoint costs 1 credit per request. Ignore this if you’re on per-seat pricing: usage is unlimited.

Header Parameters

string
required
Your API key

Body Parameters

string
required
LinkedIn post URL to comment on (must contain a valid activity URN)
string
required
Text content of the comment to post
string
default:"FR"
Country code for proxy selection. Available: US, CA, MX, CR, BR, AR, CL, CO, FR, UK, DE, NL, ES, IT, PT, BE, CH, AT, IE, SE, DK, FI, LT, LV, EE, PL, CZ, SK, HU, RO, UA, SI, HR, RS, AL, GR, CY, TR, IL, AE, EG, ZA, IN, PK, BD, JP, SG, MY, ID, TH, PH, AU
string
required
LinkedIn authentication cookie obtained from the login/verify process
string
URL of the LinkedIn company page to comment as (e.g., “https://www.linkedin.com/company/your-company”). If provided, the comment will be posted on behalf of the company page instead of the personal profile.

Response

string
Request status (success/error)
string
Detailed status message about the comment request

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
  • Company Page Comments: When company_url is provided, the comment will be posted on behalf of the company page. You must have admin rights on the company page to use this feature.
  • 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