> ## 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>將冗長且複雜的網址壓縮為更美觀、簡潔且易記的連結。</li>
  <li>具備分析與追蹤功能，可監控連結表現、互動狀況與受眾洞察。</li>
  <li>節省寶貴的字元空間，尤其是在 Twitter 等字元限制嚴格的平台上。</li>
  <li>可使用自訂的網址網域來建立品牌化的短連結。</li>
</ul>

## 自訂連結網域

自訂連結網域讓你可以個人化並品牌化短連結與轉址所使用的網域名稱。
你可以使用自己的網域名稱來建立短連結，而不必使用一般的縮網址網域（例如 bit.ly、ayr.app）。

若要設定自訂網域，請聯絡我們。此功能適用於 Business 與 Enterprise 方案。
