> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 分析 API 概述

> 获取帖子和社交账户的实时分析数据，例如点击、点赞、分享、粉丝和展示次数

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "business") {
      displayPlans = ["Launch", "Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Launch", "Business", "Enterprise"];
    }
  }
  return <Note>
Available on {displayPlans.length === 1 ? "the " : ""}
{displayPlans.join(", ").replace(/\b\w/g, l => l.toUpperCase())}{" "}
{displayPlans.length > 1 ? "plans" : "plan"}.

{maxPackRequired && <span onClick={() => window.open('https://www.ayrshare.com/docs/additional/maxpack', '_self')} className="flex items-center mt-2 cursor-pointer">
 <span className="px-1.5 py-0.5 rounded text-sm" style={{
    backgroundColor: '#C264B6',
    color: 'white',
    fontSize: '12px'
  }}>
   Max Pack required
 </span>
</span>}
</Note>;
};

<PlansAvailable plans={["premium"]} />

Ayrshare 的一项关键能力是可以获取帖子和社交账户的实时分析数据。
具体而言，你可以衡量并分析用户内容的表现和互动情况，例如视频观看次数、点赞、链接点击和分享，以及用户的影响力。
借助分析数据，你可以为用户构建自定义报告、将数据回传到你的 AI 模型中，或对帖子表现进行分析。

分析端点主要有三种类型：

1. 帖子分析：获取某条帖子的分析数据
2. 社交分析：获取某个社交账户的分析数据
3. 链接分析：获取某个短链接的分析数据

## 帖子分析

可以获取单条帖子的分析数据。如果你希望获取某条特定帖子（无论是通过 Ayrshare 发送还是在社交网络上手动发布的）的详细分析数据，这非常有用。

以下社交网络支持帖子分析：

<ul className="custom-bullets">
  <li>Bluesky</li>
  <li>Facebook</li>
  <li>Instagram</li>
  <li>LinkedIn</li>
  <li>Pinterest</li>
  <li>Reddit</li>
  <li>Snapchat</li>
  <li>Threads</li>
  <li>TikTok</li>
  <li>YouTube</li>
  <li>X/Twitter</li>
</ul>

可以通过提供 Ayrshare 帖子 ID 或原始帖子的社交帖子 ID 来获取特定帖子的分析数据。

## 社交分析

你还可以获取账户级别的社交分析数据，例如互动、粉丝数量与人口统计信息，以及账户元数据。
如果你想获取整个社交账户（而不是某条特定帖子）的分析数据，请使用此端点。

以下社交网络支持社交账户级别的分析：

<ul className="custom-bullets">
  <li>Facebook</li>
  <li>Google Business Profile</li>
  <li>Instagram</li>
  <li>LinkedIn</li>
  <li>Pinterest</li>
  <li>Reddit</li>
  <li>Snapchat</li>
  <li>Threads</li>
  <li>TikTok</li>
  <li>YouTube</li>
  <li>X/Twitter</li>
</ul>

你也可以选择获取聚合摘要或按天的社交分析数据。

## 链接分析

你还可以获取短链接的分析数据。如果你想了解某个链接（无论是通过 Ayrshare 发送还是在社交网络上手动发布的）收到了多少点击，这非常有用。

链接分析数据可在 /links 端点中找到。

<Card title="链接分析" icon="code" href="/apis/links/link-analytics" horizontal>
  获取短链接的分析数据。
</Card>
