n8ntools-linkedin

Enhanced LinkedIn Marketing API v2 node for N8N with comprehensive B2B marketing and networking features

Package Information

Released: 13 mo ago
Downloads: 14 weeklyĀ /Ā 45 monthly
Latest Version: 1.0.3

Documentation

N8N Tools - LinkedIn Enhanced

npm version
npm downloads
License: MIT

Complete LinkedIn professional network integration with 70+ operations covering the full LinkedIn ecosystem. This N8N community node provides comprehensive access to Posts, Company Pages, Connections, Messages, Advertising, and Analytics APIs that significantly expand beyond the official LinkedIn node capabilities.

✨ Features

  • šŸ“ Posts & Content: Create, publish, and manage professional posts with rich media support
  • šŸ¢ Company Pages: Complete company page management, employee advocacy, and business presence
  • šŸ¤ Network & Connections: Advanced connection management, relationship building, and networking tools
  • šŸ’¬ Messages & InMail: Professional messaging, InMail campaigns, and conversation management
  • šŸ“Š Analytics & Insights: Detailed performance metrics, audience analytics, and engagement tracking
  • šŸŽÆ Advertising & Campaigns: Create and manage LinkedIn ads, sponsored content, and lead generation
  • šŸ” Search & Discovery: Advanced people and company search with sophisticated filters
  • šŸ‘¤ Profile Management: Update profiles, manage experience, skills, and professional information
  • šŸ“… Events & Groups: Manage LinkedIn events, groups, and professional communities
  • šŸŽ“ Learning & Certifications: Access LinkedIn Learning content and manage certifications
  • šŸ”’ Secure API: Powered by N8N Tools platform with usage tracking and validation

šŸš€ Quick Start

Installation

Install this node in your N8N instance:

Via Community Nodes (Recommended)

  1. Go to Settings > Community Nodes in your N8N interface
  2. Click Install a community node
  3. Enter n8n-nodes-n8ntools-linkedin
  4. Click Install

Via npm

npm install n8n-nodes-n8ntools-linkedin

Setup Credentials

  1. Sign up at N8N Tools and get your API key
  2. In N8N, create new N8N Tools API credentials
  3. Enter your API URL: https://api.n8ntools.io
  4. Enter your API key

šŸ“‹ Available Resources

šŸ“ Posts & Content (10 Operations)

Complete content management and publishing:

Operation Description Features
Create Post Publish professional posts Text, images, videos, documents
Update Post Modify existing posts Content editing, visibility changes
Delete Post Remove posts from LinkedIn Soft delete with analytics retention
Get Post Retrieve specific post details Engagement metrics, comments
Get Post Analytics Detailed post performance Views, clicks, engagement rates
Share Content Reshare posts with commentary Attribution, custom messaging
Create Article Publish long-form articles Rich text, media embedding
Get Feed Retrieve LinkedIn feed content Personalized, company feeds
Manage Comments Handle post comments Moderation, responses
Schedule Post Plan future content publishing Optimal timing recommendations

šŸ¢ Company Pages (8 Operations)

Complete company presence management:

  • Create Company Page: Set up professional business presence
  • Update Company Info: Modify company details and branding
  • Get Company Analytics: Track page performance and follower growth
  • Manage Company Posts: Publish and manage company content
  • Get Company Followers: Analyze follower demographics
  • Employee Advocacy: Enable employee content sharing
  • Company Updates: Share company news and announcements
  • Showcase Pages: Create specialized business unit pages

šŸ¤ Network & Connections (7 Operations)

Advanced networking and relationship management:

  • Send Connection Request: Connect with professionals with personalized messages
  • Accept Connection: Accept incoming connection requests
  • Get Connections: Retrieve network connections with detailed information
  • Remove Connection: Manage network by removing connections
  • Get Connection Suggestions: Discover relevant professional contacts
  • Network Analytics: Track network growth and engagement
  • Manage Invitations: Handle sent and received invitations

šŸ’¬ Messages & InMail (6 Operations)

Professional communication tools:

  • Send Message: Send messages to connections
  • Send InMail: Reach professionals outside your network
  • Get Conversations: Retrieve message threads and history
  • Get Messages: Access specific message content
  • Manage Message Threads: Organize and archive conversations
  • InMail Analytics: Track InMail campaign performance

šŸ“Š Analytics & Insights (6 Operations)

Comprehensive performance tracking:

  • Get Profile Analytics: Personal profile performance metrics
  • Get Company Analytics: Business page insights and engagement
  • Get Content Performance: Post and article analytics
  • Audience Demographics: Follower and viewer demographics
  • Engagement Metrics: Likes, comments, shares, and click-through rates
  • Competitive Analysis: Benchmark against industry peers

šŸŽÆ Advertising & Campaigns (9 Operations)

Full-featured advertising platform:

  • Create Ad Campaign: Set up targeted advertising campaigns
  • Update Campaign: Modify campaign settings and budgets
  • Get Campaign Analytics: Track ad performance and ROI
  • Create Sponsored Content: Promote posts to wider audiences
  • Manage Ad Creatives: Upload and optimize ad visuals
  • Audience Targeting: Define precise audience segments
  • Lead Generation: Capture leads through LinkedIn forms
  • Conversion Tracking: Monitor campaign conversion events
  • Budget Management: Control spending and optimization

šŸ” Search & Discovery (5 Operations)

Advanced search and prospecting tools:

  • Search People: Find professionals with advanced filters
  • Search Companies: Discover businesses and organizations
  • Advanced Search: Multi-criteria professional search
  • Sales Navigator Integration: Enhanced prospecting capabilities
  • Search Analytics: Track search activity and results

šŸ‘¤ Profile Management (5 Operations)

Personal and professional profile optimization:

  • Get Profile: Retrieve detailed profile information
  • Update Profile: Modify personal and professional details
  • Manage Experience: Add and update work experience
  • Manage Skills: Add, endorse, and manage professional skills
  • Update Education: Maintain educational background

šŸ“… Events & Groups (4 Operations)

Professional community management:

  • Create Event: Set up professional networking events
  • Manage Event Attendees: Handle event registrations and communication
  • Join Groups: Participate in professional groups
  • Group Management: Moderate and manage LinkedIn groups

šŸŽ“ Learning & Certifications (3 Operations)

Professional development tracking:

  • Get Learning Content: Access LinkedIn Learning resources
  • Track Certifications: Manage professional certifications
  • Skill Assessments: Take and display skill assessments

šŸ“ˆ Sales Tools (4 Operations)

Sales and business development features:

  • Lead Tracking: Monitor and manage sales prospects
  • CRM Integration: Sync data with external CRM systems
  • Pipeline Management: Track sales opportunity progression
  • Sales Analytics: Measure sales activity and performance

šŸ”” Notifications (3 Operations)

Real-time notification management:

  • Get Notifications: Retrieve platform notifications
  • Manage Notification Settings: Configure notification preferences
  • Real-time Updates: Handle webhook notifications

šŸ’” Usage Examples

Create Professional Post with Rich Media

// Configuration
Resource: "Posts & Content"
Operation: "Create Post"
Request Body: {
  "author": "urn:li:person:ABC123",
  "lifecycleState": "PUBLISHED",
  "specificContent": {
    "com.linkedin.ugc.ShareContent": {
      "shareCommentary": {
        "text": "Excited to share our latest product update! šŸš€\n\nOur new AI-powered analytics dashboard helps businesses make data-driven decisions faster than ever. Key features:\n\nāœ… Real-time insights\nāœ… Predictive analytics\nāœ… Custom visualizations\nāœ… Automated reporting\n\nWhat analytics features matter most to your business? Let me know in the comments!\n\n#Analytics #AI #BusinessIntelligence #DataDriven"
      },
      "shareMediaCategory": "IMAGE",
      "media": [{
        "status": "READY",
        "description": {
          "text": "AI Analytics Dashboard Screenshot"
        },
        "media": "urn:li:digitalmediaAsset:D4E26AQH1234567890",
        "title": {
          "text": "New Analytics Dashboard"
        }
      }]
    }
  },
  "visibility": {
    "com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"
  }
}

// Output
{
  "resource": "posts",
  "operation": "createPost",
  "success": true,
  "id": "urn:li:activity:1234567890123456789",
  "lifecycleState": "PUBLISHED",
  "lastModified": {
    "time": 1704067200000
  },
  "created": {
    "time": 1704067200000
  },
  "creditsUsed": 1,
  "creditsRemaining": 99
}

Advanced Professional Search

// Configuration
Resource: "Search & Discovery"
Operation: "Search People"
Request Body: {
  "keywords": "software engineer machine learning",
  "facetCurrentCompany": ["1441", "2382910", "162479"],
  "facetGeoRegion": ["us:84"],
  "facetSchool": ["18838", "17102"],
  "facetIndustry": ["96", "6"],
  "facetNetwork": ["S",F"],
  "facetLanguage": ["en"],
  "origin": "GLOBAL_SEARCH_HEADER",
  "count": 25,
  "start": 0,
  "includeFiltersInResponse": true
}

// Output includes detailed professional profiles
{
  "resource": "search",
  "operation": "searchPeople",
  "success": true,
  "data": {
    "elements": [{
      "publicIdentifier": "john-doe-ml",
      "firstName": "John",
      "lastName": "Doe",
      "headline": "Senior Machine Learning Engineer at Google",
      "location": "San Francisco Bay Area",
      "industry": "Internet",
      "currentPositions": [{
        "title": "Senior ML Engineer",
        "companyName": "Google"
      }]
    }],
    "paging": {
      "count": 25,
      "start": 0,
      "total": 247
    }
  }
}

Company Page Content Management

// Configuration
Resource: "Company Pages"
Operation: "Manage Company Posts"
Request Body: {
  "author": "urn:li:organization:123456",
  "lifecycleState": "PUBLISHED",
  "specificContent": {
    "com.linkedin.ugc.ShareContent": {
      "shareCommentary": {
        "text": "We're hiring! šŸŽÆ\n\nOur team is growing and we're looking for passionate individuals to join us:\n\nšŸ”¹ Senior Frontend Developer (React/TypeScript)\nšŸ”¹ DevOps Engineer (AWS/Kubernetes)\nšŸ”¹ Product Manager (B2B SaaS)\nšŸ”¹ UX Designer (Enterprise Applications)\n\nWe offer:\n✨ Competitive salary + equity\n✨ Remote-first culture\n✨ Professional development budget\n✨ Comprehensive health benefits\n\nInterested? Drop us a message or apply directly on our careers page!\n\n#Hiring #TechJobs #RemoteWork #CareerOpportunity"
      },
      "shareMediaCategory": "NONE"
    }
  },
  "visibility": {
    "com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"
  },
  "targetAudience": {
    "targetedEntities": [{
      "locations": ["us:0"],
      "staffingFunction": ["eng", "it"]
    }]
  }
}

LinkedIn Advertising Campaign

// Configuration
Resource: "Advertising & Campaigns"
Operation: "Create Ad Campaign"
Request Body: {
  "name": "Q1 2024 Lead Generation Campaign",
  "type": "SPONSORED_UPDATES",
  "status": "ACTIVE",
  "campaignGroup": "urn:li:sponsoredCampaignGroup:123456789",
  "targetingCriteria": {
    "include": {
      "and": [{
        "or": {
          "jobFunction": ["eng", "it", "ops"]
        }
      }, {
        "or": {
          "seniority": ["4", "5", "6", "7", "8", "9", "10"]
        }
      }, {
        "or": {
          "industry": ["96", "6", "4"]
        }
      }]
    }
  },
  "costType": "CPM",
  "bidType": "AUTOMATED",
  "dailyBudget": {
    "currencyCode": "USD",
    "amount": "100.00"
  },
  "runSchedule": {
    "start": 1704067200000,
    "end": 1709337600000
  },
  "creativeSelection": "OPTIMIZED"
}

InMail Campaign Management

// Configuration
Resource: "Messages & InMail"
Operation: "Send InMail"
Request Body: {
  "recipients": [
    "urn:li:person:ABC123DEF456"
  ],
  "subject": "Partnership Opportunity - AI Analytics Platform",
  "body": "Hi {firstName},\n\nI hope this message finds you well. I came across your profile and was impressed by your work in AI and machine learning at {company}.\n\nWe're building an AI-powered analytics platform that helps businesses make data-driven decisions, and I believe there might be some interesting synergies between our companies.\n\nWould you be open to a brief 15-minute call next week to explore potential collaboration opportunities? I'm particularly interested in discussing:\n\n• How AI is transforming business analytics\n• Potential integration possibilities\n• Market trends we're both seeing\n\nI'm flexible with timing and happy to work around your schedule.\n\nBest regards,\n[Your Name]\n\nP.S. I'd be happy to share a demo of our platform if you're interested.",
  "trackingPixel": true,
  "customization": {
    "firstName": "John",
    "company": "Google"
  }
}

Network Analytics and Growth Tracking

// Configuration
Resource: "Analytics & Insights"
Operation: "Get Profile Analytics"
Request Body: {
  "timeRange": {
    "start": 1701475200000,
    "end": 1704067200000
  },
  "metrics": [
    "profileViews",
    "searchAppearances", 
    "postViews",
    "connectionRequests",
    "messagingActivity"
  ],
  "dimensions": [
    "function",
    "seniority",
    "industry",
    "region",
    "company"
  ]
}

// Get network growth insights
Resource: "Network & Connections"
Operation: "Network Analytics"
Request Body: {
  "timeRange": "LAST_30_DAYS",
  "metrics": ["connectionGrowth", "networkReach", "connectionDemographics"],
  "breakdown": ["industry", "function", "geography"]
}

āš™ļø Configuration Options

Environment Settings

  • LinkedIn Account Type: Personal, Business, Premium, Sales Navigator
  • API Version: LinkedIn API version compatibility
  • Rate Limiting: Request throttling and quotas
  • Permissions: Scope of API access and operations

Content Options

  • Post Visibility: Public, connections only, specific groups
  • Media Support: Images, videos, documents, polls
  • Rich Text: Formatting, mentions, hashtags
  • Scheduling: Optimal timing recommendations

Advertising Options

  • Campaign Types: Sponsored content, text ads, dynamic ads
  • Targeting: Demographics, interests, behaviors, custom audiences
  • Bidding: Automated, manual CPC, CPM strategies
  • Budget Control: Daily, lifetime, campaign group budgets

Advanced Features

  • Sales Navigator: Enhanced prospecting and lead management
  • Company Analytics: Enterprise-grade business insights
  • API Webhooks: Real-time event notifications
  • Bulk Operations: Batch processing for scale

šŸ› ļø Example Workflows

Lead Generation Pipeline

[Prospect Search] → [LinkedIn Enhanced: Search People] → [Send Connection Request] → [InMail Follow-up] → [CRM Integration]

Content Marketing Automation

[Content Creation] → [LinkedIn Enhanced: Schedule Post] → [Monitor Engagement] → [Respond to Comments] → [Analyze Performance]

Company Brand Management

[Company Update] → [LinkedIn Enhanced: Company Post] → [Employee Advocacy] → [Track Reach] → [Optimize Strategy]

Recruitment Automation

[Job Posting] → [LinkedIn Enhanced: Create Post] → [Search Candidates] → [Send InMails] → [Track Applications]

šŸ“Š Comparison with Official LinkedIn Node

Feature Category Official Node LinkedIn Enhanced Improvement
Posts & Content 3 operations 10 operations +233%
Company Pages 0 operations 8 operations āˆž (new)
Network & Connections 1 operation 7 operations +600%
Messages & InMail 0 operations 6 operations āˆž (new)
Analytics 0 operations 6 operations āˆž (new)
Advertising 0 operations 9 operations āˆž (new)
Search 0 operations 5 operations āˆž (new)
Profile Management 1 operation 5 operations +400%
Events & Groups 0 operations 4 operations āˆž (new)
Learning 0 operations 3 operations āˆž (new)
Sales Tools 0 operations 4 operations āˆž (new)
Notifications 0 operations 3 operations āˆž (new)
Total Operations 5 operations 70 operations +1300%

šŸ”§ API Endpoints

All operations are routed through N8N Tools API for consistent authentication and usage tracking:

Resource Base Endpoint
Posts & Content /api/v1/linkedin/posts/
Company Pages /api/v1/linkedin/companies/
Network & Connections /api/v1/linkedin/connections/
Messages & InMail /api/v1/linkedin/messages/
Analytics & Insights /api/v1/linkedin/analytics/
Advertising & Campaigns /api/v1/linkedin/advertising/
Search & Discovery /api/v1/linkedin/search/
Profile Management /api/v1/linkedin/profiles/
Events & Groups /api/v1/linkedin/events/
Learning & Certifications /api/v1/linkedin/learning/
Sales Tools /api/v1/linkedin/sales/
Notifications /api/v1/linkedin/notifications/

🚨 Error Handling

The node provides comprehensive error handling with detailed messages:

{
  "error": "INSUFFICIENT_PERMISSIONS",
  "success": false,
  "resource": "advertising",
  "operation": "createAdCampaign",
  "details": {
    "issue": "User does not have LinkedIn Marketing Partner permissions",
    "field": "campaignGroup",
    "code": 403,
    "linkedin_error_code": "FORBIDDEN"
  }
}

šŸ’ø Pricing & Limits

  • Standard Operations: 1 credit per API call
  • Premium Operations: 2 credits (InMail, advanced search, advertising)
  • Analytics Operations: 1 credit per query
  • Monthly Quotas: Based on your N8N Tools subscription plan
  • Rate Limits: 100 requests/minute (based on LinkedIn API limits)
  • Usage Tracking: Real-time credit monitoring

šŸ”§ Troubleshooting

Common Issues

Authentication Errors

  • Verify N8N Tools API key is valid and active
  • Check API URL is set to https://api.n8ntools.io
  • Ensure LinkedIn account permissions and scopes

Permission Issues

  • Verify LinkedIn Premium or Sales Navigator access
  • Check Marketing Partner status for advertising
  • Ensure proper app permissions in LinkedIn Developer Portal

Rate Limiting

  • Implement proper request spacing
  • Use batch operations where available
  • Monitor daily and monthly usage quotas

Content Policy

  • Follow LinkedIn Professional Community Policies
  • Ensure content meets platform guidelines
  • Avoid spam or automated behavior patterns

šŸ“ˆ Performance Tips

  1. Professional Content: Focus on business value and professional insights
  2. Optimal Timing: Post during business hours in your audience's timezone
  3. Engagement: Respond to comments and messages promptly
  4. Network Quality: Prioritize relevant professional connections
  5. Analytics: Regularly review performance metrics for optimization

šŸ†˜ Support

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ā¤ļø by N8N Tools

Discussion