# 视频地址与字幕文本应怎样分别处理？

视频地址与字幕文本应怎样分别处理？结合小红书的接口合同、示例和可复核步骤，在本地验证输入与结果；真实调用保持关闭。

规范页面: https://datanavoapi.com/answers/xiaohongshu-video-url-subtitles-api/

当前为本地模拟模式；样本由程序生成，不代表平台实时数据，也不证明真实供应商的可用性。

## 直接回答

这个问题可从小红书视频笔记详情（视频地址和字幕）的合同和本地样本开始核对。先明确 xiaohongshu.videos.get 的输入，再检查 post 对象是否提供任务所需字段。

媒体链接、封面、正文和转写文本需要分开保存。链接存在不代表文件永久可下载，也不代表包含字幕；只把合同中的 transcript 字段交给文本分析，不虚构缺失转写。

## 对应接口与字段

| 能力 | 对象 | 返回形状 | 分页 |

| --- | --- | --- | --- |

| xiaohongshu.videos.get | 内容 | item | 无游标 |

- [小红书视频笔记详情（视频地址和字幕）](https://datanavoapi.com/apis/xiaohongshu/videos/get/)

## 输入合同

按所选方法查看参数含义、示例和条件规则；view 与 fields 控制返回内容，不改变 TEST 单价。

- GET：id / url 必须恰好提供一个。

| 方法 | 字段 | 类型 | 要求 | 含义 | 枚举或边界 | 示例 |

| --- | --- | --- | --- | --- | --- | --- |

| GET | id | string | 可选/条件 | Note ID, 24 hexadecimal characters. With only a link or a share text, give it as url | — | "6ac7701f000000001800508c" |

| GET | url | string | 可选/条件 | Link to the note, pasted as it is: the https://www.xiaohongshu.com/explore/… address from the browser, the https://www.xiaohongshu.com/discovery/item/… link the website shares (query parameters such as xsec_token are fine), a whole share text with such a link in it, or the xhslink.com short link the app copies (alone or in its share text). A short link is opened once to see which note it leads to; where it cannot be, paste the note's full link or its ID | — | — |

| GET | view | string | 可选/条件 | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |

| GET | fields | array | 可选/条件 | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## 怎样完成一次核验

先用页面列出的能力运行一条本地演示，核对对象结构；再按问题定义筛选、分类或导出。若需要真实平台结论，本地样本不能替代相应证据。

```json
{
  "capability": "xiaohongshu.videos.get",
  "method": "GET",
  "params": {
    "id": "6ac7701f000000001800508c"
  }
}
```

## 相关页面

- [小红书视频笔记详情（视频地址和字幕）](https://datanavoapi.com/apis/xiaohongshu/videos/get/)
- [小红书接口](https://datanavoapi.com/apis/xiaohongshu/)
- [小红书 MCP](https://datanavoapi.com/mcp/xiaohongshu/)
- [内容字段](https://datanavoapi.com/docs/objects/post/)
- [国内视频内容的媒体地址如何查询与保存？](https://datanavoapi.com/answers/video-file-url-api-china/)
- [小红书视频内容如何进入文本分析流程？](https://datanavoapi.com/answers/xiaohongshu-video-to-text/)

[English](https://datanavoapi.com/en/answers/xiaohongshu-video-url-subtitles-api/)
