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 → Search Posts

AI-generated

Overview

The node provides enhanced integration with LinkedIn's Marketing API v2, enabling various operations related to LinkedIn posts, including searching posts. Specifically, the Search Posts operation allows users to query LinkedIn for posts matching a given search string, with control over pagination through start index and maximum results.

This node is beneficial in scenarios such as:

  • Monitoring LinkedIn content relevant to specific topics or keywords.
  • Gathering competitive intelligence by searching posts from competitors or industry leaders.
  • Automating content curation workflows by fetching recent posts matching certain criteria.

For example, a marketing team could use this node to automatically retrieve the latest posts mentioning their brand or product, then analyze or respond to them within an automated workflow.

Properties

Name Meaning
Max Results Maximum number of search results to return (1 to 100).
Start Index Index of the first result to return, used for pagination (minimum 0).

These properties allow controlling how many posts are retrieved and from which position in the search results, facilitating efficient data retrieval in batches.

Output

The node outputs an array of JSON objects representing the search results for LinkedIn posts. Each item corresponds to one post matching the search query, containing all relevant post data returned by the LinkedIn API via the integrated helper classes.

The output structure includes:

  • json: The main field containing the post data object.
  • itemData.item: The index of the input item that triggered the execution for this output item.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service, which acts as a proxy or enhancer for LinkedIn API calls.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node internally uses helper classes (LinkedInApi and LinkedInApiHelper) to interact with LinkedIn endpoints.
  • The node performs an initial validation call to the external API service to verify subscription and API key validity before executing operations.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • API rate limits or permission errors: LinkedIn API may impose rate limits or require specific permissions; ensure the OAuth2 credentials have appropriate scopes.
  • Empty or incomplete search results: Check that the search query string is correctly specified and that the maxResults and startIndex parameters are within allowed ranges.
  • Network or connectivity issues: Since the node depends on external APIs, network problems can cause failures; verify internet connectivity and endpoint accessibility.

Links and References

Discussion