linkedin-analytics

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

LinkedIn Analytics

LinkedIn 数据分析

Get detailed analytics for your LinkedIn posts and profile using the Publora MCP server. Track impressions, engagement, follower growth, and interact with posts through reactions and comments.
借助Publora MCP服务器获取你的LinkedIn帖子和个人主页的详细分析数据。追踪曝光量、互动量、粉丝增长情况,并通过点赞和评论与帖子进行互动。

Prerequisites

前提条件

Plans: Starter (free), Pro, Premium - LinkedIn is available on all plans including free.
套餐: Starter(免费版)、Pro版、Premium版 - LinkedIn功能适用于所有套餐,包括免费版。

Getting Started

快速开始

  1. Create account at publora.com/register (free)
  2. Connect LinkedIn via OAuth in Publora Dashboard
  3. Get API key at publora.com/settings/api
  4. Configure MCP in Claude Desktop (
    ~/.claude/claude_desktop_config.json
    ):
json
{
  "mcpServers": {
    "publora": {
      "type": "http",
      "url": "https://mcp.publora.com",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
  1. publora.com/register创建账户(免费)
  2. Publora控制台通过OAuth关联LinkedIn账号
  3. publora.com/settings/api获取API密钥
  4. 在Claude Desktop中配置MCP(路径:
    ~/.claude/claude_desktop_config.json
    ):
json
{
  "mcpServers": {
    "publora": {
      "type": "http",
      "url": "https://mcp.publora.com",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

REST API Fallback

REST API备用方案

If the MCP server is unavailable or returns errors, use the REST API directly:
Base URL:
https://api.publora.com/api/v1
Authentication: Use
x-publora-key
header (NOT
Authorization: Bearer
):
bash
undefined
如果MCP服务器不可用或返回错误,可直接使用REST API:
基础URL:
https://api.publora.com/api/v1
认证方式: 使用
x-publora-key
请求头(而非
Authorization: Bearer
):
bash
undefined

Get your connected platforms

获取已关联的平台

curl -X GET "https://api.publora.com/api/v1/platform-connections"
-H "x-publora-key: sk_your_api_key"
curl -X GET "https://api.publora.com/api/v1/platform-connections"
-H "x-publora-key: sk_your_api_key"

Get post statistics

获取帖子统计数据

curl -X POST "https://api.publora.com/api/v1/linkedin-post-statistics"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platformId": "linkedin-abc123", "postedId": "urn:li:share:7123456789012345678", "queryTypes": "ALL" }'
curl -X POST "https://api.publora.com/api/v1/linkedin-post-statistics"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platformId": "linkedin-abc123", "postedId": "urn:li:share:7123456789012345678", "queryTypes": "ALL" }'

Get account statistics

获取账户统计数据

curl -X POST "https://api.publora.com/api/v1/linkedin-account-statistics"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platformId": "linkedin-abc123", "queryTypes": "ALL" }'

**Platform ID Format:** `linkedin-{id}` where `{id}` is from `/platform-connections` response.

Example IDs: `linkedin-Tz9W5i6ZYG`, `linkedin-abc123xyz`

📖 **Full API documentation:** [docs.publora.com](https://docs.publora.com)
curl -X POST "https://api.publora.com/api/v1/linkedin-account-statistics"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platformId": "linkedin-abc123", "queryTypes": "ALL" }'

**平台ID格式:** `linkedin-{id}`,其中`{id}`来自`/platform-connections`接口的返回结果。

示例ID:`linkedin-Tz9W5i6ZYG`、`linkedin-abc123xyz`

📖 **完整API文档:** [docs.publora.com](https://docs.publora.com)

Analytics Tools

分析工具

linkedin_post_stats

linkedin_post_stats

Get engagement metrics for a specific LinkedIn post.
Parameters:
  • postedId
    : LinkedIn post URN (e.g.,
    urn:li:share:123456
    or
    urn:li:ugcPost:123456
    )
  • platformId
    : Platform connection ID (e.g.,
    linkedin-abc123
    )
  • queryTypes
    (optional): Metrics to fetch:
    IMPRESSION
    ,
    MEMBERS_REACHED
    ,
    RESHARE
    ,
    REACTION
    ,
    COMMENT
Response includes:
  • Impressions (total views)
  • Unique impressions (members reached)
  • Reactions count
  • Comments count
  • Shares/reposts
  • Engagement rate
获取特定LinkedIn帖子的互动指标。
参数:
  • postedId
    : LinkedIn帖子URN(例如:
    urn:li:share:123456
    urn:li:ugcPost:123456
  • platformId
    : 平台关联ID(例如:
    linkedin-abc123
  • queryTypes
    (可选):要获取的指标类型:
    IMPRESSION
    MEMBERS_REACHED
    RESHARE
    REACTION
    COMMENT
返回内容包括:
  • 曝光量(总浏览次数)
  • 独立曝光量(触达的用户数)
  • 点赞总数
  • 评论总数
  • 转发/分享数
  • 互动率

linkedin_account_stats

linkedin_account_stats

Get aggregated statistics for your LinkedIn account.
Parameters:
  • platformId
    : Platform connection ID
  • queryTypes
    (optional): Metrics to fetch
  • aggregation
    (optional):
    DAILY
    or
    TOTAL
    (default: TOTAL)
获取LinkedIn账户的汇总统计数据。
参数:
  • platformId
    : 平台关联ID
  • queryTypes
    (可选):要获取的指标类型
  • aggregation
    (可选):
    DAILY
    (按日汇总)或
    TOTAL
    (总计,默认值)

linkedin_followers

linkedin_followers

Get follower count or growth over time.
Parameters:
  • platformId
    : Platform connection ID
  • period
    (optional):
    lifetime
    or
    daily
  • dateRange
    (optional): For daily period:
    {start: {year, month, day}, end: {year, month, day}}
获取粉丝数量或粉丝增长趋势。
参数:
  • platformId
    : 平台关联ID
  • period
    (可选):
    lifetime
    (全部时间)或
    daily
    (每日)
  • dateRange
    (可选):当period为daily时使用:
    {start: {year, month, day}, end: {year, month, day}}

linkedin_profile_summary

linkedin_profile_summary

Get a combined profile overview with followers and stats.
Parameters:
  • platformId
    : Platform connection ID
  • dateRange
    (optional): Date range for stats
获取包含粉丝数据和统计信息的个人主页综合概览。
参数:
  • platformId
    : 平台关联ID
  • dateRange
    (可选):统计数据的日期范围

Engagement Tools

互动工具

linkedin_create_reaction

linkedin_create_reaction

React to a LinkedIn post.
Parameters:
  • postedId
    : LinkedIn post URN
  • platformId
    : Platform connection ID
  • reactionType
    : One of the following:
TypeDescription
LIKE
Standard thumbs up
PRAISE
Clapping hands / applause
EMPATHY
Heart / love
INTEREST
Lightbulb / insightful
APPRECIATION
Supportive
ENTERTAINMENT
Funny / laughing
为LinkedIn帖子点赞。
参数:
  • postedId
    : LinkedIn帖子URN
  • platformId
    : 平台关联ID
  • reactionType
    : 以下类型之一:
类型描述
LIKE
标准点赞(竖起大拇指)
PRAISE
鼓掌/喝彩
EMPATHY
爱心/喜欢
INTEREST
灯泡/有见解
APPRECIATION
支持
ENTERTAINMENT
有趣/大笑

linkedin_delete_reaction

linkedin_delete_reaction

Remove your reaction from a post.
Parameters:
  • postedId
    : LinkedIn post URN
  • platformId
    : Platform connection ID
移除对帖子的点赞。
参数:
  • postedId
    : LinkedIn帖子URN
  • platformId
    : 平台关联ID

linkedin_create_comment

linkedin_create_comment

Post a comment on a LinkedIn post (max 1,250 characters).
Parameters:
  • postedId
    : LinkedIn post URN
  • platformId
    : Platform connection ID
  • message
    : Comment text (max 1,250 characters)
  • parentComment
    (optional): Comment URN for nested replies
在LinkedIn帖子下发表评论(最多1250字符)。
参数:
  • postedId
    : LinkedIn帖子URN
  • platformId
    : 平台关联ID
  • message
    : 评论内容(最多1250字符)
  • parentComment
    (可选):嵌套回复的评论URN

linkedin_delete_comment

linkedin_delete_comment

Remove a comment you made.
Parameters:
  • postedId
    : LinkedIn post URN
  • commentId
    : Comment URN or numeric ID
  • platformId
    : Platform connection ID
移除自己发表的评论。
参数:
  • postedId
    : LinkedIn帖子URN
  • commentId
    : 评论URN或数字ID
  • platformId
    : 平台关联ID

Example Prompts

示例提示词

Weekly Performance Review

每周表现复盘

Analyze my LinkedIn performance for the last 7 days.
Show me:
1. Which posts performed best
2. My engagement rate trends
3. Follower growth
4. Recommendations for improvement
分析我过去7天的LinkedIn表现。
请展示:
1. 表现最佳的帖子
2. 互动率趋势
3. 粉丝增长情况
4. 改进建议

Post Analysis

帖子分析

Get detailed stats for my last 5 LinkedIn posts and identify patterns in what content resonates with my audience.
获取我最近5条LinkedIn帖子的详细统计数据,并找出受众感兴趣的内容模式。

Engagement Campaign

互动活动

React with PRAISE to my colleague's post about their promotion (urn:li:share:123456) and add a congratulatory comment.
为我同事关于晋升的帖子(URN:urn:li:share:123456)点PRAISE赞,并添加一条祝贺评论。

Follower Tracking

粉丝追踪

Show my LinkedIn follower growth for the last 30 days. How many new followers did I gain each week?
展示我过去30天的LinkedIn粉丝增长情况。每周新增多少粉丝?

Metrics Reference

指标参考

MetricDescription
IMPRESSION
Total times content appeared in feeds
MEMBERS_REACHED
Unique LinkedIn members who saw the post
RESHARE
Number of reposts/shares
REACTION
Total reactions (all types combined)
COMMENT
Number of comments
指标描述
IMPRESSION
内容在信息流中出现的总次数
MEMBERS_REACHED
看到帖子的独立LinkedIn用户数
RESHARE
转发/分享次数
REACTION
总点赞数(所有类型合计)
COMMENT
评论数量

Engagement Rate Benchmarks

互动率基准

Average LinkedIn engagement rates by follower count:
FollowersGood Engagement Rate
< 5K3-5%
5K-50K2-3%
50K+1-2%
Good performing posts typically have:
  • 2x your average impressions
  • Comment-to-reaction ratio above 10%
  • Engagement rate above your baseline
按粉丝数量划分的LinkedIn平均互动率:
粉丝数量良好互动率
< 5K3-5%
5K-50K2-3%
50K+1-2%
表现良好的帖子通常具备:
  • 曝光量达到平均水平的2倍
  • 评论点赞比超过10%
  • 互动率高于基准值

Important Notes

重要说明

  1. Analytics delay: LinkedIn analytics may take up to 24 hours to fully populate. Querying immediately after posting returns partial data.
  2. URN formats: LinkedIn URLs use
    urn:li:activity:xxx
    but the API requires
    urn:li:share:xxx
    or
    urn:li:ugcPost:xxx
    . Use the
    postedId
    from Publora's
    get_post
    response for accurate URNs.
  3. Caching: Analytics responses may be cached. The response includes a
    cached
    field indicating if data came from cache.
  4. Rate limits: LinkedIn has approximately 200+ API calls per hour. Implement backoff on 429 errors.
  1. 分析数据延迟:LinkedIn分析数据可能需要长达24小时才能完全更新。帖子发布后立即查询会返回部分数据。
  2. URN格式:LinkedIn URL使用
    urn:li:activity:xxx
    ,但API要求使用
    urn:li:share:xxx
    urn:li:ugcPost:xxx
    格式。请使用Publora的
    get_post
    接口返回的
    postedId
    获取准确的URN。
  3. 缓存机制:分析数据的响应可能来自缓存。响应中包含
    cached
    字段,用于指示数据是否来自缓存。
  4. 调用限制:LinkedIn每小时约允许200次以上API调用。遇到429错误时请实现退避重试机制。

Troubleshooting

故障排查

ErrorCauseSolution
"Platform ID not found"Invalid connection IDRun
list_connections
to get valid IDs
"Post not found"Wrong URN formatUse
urn:li:share:
or
urn:li:ugcPost:
format
429 Too Many RequestsRate limitedWait and retry with exponential backoff
"message cannot exceed 1250 characters"Comment too longShorten comment to under 1,250 chars
错误原因解决方案
"Platform ID not found"关联ID无效调用
list_connections
获取有效ID
"Post not found"URN格式错误使用
urn:li:share:
urn:li:ugcPost:
格式
429 Too Many Requests触发调用限制等待后使用指数退避重试
"message cannot exceed 1250 characters"评论过长将评论缩短至1250字符以内