Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Posts → Get Post Comments
AI-generatedOverview
This node operation "Get Post Comments" under the "Posts" resource allows users to retrieve comments on a specific LinkedIn post. It is useful for social media managers, marketers, or developers who want to monitor engagement and feedback on LinkedIn posts programmatically within an n8n workflow.
Typical use cases include:
- Automatically fetching comments on a LinkedIn post to analyze audience reactions.
- Integrating LinkedIn post comments into CRM or customer support systems.
- Triggering further automation based on new comments detected on posts.
For example, a marketing team could use this node to pull all comments from a campaign post and analyze sentiment or respond automatically.
Properties
| Name | Meaning |
|---|---|
| Post ID | The unique identifier of the LinkedIn post whose comments you want to retrieve. |
| Max Results | Maximum number of comment results to return (minimum 1, maximum 100). Defaults to 20. |
| Start Index | The index of the first comment result to return, used for pagination. Defaults to 0. |
Output
The output JSON contains the list of comments retrieved from the specified LinkedIn post. Each item in the output corresponds to a comment object with details such as comment text, author, timestamp, and other metadata provided by LinkedIn's API.
The node does not output binary data for this operation.
Example output structure (simplified):
[
{
"json": {
"comments": [
{
"id": "commentId1",
"text": "Great post!",
"author": "urn:li:person:xxxx",
"createdAt": "2024-01-01T12:00:00Z"
},
{
"id": "commentId2",
"text": "Thanks for sharing.",
"author": "urn:li:person:yyyy",
"createdAt": "2024-01-02T08:30:00Z"
}
]
}
}
]
Dependencies
- Requires an API key credential for the external N8N Tools API service that validates subscription and access.
- Requires OAuth2 credentials for LinkedIn API access.
- The node uses the LinkedIn Marketing API v2 endpoints via helper classes bundled in the node.
- No additional environment variables are explicitly required beyond standard n8n credential setup.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that your API key credential is correct and active.
- Permission errors from LinkedIn API: Ensure the OAuth2 token has sufficient permissions to read post comments.
- Pagination issues: If you expect more comments than returned, adjust
Max ResultsandStart Indexparameters to paginate through results. - Network or timeout errors: Check network connectivity and LinkedIn API status if requests fail intermittently.