Xiaohongshu (RedNote) video transcript

GET https://api.api.sh/xiaohongshu/v1/note/transcript
1 credit / call social try it in the playground →

The transcript of a Xiaohongshu video note, from the captions the site publishes for the video: timed segments (start and end in seconds, text), the whole text, the SRT file, and the caption tracks available (the original speech and its translations, e.g. zh-CN and en-US). Not every video has captions: a video without them answers 404. Xiaohongshu only opens a note with the xsec_token that comes with its link (feeds, share links, the url fields of our responses): pass the whole link as url, or the id with xsec_token. Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
url string A xiaohongshu.com note link with its xsec_token. Example: https://www.xiaohongshu.com/explore/6455d77f0000000013015a1d?xsec_token=ABj6wOII3wKf1doBy-UiXlhJthCEnY24u-ia26hw8aO1k=&xsec_source=pc_feed
note_id string Note id (24 hex characters), with xsec_token, instead of url.
xsec_token string The note's xsec_token (from the link), with note_id.
language string Caption track: source (the original speech, the default) or a language such as zh-CN or en-US.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/xiaohongshu/v1/note/transcript?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F6455d77f0000000013015a1d%3Fxsec_token%3DABj6wOII3wKf1doBy-UiXlhJthCEnY24u-ia26hw8aO1k%3D%26xsec_source%3Dpc_feed" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.