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

# Bluesky API

> 使用 Bluesky 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>;
};

## 發布到 Bluesky

使用 Bluesky API 發布含連結、標籤與圖片/影片的基本貼文，JSON 範例。
更多資訊請參閱 [Bluesky 媒體指南](/media-guidelines/bluesky) 與 [Bluesky 授權](/dashboard/connect-social-accounts/bluesky)：

<CodeGroup>
  ```json Bluesky Post with Image theme={"system"}
  {
    "post": "The best Bluesky image post ever #best", // Max 300 characters or empty string
    "mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"],
    "platforms": ["bluesky"]
  }
  ```

  ```json Bluesky Post with Video theme={"system"}
  {
    "post": "The best Bluesky video post ever https://www.google.com", // Max 300 characters or empty string
    "mediaUrls": ["https://img.ayrshare.com/012/vid.mp4"],
    "platforms": ["bluesky"]
  }
  ```
</CodeGroup>

### Bluesky 支援的功能

<ul class="custom-bullets">
  <li>Bluesky 支援文字、圖片（最多 4 張）、影片（僅 1 部），以及含連結或表情符號的貼文。</li>
  <li>單一貼文最多可傳送 4 張圖片或 1 部影片。</li>
  <li>貼文文字上限為 300 個字元。</li>
  <li>支援動態 GIF，會以影片形式傳送。</li>
  <li>Bluesky 支援標籤（hashtag）與提及（@handle）。</li>
  <li>圖片或影片的替代文字（alt text）。</li>
  <li>更多資訊請參閱 [Bluesky 媒體指南](/media-guidelines/bluesky)。</li>

  <li>
    支援貼文內的連結預覽。只要在貼文文字中加入連結，Ayrshare API 就會自動為該貼文加上連結預覽。
  </li>
</ul>

### Bluesky 尚未支援的功能

<ul class="custom-bullets">
  <li>Bluesky 目前尚未支援影片縮圖。</li>
</ul>

## Bluesky 提及

在貼文文字中加入 `@handle` 即可提及其他 Bluesky 使用者。例如：

```json Bluesky Post with Mention theme={"system"}
{
  "post": "The best Bluesky image post ever @handle",
  "platforms": ["bluesky"]
}
```

<Warning>
  請詳閱關於提及功能的[重要規則](/testing/post-verification#mentions)。
</Warning>

## 替代文字

為圖片或影片加上 Bluesky 的替代文字（也稱為 alt text）。
Bluesky 的 alt text 是一項無障礙功能，可提供額外的使用者資訊，並協助螢幕閱讀器讀取內容。

請在 `blueSkyOptions` 物件中使用 `altText`。

```json Bluesky Alt Text theme={"system"}
{
  "blueSkyOptions": {
    // Array of Alt Texts
    "altText": ["This is my best pic", "😃 here is the next one"]
  }
}
```

每個 alt text 必須對應到 `mediaUrls` 陣列中的一張圖片或一部影片，
並依序套用到每個媒體項目上。

## 字元限制

更多資訊請參閱 [Bluesky 字元限制](/help-center/technical-support/character_limits#bluesky-character-limits)。
