/ayrshare:analyticsfrom Ayrshare - Unified Social Media API for AI Agents
Retrieves social media analytics for Ayrshare-connected accounts: per-post engagement (likes, comments, shares, views) and network-level metrics (followers, impressions, reach, demographics).
Ships in Ayrshare - Unified Social Media API for AI Agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Three analytics tools, split by what they measure and which kind of id identifies the post. Picking the wrong one is the main failure mode in this group, so anchor on the distinction before calling any of them:
mcp__ayrshare__get_post_analytics — metrics for one specific post sent via Ayrshare: its likes, comments, shares, views, etc. Identify the post by its Ayrshare Post ID (the id returned by mcp__ayrshare__create_post or found via mcp__ayrshare__get_post_history).mcp__ayrshare__get_post_analytics_by_social_id — the same per-post metrics, but for a post identified by its native Social Post ID (the network's own id). Use this for posts that did not originate via Ayrshare, or when all you have is the native id.mcp__ayrshare__get_social_network_analytics — account/network-level analytics for a connected social network: followers, impressions, views, demographics, and other profile-level numbers (and reach, where the platform provides it). This is the social network account's analytics, not an Ayrshare User Profile's.All three are profile-scoped: choose the profile with an optional profileKey tool argument or the Profile-Key header (see Auth below; the argument wins when both are set).
| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__get_post_analytics | Engagement metrics for a post sent via Ayrshare | POST /analytics/post | id — the Ayrshare Post ID | platforms (subset of POST_PLATFORMS) |
mcp__ayrshare__get_post_analytics_by_social_id | Engagement metrics for a post by its native Social Post ID | POST /analytics/post | id — the native Social Post ID; platform — exactly one of ANALYTICS_PLATFORMS | — (none) |
mcp__ayrshare__get_social_network_analytics | Account/network-level analytics (followers, impressions, views, demographics) | POST /analytics/social | platforms — array of POST_PLATFORMS | quarters (1–4), daily (bool), period60Days (bool, TikTok; not with daily), youtube ({ lifetime: bool }), userId (X only), userName (X only) |
ANALYTICS_PLATFORMS (for get_post_analytics_by_social_id): bluesky, facebook, instagram, linkedin, pinterest, reddit, snapchat, threads, tiktok, twitter, youtube.
Full input schemas, example payloads, the per-platform metric notes, and example responses are in references/schemas.md.
All three tools are profile-scoped: choose the profile with an optional profileKey tool argument or the Profile-Key connection header (the argument wins when both are set). To read a specific client's analytics, pass that client's profileKey as the argument, or configure the connection's Profile-Key; with neither set, calls read the account's primary/Business profile. Full model: ../getting-started/SKILL.md.
Exception, get_social_network_analytics userId/userName (Twitter/X): targeting a specific X user by userId (numeric Twitter ID) or userName (handle) instead of the linked account must use the API key only; that lookup is not profile-scoped. Supplying a profileKey (argument or Profile-Key header) alongside userId/userName returns Error 400. All other analytics calls are profile-scoped as above. See references/schemas.md.
get_social_network_analytics with the platform(s). Post-level and network-level tools are not interchangeable and rarely both needed for one question.get_post_analytics. Pass the Ayrshare Post id returned by mcp__ayrshare__create_post (or found via mcp__ayrshare__get_post_history). Optionally narrow to a subset of platforms. This is the recommended path for any Ayrshare-sent post.get_post_analytics_by_social_id. Pass the social network's native post id as id plus exactly one platform from ANALYTICS_PLATFORMS. mcp__ayrshare__get_platform_history is one way to find that native id (the id field), but only for the platforms it covers — it excludes gmb, reddit, and telegram, so for a network it doesn't cover (e.g. reddit, which is an ANALYTICS_PLATFORMS value) take the native id from the platform itself. See the History skill for that workflow.get_post_analytics, look up the Ayrshare id via create_post output or mcp__ayrshare__get_post_history. For get_post_analytics_by_social_id, look up the native Social Post ID via mcp__ayrshare__get_platform_history where it's supported (it excludes gmb, reddit, telegram); otherwise take the native id directly from the platform. If the user only describes a post in prose, resolve the id before calling.get_social_network_analytics is the social network account's analytics. Pass the platforms array you want network-level metrics for. Some metrics require platform eligibility (e.g. business/creator accounts). It does not describe an Ayrshare User Profile — it describes the connected social account itself.get_post_analytics / get_post_analytics_by_social_id are per post; get_social_network_analytics is account/network-level (followers/impressions/views). If the user asks about a post, the network tool will not have post metrics, and vice versa.get_post_analytics; a native Social Post ID goes to get_post_analytics_by_social_id. Passing a native id to get_post_analytics (or vice versa) returns nothing useful.get_post_analytics_by_social_id needs exactly one platform. It takes a single platform value (singular), not an array — the network you're querying the native id on.profileKey argument or the Profile-Key header. To read a specific client's analytics, pass that client's profileKey as the argument or set the connection's Profile-Key; the argument wins when both are set. (See ../getting-started/SKILL.md.)mcp__ayrshare__explain_error, then surface it — don't loop. These are reads, but a 4xx (bad id, wrong platform, ineligible account) won't fix itself on retry. Translate the error via mcp__ayrshare__explain_error and present it. 429 gets at most one retry. (Mirrors the global retry-safety rule.)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshare13 skills in this plugin
/commentsUse whenever someone wants to read, add, or reply to comments on a social media post through the Ayrshare MCP server — the `mcp__ayrshare__get_comments`, `mcp__ayrshare__add_comment`, and `mcp__ayrshare__reply_comment` tools. Trigger on phrasings like "leave a comment on that post", "reply to that commenter", "respond to the top comment", "what are people saying on my LinkedIn post", "pull the comments", or "answer the question someone left on Instagram" — even if the user never says "Ayrshare", "MCP", or names a tool. Also trigger when a user wants to engage with an audience under an existing post rather than create a new post. For installing/configuring the server and the auth model, this skill cross-links to `../getting-started/SKILL.md`. To create the post being commented on, see `../post/SKILL.md`.
/draft-in-brand-voiceDraft social posts that match a brand's established voice for the Ayrshare MCP server: first pull the profile's own past posts (history) to read tone, format, and what performed, then write platform-appropriate copy in that voice and validate it before anything publishes. Use whenever someone wants on-brand content rather than generic copy: "write a post the way we usually post", "draft this in our brand voice", "match our tone", "write like our LinkedIn", or any time content is created for a profile whose established style should be matched. Trigger even without the word "Ayrshare": if the user wants content that sounds like an existing account, this is the skill. It pulls history (`get_post_history` / `get_platform_history`), optionally `get_post_analytics` for what worked, drafts via `generate_post` or your own copy, then checks with `validate_post`. It produces DRAFTS only and never publishes; publishing is the explicit `create_post` step in `../post/SKILL.md`.
Other plugins' skills for the same job