linkedin-analytics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinkedIn 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
快速开始
- Create account at publora.com/register (free)
- Connect LinkedIn via OAuth in Publora Dashboard
- Get API key at publora.com/settings/api
- 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"
}
}
}
}- 在publora.com/register创建账户(免费)
- 在Publora控制台通过OAuth关联LinkedIn账号
- 在publora.com/settings/api获取API密钥
- 在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/v1Authentication: Use header (NOT ):
x-publora-keyAuthorization: Bearerbash
undefined如果MCP服务器不可用或返回错误,可直接使用REST API:
基础URL:
https://api.publora.com/api/v1认证方式: 使用请求头(而非):
x-publora-keyAuthorization: Bearerbash
undefinedGet your connected platforms
获取已关联的平台
curl -X GET "https://api.publora.com/api/v1/platform-connections"
-H "x-publora-key: sk_your_api_key"
-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"
-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" }'
-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" }'
-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" }'
-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" }'
-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:
- : LinkedIn post URN (e.g.,
postedIdorurn:li:share:123456)urn:li:ugcPost:123456 - : Platform connection ID (e.g.,
platformId)linkedin-abc123 - (optional): Metrics to fetch:
queryTypes,IMPRESSION,MEMBERS_REACHED,RESHARE,REACTIONCOMMENT
Response includes:
- Impressions (total views)
- Unique impressions (members reached)
- Reactions count
- Comments count
- Shares/reposts
- Engagement rate
获取特定LinkedIn帖子的互动指标。
参数:
- : LinkedIn帖子URN(例如:
postedId或urn:li:share:123456)urn:li:ugcPost:123456 - : 平台关联ID(例如:
platformId)linkedin-abc123 - (可选):要获取的指标类型:
queryTypes、IMPRESSION、MEMBERS_REACHED、RESHARE、REACTIONCOMMENT
返回内容包括:
- 曝光量(总浏览次数)
- 独立曝光量(触达的用户数)
- 点赞总数
- 评论总数
- 转发/分享数
- 互动率
linkedin_account_stats
linkedin_account_stats
Get aggregated statistics for your LinkedIn account.
Parameters:
- : Platform connection ID
platformId - (optional): Metrics to fetch
queryTypes - (optional):
aggregationorDAILY(default: TOTAL)TOTAL
获取LinkedIn账户的汇总统计数据。
参数:
- : 平台关联ID
platformId - (可选):要获取的指标类型
queryTypes - (可选):
aggregation(按日汇总)或DAILY(总计,默认值)TOTAL
linkedin_followers
linkedin_followers
Get follower count or growth over time.
Parameters:
- : Platform connection ID
platformId - (optional):
periodorlifetimedaily - (optional): For daily period:
dateRange{start: {year, month, day}, end: {year, month, day}}
获取粉丝数量或粉丝增长趋势。
参数:
- : 平台关联ID
platformId - (可选):
period(全部时间)或lifetime(每日)daily - (可选):当period为daily时使用:
dateRange{start: {year, month, day}, end: {year, month, day}}
linkedin_profile_summary
linkedin_profile_summary
Get a combined profile overview with followers and stats.
Parameters:
- : Platform connection ID
platformId - (optional): Date range for stats
dateRange
获取包含粉丝数据和统计信息的个人主页综合概览。
参数:
- : 平台关联ID
platformId - (可选):统计数据的日期范围
dateRange
Engagement Tools
互动工具
linkedin_create_reaction
linkedin_create_reaction
React to a LinkedIn post.
Parameters:
- : LinkedIn post URN
postedId - : Platform connection ID
platformId - : One of the following:
reactionType
| Type | Description |
|---|---|
| Standard thumbs up |
| Clapping hands / applause |
| Heart / love |
| Lightbulb / insightful |
| Supportive |
| Funny / laughing |
为LinkedIn帖子点赞。
参数:
- : LinkedIn帖子URN
postedId - : 平台关联ID
platformId - : 以下类型之一:
reactionType
| 类型 | 描述 |
|---|---|
| 标准点赞(竖起大拇指) |
| 鼓掌/喝彩 |
| 爱心/喜欢 |
| 灯泡/有见解 |
| 支持 |
| 有趣/大笑 |
linkedin_delete_reaction
linkedin_delete_reaction
Remove your reaction from a post.
Parameters:
- : LinkedIn post URN
postedId - : Platform connection ID
platformId
移除对帖子的点赞。
参数:
- : LinkedIn帖子URN
postedId - : 平台关联ID
platformId
linkedin_create_comment
linkedin_create_comment
Post a comment on a LinkedIn post (max 1,250 characters).
Parameters:
- : LinkedIn post URN
postedId - : Platform connection ID
platformId - : Comment text (max 1,250 characters)
message - (optional): Comment URN for nested replies
parentComment
在LinkedIn帖子下发表评论(最多1250字符)。
参数:
- : LinkedIn帖子URN
postedId - : 平台关联ID
platformId - : 评论内容(最多1250字符)
message - (可选):嵌套回复的评论URN
parentComment
linkedin_delete_comment
linkedin_delete_comment
Remove a comment you made.
Parameters:
- : LinkedIn post URN
postedId - : Comment URN or numeric ID
commentId - : Platform connection ID
platformId
移除自己发表的评论。
参数:
- : LinkedIn帖子URN
postedId - : 评论URN或数字ID
commentId - : 平台关联ID
platformId
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
指标参考
| Metric | Description |
|---|---|
| Total times content appeared in feeds |
| Unique LinkedIn members who saw the post |
| Number of reposts/shares |
| Total reactions (all types combined) |
| Number of comments |
| 指标 | 描述 |
|---|---|
| 内容在信息流中出现的总次数 |
| 看到帖子的独立LinkedIn用户数 |
| 转发/分享次数 |
| 总点赞数(所有类型合计) |
| 评论数量 |
Engagement Rate Benchmarks
互动率基准
Average LinkedIn engagement rates by follower count:
| Followers | Good Engagement Rate |
|---|---|
| < 5K | 3-5% |
| 5K-50K | 2-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平均互动率:
| 粉丝数量 | 良好互动率 |
|---|---|
| < 5K | 3-5% |
| 5K-50K | 2-3% |
| 50K+ | 1-2% |
表现良好的帖子通常具备:
- 曝光量达到平均水平的2倍
- 评论点赞比超过10%
- 互动率高于基准值
Important Notes
重要说明
-
Analytics delay: LinkedIn analytics may take up to 24 hours to fully populate. Querying immediately after posting returns partial data.
-
URN formats: LinkedIn URLs usebut the API requires
urn:li:activity:xxxorurn:li:share:xxx. Use theurn:li:ugcPost:xxxfrom Publora'spostedIdresponse for accurate URNs.get_post -
Caching: Analytics responses may be cached. The response includes afield indicating if data came from cache.
cached -
Rate limits: LinkedIn has approximately 200+ API calls per hour. Implement backoff on 429 errors.
-
分析数据延迟:LinkedIn分析数据可能需要长达24小时才能完全更新。帖子发布后立即查询会返回部分数据。
-
URN格式:LinkedIn URL使用,但API要求使用
urn:li:activity:xxx或urn:li:share:xxx格式。请使用Publora的urn:li:ugcPost:xxx接口返回的get_post获取准确的URN。postedId -
缓存机制:分析数据的响应可能来自缓存。响应中包含字段,用于指示数据是否来自缓存。
cached -
调用限制:LinkedIn每小时约允许200次以上API调用。遇到429错误时请实现退避重试机制。
Troubleshooting
故障排查
| Error | Cause | Solution |
|---|---|---|
| "Platform ID not found" | Invalid connection ID | Run |
| "Post not found" | Wrong URN format | Use |
| 429 Too Many Requests | Rate limited | Wait and retry with exponential backoff |
| "message cannot exceed 1250 characters" | Comment too long | Shorten comment to under 1,250 chars |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| "Platform ID not found" | 关联ID无效 | 调用 |
| "Post not found" | URN格式错误 | 使用 |
| 429 Too Many Requests | 触发调用限制 | 等待后使用指数退避重试 |
| "message cannot exceed 1250 characters" | 评论过长 | 将评论缩短至1250字符以内 |