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_url is 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
Healthy

Last 24 hours

Last 30 days

  1. 1Request

    POST /api/v1/social
    {
      "platform": "xiaohongshu",
      "action": "video",
      "params": {
        "url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D"
      }
    }
  2. 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,
        …
      }
    }
  3. 3Fields

    video_urlduration_sec
    https://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80283
  4. 4CSV

    xiaohongshu-video-sample.csv id,url,video_url,duration_sec,duration_seconds,video_width,video_height,platform

A request with the note 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.

idurlvideo_urlduration_secduration_secondsvideo_widthvideo_heightplatform
6aa7a3f600000000110335f8https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3Dhttps://sns-v27-ae.rednotecdn.com/stream/79/110/258/01eaa76c635e8a794f037001a09ed91663_258.mp4?sign=b73cfc2583abfbb40fb4d8bee0a7cc2b&t=6ad58b80283nullnullnullxiaohongshu

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_sec to pick out video notes that are very long or very short.

  • Get an address from a note link

    Video rows in search already carry video_url; when you only have a note link, use this endpoint on its own.

  • Filter first, then read

    Use is_video from note to 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:

ComparedXiaohongshu Deeplink documentationEveryInfra
Video note entryVideo note "xhsdiscover://video_feed/<note_id>".url takes a note link, and the call returns that note's video_url and duration_sec.
Note typesParameter 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

  • url takes the full note link, with the path /explore/<note ID> or /discovery/item/<note ID> and xsec_token and other query parameters kept. Prefer a link from recent search results.
  • video_url is signed and expires; download the file soon after you get it and do not store the link long term.
  • duration_sec is the video length in seconds, and it is null when 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.

CallsCost
10,000$55.56
100,000$555.56
1,000,000$5,555.56

Totals use the list price per call.

Code samples

#
bash
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.

POST

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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesxiaohongshuPlatform identifier, fixed value.
actionbodystringYesvideoCapability identifier, fixed value.
urlbody.paramsstringYes-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

#
Captured October 15, 2026 at 15:16 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed. id, billing and quota differ on every call, so only their shape is shown.
json
{  "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.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlThe 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_urlVideo 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_secVideo length in seconds. null for image notes or when it was not returned this time.
duration_secondsDuration in seconds. null for content that is not video or audio.
video_widthVideo frame width in pixels (search, video).
video_heightVideo frame height in pixels (search, video).
platformSource 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.

Errors

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.

You can call the other Xiaohongshu endpoints with the same EveryInfra API key.

Google Analytics needs consent. Privacy