360 Secure SkillHub
360 安全技能中心

publora-linkedin-analytics

通过 Publora 的 REST 接口获取 LinkedIn 帖子的曝光、触达、反应、评论、转发以及账号粉丝增长数据,并以简短表格汇报;经用户确认后,再用 Publora MCP 工具执行点赞、评论、转发、删除和个人资料提及解析。该 Skill 不负责发帖。

分类:营销
publora
热度 18.86
最近更新 2026-11-30 22:16:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add publora/publora-linkedin-analytics
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
publora-linkedin-analytics
description
Analyze LinkedIn performance and manage engagement through Publora. Use when the user asks how a LinkedIn post or account performed (impressions, reach, reactions, comments, reshares, follower growth) or wants to react, comment, reshare or resolve an @mention. Statistics run over the REST API, engagement over MCP tools. Not for creating posts (use the publora-linkedin skill). Trigger with "how did my LinkedIn post do", "LinkedIn impressions", "LinkedIn follower growth", "like this LinkedIn post" or "comment on this LinkedIn post".
version
1.0.1
metadata
{"openclaw":{"requires":{"env":["PUBLORA_API_KEY"],"bins":["curl"]},"primaryEnv":"PUBLORA_API_KEY","envVars":[{"name":"PUBLORA_API_KEY","required":true,"description":"Publora API key (sk_...) from app.publora.com/dashboard/api. LinkedIn statistics are only available over the REST API, which needs this key."}],"homepage":"https://publora.com"}}

LinkedIn Analytics

Overview

Track impressions, engagement and follower growth for your LinkedIn posts and profile, and interact with posts through reactions, comments and reshares. Statistics come from the REST API; reactions, comments, reshares and mention lookups are MCP tools.

Prerequisites

  • A Publora account. LinkedIn connected with OAuth in the Publora dashboard.
  • PUBLORA_API_KEY set to a Publora API key from app.publora.com/dashboard/api (statistics use the REST API).
  • For reactions, comments and reshares: the Publora MCP server (https://mcp.publora.com/mcp) connected to your agent, see setup.

Read these only when you need them:

Plans: Works on the free Starter plan. Current limits and pricing: publora.com/pricing.

Instructions

Workflow

  1. Call list_connections and pick the LinkedIn connection; copy its platformId verbatim.
  2. For numbers, call the REST analytics endpoints listed below with the key from $PUBLORA_API_KEY. The MCP tools post_stats and profile_stats do not cover LinkedIn.
  3. Before any reaction, comment or reshare, show the user exactly what will be posted under their name and wait for a yes.
  4. Run the engagement tool and report the id it returns.

Analytics Tools (REST only)

LinkedIn analytics are not exposed as MCP tools. The MCP server carries posting, media and LinkedIn engagement tools; statistics live only on the REST API, so call these endpoints directly with the x-publora-key header. Asking an agent for an linkedin_post_stats MCP tool will fail: there is no such tool.

POST /linkedin-post-statistics

Engagement metrics for one post.

Body:

  • platformId: platform connection ID (e.g. linkedin-abc123), from list_connections
  • postedId: post URN (urn:li:share:... or urn:li:ugcPost:...)
  • queryTypes (optional): IMPRESSION, MEMBERS_REACHED, RESHARE, REACTION, COMMENT, or ALL

Returns: impressions, unique impressions (members reached), reactions, comments, reshares, and a cached flag telling you whether the numbers came from cache.

POST /linkedin-account-statistics

Aggregated statistics for the account.

Body: platformId, optional queryTypes, optional aggregation (DAILY or TOTAL, default TOTAL).

POST /linkedin-followers

Follower count or growth over time.

Body: platformId, optional period (lifetime or daily), optional dateRange ({start: {year, month, day}, end: {year, month, day}}).

POST /linkedin-profile-summary

Combined profile overview: followers plus statistics.

Body: platformId, optional dateRange.

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

Engagement Tools

linkedin_create_reaction

React to a LinkedIn post.

Parameters:

  • postedId: LinkedIn post URN
  • platformId: Platform connection ID
  • reactionType: One of the following:
Type Description
LIKE Standard thumbs up
PRAISE Clapping hands / applause
EMPATHY Heart / love
INTEREST Lightbulb / insightful
APPRECIATION Supportive
ENTERTAINMENT Funny / laughing

linkedin_delete_reaction

Remove your reaction from a post.

Parameters:

  • postedId: LinkedIn post URN
  • platformId: Platform connection ID

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_delete_comment

Remove a comment you made.

Parameters:

  • postedId: LinkedIn post URN
  • commentId: Comment URN or numeric ID
  • platformId: Platform connection ID

linkedin_create_reshare

Reshare an existing post, with optional commentary.

Parameters:

  • platformId: platform connection ID
  • parent: the post to reshare, as a share URN (urn:li:share:... or urn:li:ugcPost:...). Note the name: this tool takes parent, not postedId like the reaction and comment tools.
  • commentary (optional): your text above the reshare, up to 3,000 characters
  • visibility (optional): PUBLIC or CONNECTIONS, default PUBLIC. CONNECTIONS is for personal accounts.

Note: a LinkedIn feed URL carries an activity id, which is not always the same as the share id. Use the postedId returned by get_post, not a hand-converted activity id.

linkedin_list_mentionables

Resolve names to the URNs that @mentions need, so you never hand-write a member id.

Parameters:

  • q (optional): the name to search for
  • limit (optional): how many results to return

Both are optional, and this tool takes no platformId: it searches across the account rather than one connection.

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.

Output

Statistics come back as JSON from the REST endpoints: impressions, reactions, comments and reshares per post, and follower and profile numbers for the account. Engagement actions (reaction, comment, reshare) return the created object's id, which you need to undo them.

Report the numbers to the user in a short table and say which post or account they belong to.

Error Handling

Examples

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

Post Analysis

Get detailed stats for my last 5 LinkedIn posts and identify patterns in what content works best with my audience.

Engagement Campaign

React with PRAISE to my colleague's post about their promotion (urn:li:share:123456) and add a congratulatory comment.

Follower Tracking

Show my LinkedIn follower growth for the last 30 days. How many new followers did I gain each week?

Resources