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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 获取帖子媒体文件下载地址

> 已知 TikTok、抖音、快手或 YouTube 公开视频，Instagram、X、Facebook、Threads、Bluesky、LinkedIn、Telegram（频道）、Truth Social、Snapchat Spotlight、小红书（笔记）或微博公开帖子，Instagram 快拍或精选快拍，或已录制的 X Space 的 URL，需要其媒体文件下载地址时使用：视频（TikTok 和抖音含带水印和不带水印的版本，快手含全部清晰度）、图片、轮播帖或精选快拍的全部内容，或 Space 的音频。链接是平台自己的地址，会过期；TikTok 链接几小时后失效，请尽快下载。X Space 录音和 Bluesky 视频是 HLS 播放列表（.m3u8），可用 ffmpeg 等 HLS 工具下载。YouTube 返回一个最高画质文件，链接有效期一小时；很长或 4K 的视频可能超时，超时不收费。

上方请求和响应面板使用此 API 发布的 Schema。条件必填和参数组合限制属于请求契约；组合筛选条件或账号身份前，请查看完整 Schema。

## 示例

以下请求可直接运行；请求面板中也可选择同样的示例。

**NASA 在 X 上帖子的媒体**

```json theme={null}
{
  "input": {
    "platform": "x",
    "url": "https://x.com/NASA/status/2125691860706333095"
  }
}
```

**用 watch 链接下载 YouTube 视频**

```json theme={null}
{
  "input": {
    "platform": "youtube",
    "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  }
}
```

**National Geographic Instagram 帖子的媒体**

```json theme={null}
{
  "input": {
    "platform": "instagram",
    "url": "https://www.instagram.com/p/DgLcatkmlPq/"
  }
}
```

**微博视频帖子**

```json theme={null}
{
  "input": {
    "platform": "weibo",
    "url": "https://weibo.com/detail/5362588927919919"
  }
}
```

## 计费

| 输入 | 计价单位 | 价格 (USD) |
| - | - | - |
| /input/platform = bluesky | 每次成功请求 | 0.028 |
| /input/platform = douyin | 每次成功请求 | 0.002 |
| /input/platform = facebook | 每次成功请求 | 0.028 |
| /input/platform = instagram | 每次成功请求 | 0.028 |
| /input/platform = kuaishou | 每次成功请求 | 0.004 |
| /input/platform = linkedin | 每次成功请求 | 0.028 |
| /input/platform = snapchat | 每次成功请求 | 0.028 |
| /input/platform = telegram | 每次成功请求 | 0.028 |
| /input/platform = threads | 每次成功请求 | 0.028 |
| /input/platform = tiktok | 每次成功请求 | 0.028 |
| /input/platform = truthsocial | 每次成功请求 | 0.056 |
| /input/platform = weibo | 每次成功请求 | 0.002 |
| /input/platform = x | 每次成功请求 | 0.028 |
| /input/platform = xiaohongshu | 每次成功请求 | 0.0443 |
| /input/platform = youtube | 每次成功请求 | 0.0108 |

仅表内参数值有价格；未列出的值不会回退到基础价格。
成功交付才收费；正常查空不收费。

发送相同请求并带上 `X-AISA-Cost-Mode: quote`，获取与输入对应的报价；报价不执行任务，也不预扣资金。实际执行时预扣预计请求费用，按上述规则结算。用 `X-AISA-Max-Price-USD` 设置价格上限。

执行任务时使用 `Idempotency-Key`。错误时查看 `error.code`、`error.request_id`、`error.retryable` 和 `error.retry_hint`。提示先核对结算时，应先查询原请求再决定是否重试；不能把待结算当作已退款。


## OpenAPI

````yaml zh/tasks/openapi.json POST /v1/tasks/social.download_media
openapi: 3.1.0
info:
  title: AIsa Tasks
  version: '1'
  x-aisa-runtime-release:
    artifact_revision: 589d78a8db9b0fd97868ed4d06e6f07a512a0e670d8158d055d9aa0f616bb9c6
    compiler_revision: 5496cce04e1cab10732026179f949c9b8492a302
    source_digest: f21d121ff27a69b26294cf50642ef89d81b785cccb3c4a8a9c9a629e510961e2
    generation: 16507
servers:
  - url: https://api.aisa.one
security:
  - bearer: []
paths:
  /v1/tasks/social.download_media:
    post:
      tags:
        - 任务
      summary: 获取帖子媒体文件下载地址
      description: >-
        已知 TikTok、抖音、快手或 YouTube
        公开视频，Instagram、X、Facebook、Threads、Bluesky、LinkedIn、Telegram（频道）、Truth
        Social、Snapchat Spotlight、小红书（笔记）或微博公开帖子，Instagram 快拍或精选快拍，或已录制的 X Space
        的 URL，需要其媒体文件下载地址时使用：视频（TikTok
        和抖音含带水印和不带水印的版本，快手含全部清晰度）、图片、轮播帖或精选快拍的全部内容，或 Space
        的音频。链接是平台自己的地址，会过期；TikTok 链接几小时后失效，请尽快下载。X Space 录音和 Bluesky 视频是 HLS
        播放列表（.m3u8），可用 ffmpeg 等 HLS 工具下载。YouTube 返回一个最高画质文件，链接有效期一小时；很长或 4K
        的视频可能超时，超时不收费。
      operationId: task_social.download_media
      parameters:
        - name: Idempotency-Key
          in: header
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/social.download_media_request'
            examples:
              x_media:
                summary: NASA 在 X 上帖子的媒体
                value:
                  input:
                    platform: x
                    url: https://x.com/NASA/status/2125691860706333095
              youtube_video:
                summary: 用 watch 链接下载 YouTube 视频
                value:
                  input:
                    platform: youtube
                    url: https://www.youtube.com/watch?v=jNQXAC9IVRw
              instagram_post:
                summary: National Geographic Instagram 帖子的媒体
                value:
                  input:
                    platform: instagram
                    url: https://www.instagram.com/p/DgLcatkmlPq/
              weibo_video:
                summary: 微博视频帖子
                value:
                  input:
                    platform: weibo
                    url: https://weibo.com/detail/5362588927919919
      responses:
        '200':
          description: 成功交付或正常查空
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/social.download_media_response'
        default:
          description: 错误；以实际 HTTP 状态和重试指引为准
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/social.download_media_error'
components:
  schemas:
    social.download_media_request:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          properties:
            platform:
              type: string
              enum:
                - bluesky
                - douyin
                - facebook
                - instagram
                - kuaishou
                - linkedin
                - snapchat
                - telegram
                - threads
                - tiktok
                - truthsocial
                - weibo
                - x
                - xiaohongshu
                - youtube
              description: 帖子所在的社媒平台，必须与 URL 一致。
            url:
              type: string
              maxLength: 2048
              description: >-
                帖子的公开 URL。TikTok：视频链接；Instagram：/p/、/reel/ 或
                /tv/，单条快拍（/stories/<handle>/<快拍
                ID>/）或精选快拍（/stories/highlights/<ID>/）；X：x.com 或 twitter.com 的
                /status/，或 Space（/i/spaces/<ID>）；Facebook：帖子、Reel
                或视频的完整链接（/posts/、/permalink.php、/groups/.../posts/、/reel/、/watch?v=、/videos/）；YouTube：单个视频（watch?v=、youtu.be、/shorts/、/live/），不支持播放列表和频道；抖音：douyin.com
                的 /video/<ID> 或 /note/<ID>、带 modal_id=<ID>
                的页面、iesdouyin.com/share/video/<ID>，或 v.douyin.com
                分享链接；Threads、Bluesky、LinkedIn、Telegram、Truth Social 和
                Snapchat：帖子的完整链接，与 social.get_post
                相同；快手：www.kuaishou.com/short-video/<ID>，或
                v.kuaishou.com、kuaishou.com/f/ 分享链接；小红书：笔记
                URL（www.xiaohongshu.com/explore/<笔记 ID>，最好带上网页版给出的
                xsec_token）；微博：weibo.com/<uid>/<ID>、weibo.com/detail/<mid> 或
                m.weibo.cn/detail/<mid>。除 TikTok、抖音和快手外不接受其他短链接和分享链接。
          required:
            - platform
            - url
    social.download_media_response:
      additionalProperties: false
      properties:
        meta:
          additionalProperties: false
          properties:
            approximate_fields:
              items:
                type: string
              type:
                - array
                - 'null'
            delivered:
              type: boolean
            missing_fields:
              additionalProperties:
                description: >-
                  A stable missing-field reason, or distinct reasons separated
                  by '; '. Unrecognized internal diagnostics are reported as
                  unspecified.
                pattern: >-
                  ^(not_returned|not_supported|unparseable|continuation_failed|reference_identity_unverifiable|page_limit_reached|report_part_failed|some_account_identities_unusable|some_creators_unanalyzed|insufficient_analyzable_creators|pagination_not_reported|page_or_item_limit_reached|some_distributions_unusable|quote_not_usable|quote_availability_not_returned|quote_price_not_returned|unspecified)(;
                  (not_returned|not_supported|unparseable|continuation_failed|reference_identity_unverifiable|page_limit_reached|report_part_failed|some_account_identities_unusable|some_creators_unanalyzed|insufficient_analyzable_creators|pagination_not_reported|page_or_item_limit_reached|some_distributions_unusable|quote_not_usable|quote_availability_not_returned|quote_price_not_returned|unspecified))*$
                type: string
              type:
                - object
                - 'null'
          required:
            - missing_fields
            - approximate_fields
            - delivered
          type: object
        result:
          anyOf:
            - anyOf:
                - properties:
                    author:
                      description: 作者。
                      properties:
                        display_name:
                          description: 显示名称。
                          type:
                            - string
                            - 'null'
                        handle:
                          description: handle，不带开头的 @，不含空格或斜杠。
                          type:
                            - string
                            - 'null'
                        platform:
                          description: 账号所在平台。
                          enum:
                            - tiktok
                            - instagram
                            - x
                            - facebook
                            - youtube
                            - douyin
                            - threads
                            - bluesky
                            - linkedin
                            - telegram
                            - truthsocial
                            - snapchat
                            - kuaishou
                            - xiaohongshu
                            - weibo
                          type: string
                        url:
                          description: >-
                            主页 URL，平台规范域名下的 https
                            URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。
                          type:
                            - string
                            - 'null'
                        user_id:
                          description: 平台用户 ID（YouTube 上是频道 ID）。始终是字符串，平台用数字 ID 时也一样。
                          type:
                            - string
                            - 'null'
                      required:
                        - platform
                        - user_id
                        - handle
                        - display_name
                        - url
                      type:
                        - object
                        - 'null'
                    extras:
                      additionalProperties:
                        type: object
                      description: >-
                        平台特有字段，按平台分组（例如
                        extras.tiktok.sec_uid）。不属于稳定契约，不同调用返回的键可能不同。
                      type: object
                    media:
                      description: >-
                        可下载的媒体文件：先按帖子顺序列出各附件的最佳版本，再列出同一文件的其他版本。附件没有可用文件时 url 为
                        null。下载地址可能会过期，请在调用后尽快下载。X Space 的录音是一个 audio 项，其 url
                        是由音频分段组成的 HLS 播放列表（.m3u8），不是单个文件，请用 ffmpeg 等 HLS 工具下载。
                      items:
                        properties:
                          duration_seconds:
                            description: 时长（秒），用于视频和音频。
                            type:
                              - number
                              - 'null'
                          height:
                            description: 高度（像素）。
                            type:
                              - integer
                              - 'null'
                          thumbnail_url:
                            description: 缩略图或封面的 https URL。
                            type:
                              - string
                              - 'null'
                          type:
                            description: 媒体类型。
                            enum:
                              - image
                              - video
                              - audio
                              - other
                            type: string
                          url:
                            description: 媒体文件的 https URL。下载地址可能会过期。
                            type:
                              - string
                              - 'null'
                          width:
                            description: 宽度（像素）。
                            type:
                              - integer
                              - 'null'
                        required:
                          - type
                          - url
                          - thumbnail_url
                          - duration_seconds
                          - width
                          - height
                        type: object
                      type:
                        - array
                        - 'null'
                    platform:
                      description: 结果所在平台，等于请求里的 platform。
                      enum:
                        - tiktok
                        - instagram
                        - x
                        - facebook
                        - youtube
                        - douyin
                        - threads
                        - bluesky
                        - linkedin
                        - telegram
                        - truthsocial
                        - snapchat
                        - kuaishou
                        - xiaohongshu
                        - weibo
                      type: string
                    post_id:
                      description: 帖子 ID；URL 指向快拍、精选快拍或 Space 时为其 ID。
                      type:
                        - string
                        - 'null'
                    url:
                      description: >-
                        帖子 URL，平台规范域名下的 https
                        URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。抖音帖子的
                        URL 在 www.douyin.com 下。
                      type:
                        - string
                        - 'null'
                  required:
                    - platform
                    - post_id
                    - url
                    - author
                    - media
                  type: object
                - additionalProperties: false
                  properties:
                    by_source:
                      items:
                        additionalProperties: false
                        properties:
                          result:
                            anyOf:
                              - properties:
                                  author:
                                    description: 作者。
                                    properties:
                                      display_name:
                                        description: 显示名称。
                                        type:
                                          - string
                                          - 'null'
                                      handle:
                                        description: handle，不带开头的 @，不含空格或斜杠。
                                        type:
                                          - string
                                          - 'null'
                                      platform:
                                        description: 账号所在平台。
                                        enum:
                                          - tiktok
                                          - instagram
                                          - x
                                          - facebook
                                          - youtube
                                          - douyin
                                          - threads
                                          - bluesky
                                          - linkedin
                                          - telegram
                                          - truthsocial
                                          - snapchat
                                          - kuaishou
                                          - xiaohongshu
                                          - weibo
                                        type: string
                                      url:
                                        description: >-
                                          主页 URL，平台规范域名下的 https
                                          URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。
                                        type:
                                          - string
                                          - 'null'
                                      user_id:
                                        description: >-
                                          平台用户 ID（YouTube 上是频道 ID）。始终是字符串，平台用数字 ID
                                          时也一样。
                                        type:
                                          - string
                                          - 'null'
                                    required:
                                      - platform
                                      - user_id
                                      - handle
                                      - display_name
                                      - url
                                    type:
                                      - object
                                      - 'null'
                                  extras:
                                    additionalProperties:
                                      type: object
                                    description: >-
                                      平台特有字段，按平台分组（例如
                                      extras.tiktok.sec_uid）。不属于稳定契约，不同调用返回的键可能不同。
                                    type: object
                                  media:
                                    description: >-
                                      可下载的媒体文件：先按帖子顺序列出各附件的最佳版本，再列出同一文件的其他版本。附件没有可用文件时
                                      url 为 null。下载地址可能会过期，请在调用后尽快下载。X Space
                                      的录音是一个 audio 项，其 url 是由音频分段组成的 HLS
                                      播放列表（.m3u8），不是单个文件，请用 ffmpeg 等 HLS 工具下载。
                                    items:
                                      properties:
                                        duration_seconds:
                                          description: 时长（秒），用于视频和音频。
                                          type:
                                            - number
                                            - 'null'
                                        height:
                                          description: 高度（像素）。
                                          type:
                                            - integer
                                            - 'null'
                                        thumbnail_url:
                                          description: 缩略图或封面的 https URL。
                                          type:
                                            - string
                                            - 'null'
                                        type:
                                          description: 媒体类型。
                                          enum:
                                            - image
                                            - video
                                            - audio
                                            - other
                                          type: string
                                        url:
                                          description: 媒体文件的 https URL。下载地址可能会过期。
                                          type:
                                            - string
                                            - 'null'
                                        width:
                                          description: 宽度（像素）。
                                          type:
                                            - integer
                                            - 'null'
                                      required:
                                        - type
                                        - url
                                        - thumbnail_url
                                        - duration_seconds
                                        - width
                                        - height
                                      type: object
                                    type:
                                      - array
                                      - 'null'
                                  platform:
                                    description: 结果所在平台，等于请求里的 platform。
                                    enum:
                                      - tiktok
                                      - instagram
                                      - x
                                      - facebook
                                      - youtube
                                      - douyin
                                      - threads
                                      - bluesky
                                      - linkedin
                                      - telegram
                                      - truthsocial
                                      - snapchat
                                      - kuaishou
                                      - xiaohongshu
                                      - weibo
                                    type: string
                                  post_id:
                                    description: 帖子 ID；URL 指向快拍、精选快拍或 Space 时为其 ID。
                                    type:
                                      - string
                                      - 'null'
                                  url:
                                    description: >-
                                      帖子 URL，平台规范域名下的 https
                                      URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。抖音帖子的
                                      URL 在 www.douyin.com 下。
                                    type:
                                      - string
                                      - 'null'
                                required:
                                  - platform
                                  - post_id
                                  - url
                                  - author
                                  - media
                                type: object
                              - type: 'null'
                          status:
                            enum:
                              - found
                              - partial
                              - not_found
                              - failed
                            type: string
                        required:
                          - status
                          - result
                        type: object
                      type: array
                  required:
                    - by_source
                  type: object
                - additionalProperties: false
                  properties:
                    checked_count:
                      minimum: 0
                      type: integer
                    failed_count:
                      minimum: 0
                      type: integer
                    hit:
                      type: boolean
                    matches:
                      items:
                        additionalProperties: false
                        properties:
                          result:
                            anyOf:
                              - properties:
                                  author:
                                    description: 作者。
                                    properties:
                                      display_name:
                                        description: 显示名称。
                                        type:
                                          - string
                                          - 'null'
                                      handle:
                                        description: handle，不带开头的 @，不含空格或斜杠。
                                        type:
                                          - string
                                          - 'null'
                                      platform:
                                        description: 账号所在平台。
                                        enum:
                                          - tiktok
                                          - instagram
                                          - x
                                          - facebook
                                          - youtube
                                          - douyin
                                          - threads
                                          - bluesky
                                          - linkedin
                                          - telegram
                                          - truthsocial
                                          - snapchat
                                          - kuaishou
                                          - xiaohongshu
                                          - weibo
                                        type: string
                                      url:
                                        description: >-
                                          主页 URL，平台规范域名下的 https
                                          URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。
                                        type:
                                          - string
                                          - 'null'
                                      user_id:
                                        description: >-
                                          平台用户 ID（YouTube 上是频道 ID）。始终是字符串，平台用数字 ID
                                          时也一样。
                                        type:
                                          - string
                                          - 'null'
                                    required:
                                      - platform
                                      - user_id
                                      - handle
                                      - display_name
                                      - url
                                    type:
                                      - object
                                      - 'null'
                                  extras:
                                    additionalProperties:
                                      type: object
                                    description: >-
                                      平台特有字段，按平台分组（例如
                                      extras.tiktok.sec_uid）。不属于稳定契约，不同调用返回的键可能不同。
                                    type: object
                                  media:
                                    description: >-
                                      可下载的媒体文件：先按帖子顺序列出各附件的最佳版本，再列出同一文件的其他版本。附件没有可用文件时
                                      url 为 null。下载地址可能会过期，请在调用后尽快下载。X Space
                                      的录音是一个 audio 项，其 url 是由音频分段组成的 HLS
                                      播放列表（.m3u8），不是单个文件，请用 ffmpeg 等 HLS 工具下载。
                                    items:
                                      properties:
                                        duration_seconds:
                                          description: 时长（秒），用于视频和音频。
                                          type:
                                            - number
                                            - 'null'
                                        height:
                                          description: 高度（像素）。
                                          type:
                                            - integer
                                            - 'null'
                                        thumbnail_url:
                                          description: 缩略图或封面的 https URL。
                                          type:
                                            - string
                                            - 'null'
                                        type:
                                          description: 媒体类型。
                                          enum:
                                            - image
                                            - video
                                            - audio
                                            - other
                                          type: string
                                        url:
                                          description: 媒体文件的 https URL。下载地址可能会过期。
                                          type:
                                            - string
                                            - 'null'
                                        width:
                                          description: 宽度（像素）。
                                          type:
                                            - integer
                                            - 'null'
                                      required:
                                        - type
                                        - url
                                        - thumbnail_url
                                        - duration_seconds
                                        - width
                                        - height
                                      type: object
                                    type:
                                      - array
                                      - 'null'
                                  platform:
                                    description: 结果所在平台，等于请求里的 platform。
                                    enum:
                                      - tiktok
                                      - instagram
                                      - x
                                      - facebook
                                      - youtube
                                      - douyin
                                      - threads
                                      - bluesky
                                      - linkedin
                                      - telegram
                                      - truthsocial
                                      - snapchat
                                      - kuaishou
                                      - xiaohongshu
                                      - weibo
                                    type: string
                                  post_id:
                                    description: 帖子 ID；URL 指向快拍、精选快拍或 Space 时为其 ID。
                                    type:
                                      - string
                                      - 'null'
                                  url:
                                    description: >-
                                      帖子 URL，平台规范域名下的 https
                                      URL（www.tiktok.com、www.youtube.com、x.com、www.reddit.com、www.instagram.com、www.facebook.com、www.linkedin.com、www.threads.com、bsky.app、www.pinterest.com、t.me、truthsocial.com、rumble.com、www.snapchat.com、www.twitch.tv、www.douyin.com、www.kuaishou.com、www.bilibili.com、www.xiaohongshu.com、weibo.com、www.zhihu.com；知乎专栏文章：zhuanlan.zhihu.com）。抖音帖子的
                                      URL 在 www.douyin.com 下。
                                    type:
                                      - string
                                      - 'null'
                                required:
                                  - platform
                                  - post_id
                                  - url
                                  - author
                                  - media
                                type: object
                              - type: 'null'
                          status:
                            enum:
                              - found
                              - partial
                              - not_found
                              - failed
                            type: string
                        required:
                          - status
                          - result
                        type: object
                      type: array
                  required:
                    - hit
                    - checked_count
                    - failed_count
                    - matches
                  type: object
            - type: 'null'
        status:
          enum:
            - found
            - partial
            - not_found
          type: string
        task:
          const: social.download_media
        version:
          const: 2
      required:
        - task
        - version
        - status
        - result
        - meta
      type: object
    social.download_media_error:
      $ref: '#/components/schemas/social.download_media_error.0_Error'
      $schema: https://json-schema.org/draft/2020-12/schema
    social.download_media_error.0_Error:
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/social.download_media_error.1_ErrorDetail'
      required:
        - error
      type: object
    social.download_media_error.1_ErrorDetail:
      additionalProperties: false
      else:
        properties:
          retryable:
            const: false
      if:
        properties:
          retry_hint:
            const: after_delay
      properties:
        code:
          enum:
            - invalid_request
            - invalid_input
            - unsupported_route
            - unsupported_capability
            - unsupported_identity
            - provider_rejected_input
            - invalid_cost_mode
            - cost_quote_payment_unsupported
            - cost_quote_unsupported
            - unpriced_request_value
            - missing_api_key
            - invalid_api_key
            - api_key_disabled
            - expired_api_key
            - unauthorized
            - forbidden
            - user_disabled
            - ip_not_allowed
            - api_key_access_denied
            - estimated_price_exceeds_max_price
            - insufficient_api_key_balance
            - insufficient_wallet_balance
            - task_not_found
            - endpoint_not_found
            - request_in_progress
            - request_already_completed
            - idempotency_conflict
            - request_id_conflict
            - request_too_large
            - method_not_allowed
            - rate_limit_exceeded
            - internal_error
            - service_unavailable
          type: string
        message:
          type: string
        param:
          type: string
        problems:
          items:
            type: string
          type: array
        request_id:
          minLength: 1
          type: string
        retry_hint:
          enum:
            - never
            - after_delay
            - reconcile_first
          type: string
        retryable:
          type: boolean
        similar_tasks:
          items:
            type: string
          type: array
        task_id:
          type: string
      required:
        - code
        - message
        - request_id
        - retryable
        - retry_hint
      then:
        properties:
          retryable:
            const: true
      type: object
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.