Xiaohongshu Video details API
Read the play address video_url and the length duration_sec of a Xiaohongshu video note by its url, for $5.56 per 1,000 calls.
- Returns only the play address and length, not the text.
video_urlis signed and expires.- Failed calls and empty results are not charged.
API health
- 24h health
- 100%
- 24h average time
- 2.70 s
- Healthy / normal
- Available
Last 24 hours
Last 30 days
1Request
POST /api/v1/social { "platform": "xiaohongshu", "action": "video", "params": { "url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D" } }2JSON response
{ "results": { "video_url": "https://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80", "duration_sec": 283, … } }3Fields
video_url duration_sec https://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80 283 4CSV
xiaohongshu-video-sample.csv id,url,video_url,duration_sec,duration_seconds,video_width,video_height,platform
url goes in, and one JSON object comes back with video_url and duration_sec, listed as a field table and a CSV file.What data you get
The table shows a real call for xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D, captured October 15, 2026 at 15:16 (UTC), that returned one object. Your own calls return these fields as listed in the field reference.
| id | url | video_url | duration_sec | duration_seconds | video_width | video_height | platform |
|---|---|---|---|---|---|---|---|
| 6aa7a3f600000000110335f8 | https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D | https://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80 | 283 | null | null | null | xiaohongshu |
Use cases
Keep video files
Download the file soon after you get
video_url; the link is signed and expires.Check video length
Read
duration_secto pick out video notes that are very long or very short.Get an address from a note link
Video rows in
searchalready carryvideo_url; when you only have a note link, use this endpoint on its own.Filter first, then read
Use
is_videofromnoteto find the video notes, then read the play address for each.
Xiaohongshu Deeplink documentation vs EveryInfra
How Xiaohongshu's public Deeplink documentation and EveryInfra video compare on the video note entry and on note types:
| Compared | Xiaohongshu Deeplink documentation | EveryInfra |
|---|---|---|
| Video note entry | Video note "xhsdiscover://video_feed/<note_id>". | url takes a note link, and the call returns that note's video_url and duration_sec. |
| Note types | Parameter type is "normal" for an image-and-text note or "vedio" for a video note. | An image note has no video to read; check is_video from note first. |
Xiaohongshu's Deeplink documentation is in Chinese. The table shows a translation, checked against the page on 2026-11-21. The page shows no update date. It defines links that open pages inside the app and has no data API description. Official sources: Deeplink
Limits and gotchas
urltakes the full note link, with the path /explore/<note ID> or /discovery/item/<note ID> andxsec_tokenand other query parameters kept. Prefer a link from recent search results.video_urlis signed and expires; download the file soon after you get it and do not store the link long term.duration_secis the video length in seconds, and it isnullwhen this call did not get it.- An image note has no video and comes back as an empty result.
- There is no resolution option, and not every video note is guaranteed to give an address.
- One call reads one note and returns one object.
Pricing
You pay $0.005556 per call, and one call reads one note. Failed calls and empty results are not charged.
| Calls | Cost |
|---|---|
| 10,000 | $55.56 |
| 100,000 | $555.56 |
| 1,000,000 | $5,555.56 |
Totals use the list price per call.
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "xiaohongshu",
"action": "video",
"params": {
"url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
API reference
See the parameters, response fields, errors and billing for video, and copy the page or open it as Markdown for an AI assistant.
AI prompt
#Please help me write a data collection script with the EveryInfra Xiaohongshu Video details endpoint (xiaohongshu/video).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to xiaohongshu and action to video, and put the parameters inside params.
- Required parameters:
- url: Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token.
- Returns one object. Main fields: id, url (The record's link on Xiaohongshu), video_url (Video playback link (MP4), signed and e…), duration_sec (Video length in seconds), duration_seconds, video_width (Video frame width in pixels (search, vi…), video_height (Video frame height in pixels (search, v…).
- Example request body:
{
"platform": "xiaohongshu",
"action": "video",
"params": {
"url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D"
}
}
- Price: $5.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | xiaohongshu | Platform identifier, fixed value. |
action | body | string | Yes | video | Capability identifier, fixed value. |
url | body.params | string | Yes | - | Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token. The sub_comments action requires both this url and a valid comment_id. |
Response example
#{ "id": "req_…", "platform": "xiaohongshu", "action": "video", "results": { "id": "6aa7a3f600000000110335f8", "url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D", "video_url": "https://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80", "duration_sec": 283, "platform": "xiaohongshu" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
url | The record's link on Xiaohongshu. Links from search, note, profile and hashtag usually carry an access token, so they open in a signed-out browser (the token expires; call again for a fresh link). Note links from user_posts carry no token and need one to open in a browser: call note with the note ID to get a link that opens. Profile links from search_users carry no token either; call profile with the user_id for one that opens. Note links from pgy_content_square carry no access token; call note with the note ID to get a link that opens in a browser. |
video_url | Video playback link (MP4), signed and expiring; download promptly if you need to keep it. null for image notes or when not returned. It appears on search/user_posts rows and in the separate video action; the note detail does not carry it (since 2026-10-14) — call the video action with the same note URL when you need the play link. |
duration_sec | Video length in seconds. null for image notes or when it was not returned this time. |
duration_seconds | Duration in seconds. null for content that is not video or audio. |
video_width | Video frame width in pixels (search, video). |
video_height | Video frame height in pixels (search, video). |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
FAQ
What does the Xiaohongshu video API return?
One object with id, url, video_url and duration_sec, and possibly video_width and video_height.
How long does video_url work?
It is signed and expires. To keep a video, download it soon after you get the address and do not store the link long term.
What happens with an image note?
An image note has no video and comes back as an empty result. Check is_video in note or search results first.
Can I choose the resolution?
No. This endpoint has no resolution option, and it does not guarantee an address for every video note.
How much does one video address cost?
It costs $0.005556 per call, or $5.56 per 1,000 calls. Failed calls and empty results are not charged.
Related Xiaohongshu endpoints
You can call the other Xiaohongshu endpoints with the same EveryInfra API key.
- Search
search$5.56 per 1,000 callsFind Xiaohongshu notes on a topic, 20 per page. - Details
profile$5.56 per 1,000 callsLook up a Xiaohongshu account. - Posts by user
user_posts$5.56 per 1,000 callsList the notes a Xiaohongshu creator has published, 20 per page. - Note details
note$5.56 per 1,000 callsRead one Xiaohongshu note in full. - Comments
comments$5.56 per 1,000 callsPull top-level comments on a Xiaohongshu note, 15 per page, with text, likes, IP location, commenter, reply count and author or AI-account flags. - Comments from multiple URLs
comments_batch$5.56 per 1,000 callsCollect comments from 1 to 20 Xiaohongshu notes in one call. - Comment replies
sub_comments$5.56 per 1,000 callsRead the replies under one comment on a Xiaohongshu note, 10 per page. - User search
search_users$5.56 per 1,000 callsFind Xiaohongshu creators and brand accounts by keyword, 20 per page. - Hashtag
hashtag$5.56 per 1,000 callsBrowse the notes on one Xiaohongshu topic page, newest or most popular first. - Trending
trending$5.56 per 1,000 callsSee a sample of the notes Xiaohongshu is recommending right now, up to 30, with title, author, image and video flag. - Product search
product_search$5.56 per 1,000 callsSearch products in the Xiaohongshu store bykeyword. - Product details
product_detail$5.56 per 1,000 callsRead one product from the Xiaohongshu store by its 24-character ID or goods-detail link. - Reviews
reviews$5.56 per 1,000 callsRead buyer reviews of a Xiaohongshu store product by its 24-characterproduct_id, in default or newest order. - Follower list
followers_list$5.56 per 1,000 callsList the followers of a Xiaohongshu account by its 24-characteruser_idor profile link. - Note location
note_location$5.56 per 1,000 callsRead the place a Xiaohongshu note is tagged with, by note link or share link. - Pugongying note search
pgy_content_square$16 per 1,000 callsSearch by keyword for notes in the content square of Pugongying, Xiaohongshu's brand–creator marketplace.