# 小红书视频怎么转文字？用平台字幕直接拿文字稿（2026）

1 个接口就够，不用自己做语音识别：小红书会给视频生成中文字幕，xiaohongshu.videos.get 一次 $0.0200 把字幕文件地址（ext.subtitle_url，SRT 格式）连同视频一起返回，下载后去掉时间轴就是文字稿。 OneFeedAPI 有 33 个小红书接口，一次 $0.0200 起，失败不收费；免费试用，最多 333 次。

更新于 2026-11-21

## 三步拿到文字稿

1. 调 `xiaohongshu.videos.get`，传笔记链接，加 `view: "full"`。

2. 下载 `ext.subtitle_url` 指向的 SRT 文件：一段一行，带起止时间。

3. 去掉序号和时间轴，把各段连起来，就是全文；要按时间引用时保留时间轴。

## 要知道的

字幕是平台自动生成的，口音重、背景音乐大的视频可能有错字。平台没给这条视频生成字幕时，`ext.subtitle_url` 为空，这时改调 `xiaohongshu.videos.transcript.get`：它先用平台字幕，没有字幕就识别视频里的语音，返回带时间的全文。

批量做：先用 `xiaohongshu.notes.search` 按关键词找视频笔记，或用 `xiaohongshu.users.notes.list` 列出一个博主的笔记，再逐条取字幕。

## 在 AI 里怎么用？

接上 OneFeedAPI 后直接说：“把这个博主最近 10 条视频笔记的字幕都取下来，每条用三句话总结”。

接法：把这句贴给你的 AI 助手：“读 https://onefeedapi.com/agents.md，在这里帮我接好 OneFeedAPI。我的 API Key 是 dx_…，之后所有 OneFeedAPI 的调用都用它。”支持远程 MCP 的客户端，也可以直接填地址 `https://onefeedapi.com/mcp`，请求头带 `Authorization: Bearer <key>`。

## 平台没给字幕的视频怎么转文字？

用转文字接口 `xiaohongshu.videos.transcript.get`，传笔记链接、分享文案或编号：有平台字幕的直接用字幕，没有的识别语音，都返回全文、每一句的起止时间和现成的 SRT 字幕，要区分说话人就加 `speakers: "yes"`。每次 $0.0200，识别语音的另按视频时长每分钟 $0.0038，不足一分钟按一分钟，用平台字幕的不另收；没人说话、失败不收费。

文字是哪来的，看完整档（加 `view: "full"`）的 `ext.source`：`platform_subtitle` 是平台字幕，`speech_recognition` 是识别的语音；`ext.srt` 是现成的 SRT 文本，可以直接存成 .srt 文件。

5 分钟以内的视频当场返回文字。5 分钟到 2 小时的先回一个 `job`，`status` 是 `processing`：过 `retry_after_seconds` 秒后带着 `job` 再调同一个接口取文字，提交后 24 小时内有效，价格一样，只在取到文字时收。

一个博主的视频批量转：先用 `xiaohongshu.users.notes.list` 翻页拿到他的笔记（一页 $0.0200），再把其中视频笔记的编号或链接逐条传给 `xiaohongshu.videos.transcript.get`。

要视频文件本身，用 `xiaohongshu.videos.media.get`（一次 $0.0200），给每档无水印文件和备用地址，地址不用带请求头；打不开（403）或过期了就换 `backup_urls`，都打不开了再调一次拿新地址。别的平台的文件带了 `headers` 的（比如 B 站要带 Referer），取文件时把这些请求头一起带上。

下面是 `xiaohongshu.videos.transcript.get` 的请求代码和一份录制的真实返回，录制日期写在返回下方。代码里的 Key 从环境变量 `ONEFEED_API_KEY` 读。

[小红书视频转文字（文案提取、逐字稿）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/transcript/get/)，$0.0200 / 次，识别另按分钟

cURL

```bash
curl -G "https://onefeedapi.com/v1/xiaohongshu/videos/transcript/get" \
  --data-urlencode "id=6ac7701f000000001800508c" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
```

Python

```python
# pip install onefeedapi
from onefeedapi import OneFeedAPI

dx = OneFeedAPI()  # reads ONEFEED_API_KEY
result = dx.xiaohongshu.videos.transcript.get(id="6ac7701f000000001800508c")
print(result["data"]["item"])
```

TypeScript

```typescript
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const result = await dx.xiaohongshu.videos.transcript.get({ id: "6ac7701f000000001800508c" });
console.log(result.data.item);
```

命令行

```bash
onefeedapi call xiaohongshu.videos.transcript.get id=6ac7701f000000001800508c
```

录制的返回：取自 2026-11-21 10:00 UTC 录下的真实返回。名字、正文和编号是示例，链接也是，都不是录到的原文（页面不展示任何人的个人信息）；数字是原样。长列表做了截断。请求号、游标和余额是示意。

```jsonc
{
  "code": "ok",
  "request_id": "99eeaa23-bff9-4cdf-909f-a936b10a46aa",
  "data": {
    "item": {
      "post_id": "6a5178d600000000903e4fc9",
      "status": "done",
      "text": "大家好，今天带大家看一下我这次周末露营带的东西。先说结论：轻、能装进一个包、不怕摔。下面一件一件说。",
      "segments": [
        {
          "start": 0.06,
          "end": 4.155,
          "text": "大家好，今天带大家看一下我这次周末露营带的东西。",
          "speaker": null
        },
        {
          "start": 4.155,
          "end": 5.565,
          "text": "先说结论：轻、能装进一个包、不怕摔。",
          "speaker": null
        },
        // … 另有 25 条
      ],
      "duration": 85,
      "post": {
        "title": "周末露营装备清单，新手照着买就行",
        "text": "大家好，今天带大家看一下我这次周末露营带的东西。先说结论：轻、能装进一个包、不怕摔。下面一件一件说。",
        "url": "https://www.xiaohongshu.com/explore/6d8f5eeb00000000c912b62e",
        "published_at": "2026-10-08T12:01:43.000Z",
        "duration": 85,
        "author": { "id": "6d96544c000000000dda5560", "name": "山野咖啡馆" },
        "metrics": { "likes": 1370, "comments": 10 }
      }
    }
  },
  "warnings": [
    {
      "code": "fields_unparsed",
      "item": 0,
      "fields": ["job", "retry_after_seconds", "ext.charged_in"]
    }
  ],
  "meta": {
    "capability": "xiaohongshu.videos.transcript.get",
    "result_status": "complete",
    "fetched_at": "2026-11-21T10:00:49.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": { "lang": "capability" },
    "billing": {
      "amount": "0.02",
      "currency": "USD",
      "balance_after": "9.98"
    }
  }
}
```

## 为什么用 OneFeedAPI

- 稳定：近 30 天接口可用 100%，状态页公开，可以自己核对。
- 快：近 7 天付费调用的中位耗时 1.3 秒（2026-11-06 统计）。
- 省 token：小红书的 21 个接口各取一份录制的真实返回，平台原始 JSON 合计 48 万 token，AI 通过 OneFeedAPI 的 MCP 读到的只有 3.6 万 token，少 92%；直接调接口拿到的 JSON 也少 85%（2026-11-06 统计）。所有平台同一种格式：作者在 `author`，互动数在 `metrics`，翻页用 `page.next_cursor`，换平台不用重写解析。
- 先看再用：每个接口的页面上都有一份录制的真实返回，字段一目了然。
- 花钱可控：失败不收费；每把 Key 能设金额上限，`X-Max-Price` 限定一次最多花多少，同一个 `Idempotency-Key` 24 小时内不重复扣费。
- 接 AI 方便：远程 MCP 服务已在 MCP 官方登记处登记（`com.onefeedapi/mcp`），Claude、Cursor、ChatGPT 都能直接用。
- 免费试用，最多 333 次，不用绑卡。

## 用到的接口

- [小红书视频笔记详情（视频地址和字幕）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/get/) ($0.0200 / 一次): 按笔记编号或链接取一篇小红书视频笔记：标题、正文、作者、互动数，加上视频文件地址、时长、封面、平台生成的中文字幕（SRT，可当文字稿），以及是不是报备过的品牌合作笔记。只用于视频笔记；图文笔记用笔记详情。
- [小红书笔记搜索](https://onefeedapi.com/zh/apis/xiaohongshu/notes/search/) ($0.0200 / 一次): 按搜索词取一页小红书笔记：标题、正文、作者、互动数、图片，链接带访问令牌可直接打开；标明哪条是报备过的品牌合作笔记。可按综合、最新、最多点赞、最多评论、最多收藏排，可只要视频或图文笔记、只要一天、一周或半年内发布的。
- [小红书用户笔记](https://onefeedapi.com/zh/apis/xiaohongshu/users/notes/list/) ($0.0200 / 一次): 按用户编号或主页链接取一页该账号发布的小红书笔记：标题、正文、互动数、图片、是否置顶。
- [小红书视频转文字（文案提取、逐字稿）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/transcript/get/) ($0.0200 / 次，识别另按分钟): 给一篇小红书视频笔记的链接、分享文案或编号，返回视频里说的话：全文、每一句的起止时间和现成的 SRT 字幕，连同标题、作者和时长；平台给视频生成了字幕的直接用字幕，没有的识别语音，可以区分说话人。每次收费，识别语音的另按视频分钟数收，用平台字幕的不另收，没人说话不收。只接 5 分钟以内的视频。超过 5 分钟、2 小时以内的视频先回一个凭证（job），过一会儿带着它再调这个接口取文字，价格一样，只在取到文字时收。
- [小红书无水印视频下载地址（各档清晰度和字幕）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/media/get/) ($0.0200 / 一次): 给一篇小红书视频笔记的编号、链接或分享文字，返回无水印视频的全部文件地址：每种编码（H.264、H.265 等）的每档清晰度，带宽高、码率和大小，另有备用地址，以及封面和平台生成的字幕文件（SRT，按语言给）；地址不用带请求头，取不到了再调一次即可。只用于视频笔记，图文笔记用 xiaohongshu.notes.media.get。

## 怎么做

- [小红书有 API 吗？用 Python 拉取笔记和评论（2026）](https://onefeedapi.com/zh/guides/xiaohongshu-api-python/)

## 小红书的更多内容

- [小红书 API](https://onefeedapi.com/zh/apis/xiaohongshu/)
- [小红书数据怎么导出？](https://onefeedapi.com/zh/answers/export-xiaohongshu-data/)
- [ChatGPT 能读小红书吗？](https://onefeedapi.com/zh/answers/can-chatgpt-read-xiaohongshu/)
- [小红书 xsec_token 是什么？](https://onefeedapi.com/zh/answers/xiaohongshu-xsec-token/)
- [小红书笔记编号和 xhslink 短链接是什么？](https://onefeedapi.com/zh/answers/xiaohongshu-note-id-and-xhslink/)
- [小红书蒲公英 CPE 和抖音星图 CPE 有什么不同？](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-cpe-vs-xingtu-cpe/)
- [小红书蒲公英是什么？通过 API 能拿到哪些博主数据？](https://onefeedapi.com/zh/answers/what-is-xiaohongshu-pgy/)
- [小红书数据接口哪个好？官方开放平台、第三方接口、自己爬怎么选（2026）](https://onefeedapi.com/zh/answers/best-xiaohongshu-data-api/)
- [小红书开放平台能拿到笔记和评论吗（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-open-platform-api/)
- [xiaohongshu-mcp 登录老失效，有不用登录的小红书 MCP 吗（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-mcp-without-login/)
- [Claude Code、Cursor、Codex 怎么读小红书，不用 Cookie（2026）](https://onefeedapi.com/zh/answers/claude-code-cursor-codex-read-xiaohongshu/)
- [小红书 Skill、抖音 Skill 怎么接（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-douyin-skill/)
- [小红书博主全部笔记怎么导出 Excel（2026）](https://onefeedapi.com/zh/answers/export-xiaohongshu-creator-notes-excel/)
- [小红书笔记评论怎么批量导出，分析用户痛点（2026）](https://onefeedapi.com/zh/answers/export-xiaohongshu-comments-pain-points/)
- [投后怎么批量回收小红书笔记互动数据（2026）](https://onefeedapi.com/zh/answers/collect-xiaohongshu-note-metrics-after-campaign/)
- [小红书笔记搜索排名怎么批量查（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-search-rank-tracking/)
- [BettaFish 没有数据怎么办：怎么接小红书、抖音的公开数据（2026）](https://onefeedapi.com/zh/answers/bettafish-data-source/)
- [小红书 MCP 报 300011 账号异常、海外服务器跳 rednote 怎么办（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-mcp-300011/)
- [MediaCrawler 抓小红书被封、报 461，换什么（2026）](https://onefeedapi.com/zh/answers/mediacrawler-alternative/)
- [蝉妈妈、千瓜、新榜有 API 吗？想要原始数据怎么办（2026）](https://onefeedapi.com/zh/answers/chanmama-qiangua-newrank-api/)
- [用第三方接口采集小红书、抖音的公开数据合法吗（2026）](https://onefeedapi.com/zh/answers/is-public-social-data-collection-legal/)
- [小红书接口返回 461 是什么意思（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-461-status-code/)
- [n8n 怎么接小红书数据（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-n8n/)
- [飞书多维表格怎么同步小红书笔记数据（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-feishu-base/)
- [Dify 怎么接小红书数据（MCP，2026）](https://onefeedapi.com/zh/answers/xiaohongshu-dify/)
- [用数据接口会封我的小红书、抖音账号吗（2026）](https://onefeedapi.com/zh/answers/will-data-api-get-my-account-banned/)
- [OneFeedAPI 这类数据接口合规吗（2026）](https://onefeedapi.com/zh/answers/is-onefeedapi-compliant/)
- [OneFeedAPI 可靠吗、靠谱吗？能自己核对的事实（2026）](https://onefeedapi.com/zh/answers/is-onefeedapi-reliable/)
- [小红书爆款选题怎么批量找（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-hit-topic-ideas/)
- [小红书选品怎么查：哪些单品卖得好、买家怎么说（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-product-research/)
- [怎么低成本发现小红书上关于自己品牌的负面（2026）](https://onefeedapi.com/zh/answers/spot-xiaohongshu-brand-complaints/)
- [小红书爬虫总被封，自己维护和按次调用各要花多少（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-scraper-blocked-cost/)
- [蒲公英博主怎么批量导出（2026）](https://onefeedapi.com/zh/answers/export-xiaohongshu-pgy-creators/)
- [小红书 x-s、x-t 是什么（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-x-s-x-t/)
- [小红书 300011、300012、300013 错误码是什么意思（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-300011-300013-error-codes/)
- [扣子怎么接小红书数据（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-coze/)
- [有没有能让 Claude 查小红书、抖音、公众号的 MCP？（2026）](https://onefeedapi.com/zh/answers/china-social-data-mcp/)
- [一个 Key 调小红书、抖音、公众号：社媒数据 API 聚合怎么选（2026）](https://onefeedapi.com/zh/answers/one-key-china-social-data-api/)
- [用户口碑怎么批量取？小红书、抖音评论和电商评价（2026）](https://onefeedapi.com/zh/answers/product-reviews-chinese-social-media/)
- [社媒数据接口常见问题：按平台说清能取什么、不能取什么（2026）](https://onefeedapi.com/zh/answers/social-media-data-api-faq/)
- [用中国社媒数据做投研（另类数据）：能取哪些信号，怎么取（2026）](https://onefeedapi.com/zh/answers/chinese-social-media-alternative-data/)
- [给 AI 和 agent 用的小红书数据接口：返回省 token、Claude 和 Cursor 直接调（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-api-for-ai-agents/)
- [小红书视频怎么用 API 拿到视频地址和字幕？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-video-url-subtitles-api/)
- [怎么看一个小红书博主每天的涨粉、掉粉？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-follower-growth/)
- [怎么找和某个小红书博主相似的博主？（2026）](https://onefeedapi.com/zh/answers/find-similar-xiaohongshu-creators/)
- [小红书爆款笔记榜怎么用 API 拿到？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-trending-notes-api/)
- [怎么查小红书博主的 CPM、互动单价和阅读单价？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-cpm-cost/)
- [小红书“外溢进店单价”是什么，怎么查？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-spillover-store-visit-cost/)
- [怎么看小红书博主的粉丝是不是真粉？活跃、阅读、购买粉丝怎么查（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-follower-quality/)
- [小红书博主的 CPM 每天怎么变？蒲公英核心数据趋势怎么拿（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-cpm-trend/)
- [MCN 和品牌怎么批量给小红书博主选号、建达人库？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-kol-selection-api/)
- [小红书蒲公英达人页上的每个数据，API 都能取到吗？逐项对照（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-creator-page-fields/)
- [蒲公英笔记的自然流量和推广流量有什么区别？怎么只看自然阅读（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-organic-vs-promoted-reads/)
- [怎么只看一个小红书博主的合作笔记（商单）？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-sponsored-notes/)
- [小红书合作笔记的结案数据（曝光、阅读、涨粉）怎么用 API 取？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-sponsored-note-campaign-report/)
- [怎么看小红书博主好不好联系、活不活跃？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-creator-easy-to-reach-active/)
- [小红书博主笔记的流量来自哪里？发现页、搜索、关注占比怎么查（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-note-traffic-sources/)
- [小红书报备的品牌合作笔记怎么识别？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-sponsored-note-detection/)
- [蒲公英找博主的筛选条件，能用 API 调吗？（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-find-creator-filters-api/)
- [怎么看别人的小红书笔记阅读量？曝光量能查到吗（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-note-reads-impressions/)
- [蒲公英找博主的类目、擅长内容、人设、所在地能填哪些值？全表（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-filter-values/)
- [竞品在小红书找了哪些博主投放？用报备合作笔记反查（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-competitor-sponsored-creators/)
- [小红书怎么搜最近一周评论最多、收藏最多的笔记？只看视频或图文（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-search-most-comments-favorites/)
- [小红书笔记的热评怎么取？评论按点赞排、带 IP 属地（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-top-comments/)
- [小红书美妆护肤博主怎么批量筛：按类目、粉丝、报价、CPM、近期合作行业（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-beauty-skincare-creators/)
- [小红书数码博主怎么批量筛（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-tech-creators/)
- [小红书蒲公英和星图的区别？两边的达人数据怎么对着看（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-pgy-vs-douyin-xingtu/)
- [千问办公怎么查小红书、抖音、公众号的数据？加一个连接器（2026）](https://onefeedapi.com/zh/answers/qwenwork-social-media-data/)
- [怎么用关键词查爆款内容排行？抖音、小红书按点赞排，视频号按最热排（API，2026）](https://onefeedapi.com/zh/answers/keyword-viral-content-ranking-api/)
- [小红书数据怎么采集？官方后台、插件、爬虫、数据接口怎么选（2026）](https://onefeedapi.com/zh/answers/how-to-collect-xiaohongshu-data/)
- [小红书关键词搜索指数怎么查？能批量查吗（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-keyword-search-index/)
- [如何批量获取小红书笔记评论](https://onefeedapi.com/zh/guides/xiaohongshu-note-comments/)
- [如何查小红书蒲公英博主报价和粉丝画像](https://onefeedapi.com/zh/guides/xiaohongshu-pgy-creator-rates/)
- [如何按关键词搜索并导出小红书笔记](https://onefeedapi.com/zh/guides/xiaohongshu-search-export-notes/)
- [如何查小红书蒲公英关键词的搜索指数和关联词](https://onefeedapi.com/zh/guides/xiaohongshu-pgy-keywords/)
- [读数据的社媒 MCP 怎么选](https://onefeedapi.com/zh/compare/social-media-data-mcp-servers/)
- [自己写爬虫还是用数据接口？花费、维护和封号风险怎么选（2026）](https://onefeedapi.com/zh/compare/scraper-vs-data-api/)

## 小红书最常用的接口

- [小红书蒲公英关联词](https://onefeedapi.com/zh/apis/xiaohongshu/pgy/keywords/related/)
- [小红书蒲公英关键词逐日搜索指数](https://onefeedapi.com/zh/apis/xiaohongshu/pgy/keywords/history/)
- [小红书笔记详情](https://onefeedapi.com/zh/apis/xiaohongshu/notes/get/)

---

目录修订号 dc959672dd18e2d0。 [网页版](https://onefeedapi.com/zh/answers/xiaohongshu-video-to-text/)
