> ## 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.

# Links 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"]} maxPackRequired={true} />

通过 /links 接口，你可以缩短链接并将其包含在社交帖子中。

Ayrshare 链接缩短服务为社交发布带来多项有价值的收益。

<ul class="custom-bullets">
  <li>将冗长复杂的 URL 精简为更美观、简洁、易记的链接。</li>
  <li>提供分析和追踪能力，可监控链接表现、互动情况和受众洞察。</li>
  <li>节省宝贵的字符空间，尤其在 Twitter 等字符数限制严格的平台上。</li>
  <li>使用你自己的 URL 添加自定义链接域名。</li>
</ul>

## 自定义链接域名

自定义链接域名允许你个性化并品牌化用于链接缩短与重定向的域名。
你不必使用通用的链接缩短域名（如 bit.ly、ayr.app），而是可以使用自己的域名创建缩短链接。

请联系我们以设置你的自定义域名。仅在 Business plan 与 Enterprise plan 提供。
