# 小红书视频怎么用 API 拿到视频地址和字幕？（2026）

用小红书视频笔记接口 xiaohongshu.videos.get，传笔记编号或链接，一次 $0.0200：返回视频文件地址（H.264 的 MP4）、时长、封面，以及平台给这条视频生成的中文字幕（SRT 文件，带时间轴）。 OneFeedAPI 有 33 个小红书接口，一次 $0.0200 起，失败不收费；免费试用，最多 333 次。

更新于 2026-11-21

## 返回什么？

笔记本身的标题、正文、作者、点赞收藏评论数，加上这些（在完整档里，请求时加 `view: "full"`）：

| 字段 | 是什么 |
| --- | --- |
| `ext.video_url` | 视频文件地址，H.264 的 MP4，平台播放用的那一份 |
| `ext.subtitle_url` | 平台生成的中文字幕，SRT 文件，带时间轴；平台没生成时为空 |
| `ext.duration` | 视频时长，秒 |
| `ext.cover_url` | 视频封面 |

## 图文笔记能用吗？

不能，这个接口只取视频笔记。传图文笔记的编号会返回“不存在”；图文笔记用笔记详情 `xiaohongshu.notes.get`，它也能读视频笔记的文字和互动数，只是不带视频地址和字幕。下架或不可见的笔记会返回“已不可见”。

## 在 AI 里怎么用？

接上 OneFeedAPI 后直接说：“把这条小红书视频的字幕取下来，整理成文字稿并总结要点（贴链接）”。用这些视频和文字时请遵守平台规则和作者的版权。

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

## 要无水印的每档文件，或者平台没给字幕的视频的文字，怎么拿？

文件用 `xiaohongshu.videos.media.get`，传视频笔记的编号、链接或分享文字，一次 $0.0200：返回无水印视频每种编码（H.264、H.265 等）的每一档，带宽高、码率和大小，另有备用地址，以及封面和平台生成的字幕文件（SRT，按语言给）。图文笔记的无水印原图和实况图用 `xiaohongshu.notes.media.get`，一次 $0.0200。

地址打不开（403）或过期了：小红书的地址原样取就行，不用带请求头；别的平台的文件带了 `headers` 的（比如 B 站要带 Referer），取文件时把这些请求头一起带上。主地址打不开就换 `backup_urls` 里的备用地址，都打不开了再调一次拿新地址。

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

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` 的请求代码和一份录制的真实返回，录制日期写在返回下方。代码里的 Key 从环境变量 `ONEFEED_API_KEY` 读。

[小红书无水印视频下载地址（各档清晰度和字幕）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/media/get/)，$0.0200 / 一次

cURL

```bash
curl -G "https://onefeedapi.com/v1/xiaohongshu/videos/media/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.media.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.media.get({ id: "6ac7701f000000001800508c" });
console.log(result.data.item);
```

命令行

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

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

```jsonc
{
  "code": "ok",
  "request_id": "3ec4992d-dda6-42cb-9ef4-dc7747932788",
  "data": {
    "item": {
      "post_id": "6611b329000000001a2828ff",
      "type": "video",
      "title": "关于周末露营，我踩过的五个坑",
      "author": { "id": "6d819c8a00000000b2088b38", "name": "小林的周末" },
      "duration": 85,
      "files": [
        {
          "kind": "video",
          "quality": "720p",
          "width": 720,
          "height": 1280,
          "codec": "h264",
          "bitrate": 2336329,
          "size": 24901764,
          "format": "mp4",
          "duration": 85.268,
          "lang": null,
          "watermark": false,
          "url": "https://www.xiaohongshu.com/explore/6b6461f800000000777633d7",
          "backup_urls": [
            "https://www.xiaohongshu.com/explore/6593898400000000e555c826",
            "https://www.xiaohongshu.com/explore/664aafcc00000000cc397d5b"
          ]
        },
        {
          "kind": "video",
          "quality": "720p",
          "width": 720,
          "height": 1280,
          "codec": "h265",
          "bitrate": 956555,
          "size": 10195443,
          "format": "mp4",
          "duration": 85.268,
          "lang": null,
          "watermark": false,
          "url": "https://www.xiaohongshu.com/explore/62954f2900000000862c7fec",
          "backup_urls": [
            "https://www.xiaohongshu.com/explore/6525f4d100000000ecd3a15a",
            "https://www.xiaohongshu.com/explore/6ba7148d00000000dd92957b"
          ]
        },
        // … 另有 4 条
      ]
    }
  },
  "warnings": [],
  "meta": {
    "capability": "xiaohongshu.videos.media.get",
    "result_status": "complete",
    "fetched_at": "2026-11-06T16:42:10.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "files.index": "platform",
      "files.title": "platform",
      "files.expires_at": "capability",
      "files.headers": "platform",
      "files.stable_url": "platform",
      "files.live": "platform",
      "decrypt": "platform"
    },
    "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/get/) ($0.0200 / 一次): 按笔记编号或链接取一篇小红书笔记：标题、正文、作者、互动数、图片，以及是不是报备过的品牌合作笔记。
- [小红书笔记搜索](https://onefeedapi.com/zh/apis/xiaohongshu/notes/search/) ($0.0200 / 一次): 按搜索词取一页小红书笔记：标题、正文、作者、互动数、图片，链接带访问令牌可直接打开；标明哪条是报备过的品牌合作笔记。可按综合、最新、最多点赞、最多评论、最多收藏排，可只要视频或图文笔记、只要一天、一周或半年内发布的。
- [小红书无水印视频下载地址（各档清晰度和字幕）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/media/get/) ($0.0200 / 一次): 给一篇小红书视频笔记的编号、链接或分享文字，返回无水印视频的全部文件地址：每种编码（H.264、H.265 等）的每档清晰度，带宽高、码率和大小，另有备用地址，以及封面和平台生成的字幕文件（SRT，按语言给）；地址不用带请求头，取不到了再调一次即可。只用于视频笔记，图文笔记用 xiaohongshu.notes.media.get。
- [小红书无水印原图和实况图下载地址](https://onefeedapi.com/zh/apis/xiaohongshu/notes/media/get/) ($0.0200 / 一次): 给一篇小红书图文笔记的编号、链接或分享文字，返回每张图片的无水印原图地址（平台保存的最大尺寸，带宽高和格式），实况图另给那段视频的地址；地址不用带请求头，过期了再调一次即可。只用于图文笔记，视频笔记用 xiaohongshu.videos.media.get。
- [小红书视频转文字（文案提取、逐字稿）](https://onefeedapi.com/zh/apis/xiaohongshu/videos/transcript/get/) ($0.0200 / 次，识别另按分钟): 给一篇小红书视频笔记的链接、分享文案或编号，返回视频里说的话：全文、每一句的起止时间和现成的 SRT 字幕，连同标题、作者和时长；平台给视频生成了字幕的直接用字幕，没有的识别语音，可以区分说话人。每次收费，识别语音的另按视频分钟数收，用平台字幕的不另收，没人说话不收。只接 5 分钟以内的视频。超过 5 分钟、2 小时以内的视频先回一个凭证（job），过一会儿带着它再调这个接口取文字，价格一样，只在取到文字时收。

## 怎么做

- [小红书有 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/)
- [小红书视频怎么转文字？用平台字幕直接拿文字稿（2026）](https://onefeedapi.com/zh/answers/xiaohongshu-video-to-text/)
- [怎么看一个小红书博主每天的涨粉、掉粉？（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/)

---

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