N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Posts → Get Post Comments

AI-generated

Overview

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 Results and Start Index parameters to paginate through results.
  • Network or timeout errors: Check network connectivity and LinkedIn API status if requests fail intermittently.

Links and References

Discussion