DataNavoAPI / ANSWERS / REDNOTE

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).

LOCAL SIMULATIONAll displayed records are fictional fixtures. Live APIs, payments and external email are disabled.中文版 ↗
01

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.

02

Relevant contracts

CapabilityObjectShapePagination
xiaohongshu.videos.getPostitemNo cursor
03

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.
MethodFieldTypeRequirementMeaningEnum or boundExample
GETidstringOptional / conditionalNote ID, 24 hexadecimal characters. With only a link or a share text, give it as url—"6ac7701f000000001800508c"
GETurlstringOptional / conditionalLink 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——
GETviewstringOptional / conditionalHow much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`).["compact","standard","full"]—
GETfieldsarrayOptional / conditionalReturn only these fields of each item, by path (`author.name`).maxItems: 64—
04

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"
  }
}
TRY THE CONTRACT

Clear inputs. Inspectable output.

Each click runs a local fixture. Advanced JSON inputs are checked against the selected method. Editing does not execute a request.

Copying does not execute. CLI quote is read-only and needs a local customer TEST key. Configure MCP in demo mode first. GET and POST batches both return only fictional local fixtures.

Download contract example (no execution) ↗

For TEST budgets, Key scopes or failure scenarios, open the account console. Customer sandbox ↗