# How should I separate video URLs from subtitle text?

How should I separate video URLs from subtitle text? Follow concrete contracts, examples and reviewable steps using Xiaohongshu (RedNote).

Canonical page: https://datanavoapi.com/en/answers/xiaohongshu-video-url-subtitles-api/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Answer

Start by inspecting the contracts and local samples for Xiaohongshu video note with its video and subtitles. Establish the input for xiaohongshu.videos.get, then check whether its post object contains the fields your task needs.

Keep media links, cover images, post text and transcripts separate. A URL does not guarantee permanent download access or subtitles. Feed only an actual transcript field into transcript analysis; never invent missing speech text.

## Relevant contracts

| Capability | Object | Shape | Pagination |

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

| xiaohongshu.videos.get | Post | item | No cursor |

- [Xiaohongshu video note with its video and subtitles](https://datanavoapi.com/en/apis/xiaohongshu/videos/get/)

## Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

- GET: supply exactly one of id / url.

| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |

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

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

| GET | url | string | Optional / conditional | 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 | Optional / conditional | 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 | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## Complete one verification

Run one local fixture for a listed capability and inspect the object structure. Then filter, classify or export according to the question. A local sample cannot replace evidence for a real-platform conclusion.

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

## Related pages

- [Xiaohongshu video note with its video and subtitles](https://datanavoapi.com/en/apis/xiaohongshu/videos/get/)
- [Xiaohongshu (RedNote) APIs](https://datanavoapi.com/en/apis/xiaohongshu/)
- [Xiaohongshu (RedNote) MCP](https://datanavoapi.com/en/mcp/xiaohongshu/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [How should I query and store media URLs for Chinese video content?](https://datanavoapi.com/en/answers/video-file-url-api-china/)
- [How can RedNote video material enter a text-analysis workflow?](https://datanavoapi.com/en/answers/xiaohongshu-video-to-text/)

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