Overview
This node enables various LinkedIn-related operations by interacting with an external service via HTTP requests. It supports actions such as creating posts, commenting on posts, sending direct messages, searching for people, companies, or jobs, retrieving user info and conversations, and managing cookies for authentication.
Typical use cases include automating LinkedIn marketing campaigns, managing communications, gathering data about users or job listings, and integrating LinkedIn interactions into broader workflows. For example, a marketer could automate posting content and commenting on posts, or a recruiter could search for candidates based on job titles and keywords.
Properties
| Name | Meaning |
|---|---|
| Operation Type | The action to perform. Options: Comment On A Post, Create A Post, Create Cookies, Get Conversation Messages, Get User Conversations, Get User Info, Search For Companies, Search For Jobs, Search For People, Send Direct Message. |
| Cookies | LinkedIn session cookies in string format, used for authentication (not shown when creating cookies). |
| Profile ID or URL | Identifier or URL of a LinkedIn profile, required for getting user info or conversations. |
| Email address for login, used only when creating cookies. | |
| Password | Password for login, used only when creating cookies. |
| Receiver ID | LinkedIn user ID of the message recipient, used when sending direct messages. |
| Sender ID | LinkedIn user ID of the message sender, used when sending direct messages. |
| Content | Text content for posts, comments, or direct messages. |
| Job Title | Job title filter for searching people or jobs. |
| Keywords | Keywords filter for searching people or companies. |
| Company Size | Size category of company for searching companies. Options: 1-10, 11-50, 51-200, 201-500, 501-1000 employees. |
| Listed At | Time range filter for job listings. Options: Past 24 Hours, Past Week, Past Month. |
| Workplace Type | Job workplace type filter. Options: Remote, On Site, Hybrid. |
| Experience | Experience level filter for jobs. Options: Internship, Entry Level, Associate, Mid - Senior, Director, Executive. |
| Location | Geographic location filter for jobs or companies. Options include United States, Canada, UK, Germany, Europe, Saudi Arabia, UAE, Qatar, Egypt, Sudan, MENA region. |
| Post Url | URL of the LinkedIn post to comment on. |
| Conversation ID | Identifier of a conversation to retrieve messages from. |
| Un-Read Only | Boolean flag to fetch only unread messages in a conversation. |
Output
The node outputs JSON objects corresponding to the result of the selected operation. The structure varies depending on the operation:
- For createCookies, it returns an object containing the generated cookie string.
- For createPost, commentOnPost, sendDm, and other interaction operations, it returns the response from the external service indicating success or failure.
- For searchPeople, searchCompanies, searchJobs, getUserInfo, getUserConversations, and getConversationMessages, it returns structured data representing the search results or retrieved information.
- In case of errors, the output JSON contains an
errorfield with the error message.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with LinkedIn via the external service.
- Relies on an external HTTP API hosted at
http://95.217.213.4:9768which performs the actual LinkedIn operations. - Uses helper functions to format and serialize LinkedIn cookies for authentication.
- Requires proper LinkedIn session cookies or credentials depending on the operation.
Troubleshooting
- Authentication Errors: Operations requiring cookies may fail if invalid or expired cookies are provided. Ensure valid LinkedIn session cookies or create new ones using the "Create Cookies" operation.
- Network Issues: Since the node depends on an external API, network failures or downtime of the service at
95.217.213.4will cause errors. - Invalid Parameters: Missing or incorrect parameters like profile IDs, post URLs, or message content can lead to errors. Verify all required fields are correctly filled.
- Error Handling: If the node is set to continue on failure, errors will be returned in the output JSON under an
errorfield; otherwise, execution will stop with an error message. - Rate Limits: LinkedIn may impose rate limits; excessive requests might result in temporary blocks or errors.
Links and References
- LinkedIn Official Documentation
- n8n Documentation on Creating Custom Nodes
- General info on LinkedIn automation best practices and compliance guidelines.