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

# Snapchat API

> 使用 Snapchat API 发布内容的选项

## 发布到 Snapchat

Snapchat API 支持将内容直接发布到 Stories 和 Spotlight。
Stories 是 24 小时后消失的临时帖子，而 Spotlight 帖子是永久性的，可以帮助创作者和企业触达更广泛的受众。

你可以在 Snapchat 上创建三种类型的帖子：

<ul className="custom-bullets">
  <li>[Stories](/apis/post/social-networks/snapchat#stories)</li>
  <li>[Saved Stories](/apis/post/social-networks/snapchat#saved-stories)</li>
  <li>[Spotlight](/apis/post/social-networks/snapchat#spotlight)</li>
</ul>

Snapchat 接受视频或图片媒体。每个帖子仅允许一个媒体项。

你可以通过以下方式了解更多关于 Snapchat API 的信息：

<ul className="custom-bullets">
  <li>[Snapchat 媒体指南](/media-guidelines/snapchat) 和 [Snapchat 授权](/dashboard/connect-social-accounts/snapchat)。</li>
  <li>[Snapchat API 集成指南](https://www.ayrshare.com/blog/complete-guide-to-snapchat-api-integration/)，了解更多关于如何在 Snapchat 上发布或获取分析数据的信息。</li>
</ul>

## Stories

Stories 是短暂的 Snap，好友、订阅者和非订阅者可在 Snapchat 应用的第 4 个 Discover 标签页动态中查看，持续时间最长 24 小时。

像发布任何其他帖子一样发布 Snapchat 故事：

```json Publish a Snapchat story theme={"system"}
{
  "post": "An amazing story", // empty string is allowed
  "platforms": ["snapchat"],
  "mediaUrl": ["https://img.ayrshare.com/video.mp4"]
}
```

## Saved Stories

Saved Stories 是永久性的 Stories，可无限期地在公开个人资料上查看。

使用 `snapChatOptions` 和 `savedStory` 选项发布 Snapchat Saved Story：

```json Publish a Snapchat saved story theme={"system"}
{
  "post": "An amazing saved story",
  "platforms": ["snapchat"],
  "mediaUrl": ["https://img.ayrshare.com/video.mp4"],
  "snapChatOptions": {
    "savedStory": true
  }
}
```

## Spotlight

Spotlights 是永久性视频 Snap，通过 Spotlight（Snapchat 的用户生成内容娱乐平台）分发并可供查看。
Spotlight 为创作者和企业提供了一个在 Snapchat 上扩大受众的渠道。

使用 `snapChatOptions` 和 `spotlight` 选项发布 Snapchat Spotlight：

```json Publish a Snapchat spotlight theme={"system"}
{
  "post": "An amazing spotlight",
  "platforms": ["snapchat"],
  "mediaUrl": ["https://img.ayrshare.com/video.mp4"],
  "snapChatOptions": {
    "spotlight": true
  }
}
```

## Snapchat 提及

目前，Spotlight 帖子中的用户提及（@username）无法通过 API 解析为交互式提及。相关文本将在你的 Spotlight 帖子中显示为纯文本，而不是创建可点击的用户链接。

```json Example with mentions (displays as plain text) theme={"system"}
{
  "post": "Check out this awesome content from @johndoe and @janedoe!",
  "platforms": ["snapchat"],
  "mediaUrl": ["https://img.ayrshare.com/image.jpg"],
  "snapChatOptions": {
    "spotlight": true
  }
}
```

## Snapchat 话题标签

Spotlight 帖子完全支持话题标签，有助于提高可发现性。你可以在帖子内容中包含多个话题标签，以对内容进行分类并触达相关受众。话题标签也可以点击。

```json Example with hashtags theme={"system"}
{
  "post": "Just launched our new product! 🚀 #ayrshare #tech #exciting",
  "platforms": ["snapchat"],
  "mediaUrl": ["https://img.ayrshare.com/product-launch.mp4"],
  "snapChatOptions": {
    "spotlight": true
  }
}
```

## 字符限制

更多信息请参见 [Snapchat 字符限制](/help-center/technical-support/character_limits#snapchat-character-limits)。
