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, jobs, or companies, retrieving user information and conversations, and managing cookies for authentication.
Typical use cases include automating LinkedIn marketing campaigns (e.g., posting content, messaging), gathering data for recruitment or sales prospecting (e.g., searching jobs, people, companies), and managing session cookies programmatically.
For example:
- Automatically create a LinkedIn post with specified content.
- Search for people with certain job titles and keywords.
- Send a direct message from one user to another.
- Retrieve detailed user profile information or conversation history.
Properties
| Name | Meaning |
|---|---|
| Operation Type | The action to perform. Options: Comment On A Post, Create A Post, Create Cookies, 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 in most operations (except Create Cookies). |
| Profile ID or URL | Identifier or URL of the 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. |
| Reciever ID | Recipient's LinkedIn ID, used when sending a direct message. |
| Sender ID | Sender's LinkedIn ID, used when sending a direct message. |
| 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 | Company size filter for searching companies. Options: 1-10, 11-50, 51-200, 201-500, 501-1000. |
| Listed At | Time filter for job listings. Options: Past 24 Hours, Past Week, Past Month. |
| Workplace Type | Workplace type filter for jobs. Options: Remote, On Site, Hybrid. |
| Experience | Experience level filter for jobs. Options: Internship, Entry Level, Associate, Mid - Senior, Director, Executive. |
| Location | Location filter for jobs or companies. Options include United States, Canada, United Kingdom, Germany, Europe, Saudi Arabia, UAE, Qatar, Egypt, Sudan, MENA region. |
| Post Url | URL of the LinkedIn post to comment on. |
Output
The node outputs JSON objects corresponding to the result of the selected operation. The structure varies depending on the operation:
- For createCookies, output contains a
Cookiefield with the generated cookie string. - For createPost, commentOnPost, sendDm, getUserConversations, getUserInfo, searchPeople, searchCompanies, searchJobs, the output is the JSON response returned by the external API, which typically includes data relevant to the requested operation (e.g., post creation confirmation, search results, user details).
If an error occurs during execution, the output JSON will contain an error field with the error message.
No binary data output is produced by this node.
Dependencies
- Requires an active LinkedIn session represented by valid cookies for most operations.
- Uses an external HTTP API hosted at
http://95.217.213.4:9768to perform LinkedIn operations. - Requires an API key credential configured in n8n for authentication with LinkedIn services.
- Relies on helper functions to format and serialize LinkedIn cookies properly before sending requests.
Troubleshooting
- Invalid or expired cookies: Many operations require valid LinkedIn session cookies. If cookies are invalid or expired, operations will fail. Use the "Create Cookies" operation to generate fresh cookies.
- Authentication errors: Ensure that the API key credential is correctly set up and has necessary permissions.
- Network or API errors: The node depends on an external API endpoint. Network issues or downtime of the external service may cause failures.
- Incorrect input parameters: Missing or incorrect parameters like profile IDs, post URLs, or IDs for messaging can cause errors.
- Error messages: Errors thrown by the node include the original error message from the external API or internal processing. Review these messages to identify issues such as invalid credentials, missing fields, or rate limits.
To resolve common errors:
- Verify all required inputs are provided and correctly formatted.
- Refresh cookies regularly using the "Create Cookies" operation.
- Check network connectivity and API endpoint availability.
- Enable "Continue On Fail" option to handle errors gracefully within workflows.
Links and References
- LinkedIn Official Website
- No direct documentation available for the external API used by this node; refer to node description and property definitions for usage details.