GET /v1/xiaohongshu/note_detail

Xiaohongshu note API: RED note text, likes and saves by note ID

Returns one note: title, text, posted time, like, comment, save and share counts, tags, mentions, images or video, and author. Send note_id from a Xiaohongshu explore API answer, because Xiaohongshu serves a note only with the token its feed issued. Any other id, the example included, fails at once with 400 invalid_request and is not billed.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/xiaohongshu/note_detail?note_id=64469b250000000013016860' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/xiaohongshu/note_detail",
    params={
        "note_id": "64469b250000000013016860",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
note_id requiredquerystringA bare lowercase 24-hex note id from a /v1/xiaohongshu/explore answer (data.items[].id). The example is an id from an earlier explore read that the crawler no longer holds a token for, so it answers 400. Never submit a Xiaohongshu URL: a copied URL can carry a private xsec_token. Example 64469b250000000013016860.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Xiaohongshu (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. Default auto.
get_raw querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "id": "64469b250000000013016860",
    "shortcode": null,
    "taken_at": "2023-04-24T15:07:17+00:00",
    "kind": "carousel",
    "product_type": null,
    "caption": "推荐一家经常去的咖啡店 新世纪九楼 SOLOS\nCAFE\n两层工业风的装修风格 很安静 适合聊天学习谈\n事情~\n有饮品,小吃还有 意面(是推荐)~\n喜欢拍照的姐妹可以沖一下\nSOLOS CAFE:新世纪九层\n某音现在有团购 很合适\n#周末探店[话题]# #邯郸美食探店[话题]#",
    "hashtags": [
      "周末探店",
      "邯郸美食探店"
    ],
    "mentions": [],
    "accessibility_caption": null,
    "likes": 169,
    "comments": 16,
    "views": null,
    "counts_hidden": null,
    "comments_disabled": null,
    "is_pinned": null,
    "is_paid_partnership": null,
    "owner": {
      "id": "5ea195610000000001000374",
      "username": null,
      "full_name": "Xxxx辛",
      "is_verified": null,
      "is_private": null,
      "avatar_url": "https://sns-avatar-qc.xhscdn.com/avatar/6420eb8a1633662142007601.jpg",
      "latest_story_at": null,
      "extra": {}
    },
    "coauthors": [],
    "sponsors": [],
    "tagged": [],
    "location": null,
    "audio": null,
    "thumbnail_url": "https://sns-webpic-qc.xhscdn.com/202610280528/b4b3a7e83337aeca3853737f4e4851c3/1000g0082d2f2am8gu0405n2b09sk3nmfiq8p8r0!nd_dft_wlteh_jpg_3",
    "video_duration": null,
    "media": [
      {
        "kind": "image",
        "url": "https://sns-webpic-qc.xhscdn.com/202610280528/b4b3a7e83337aeca3853737f4e4851c3/1000g0082d2f2am8gu0405n2b09sk3nmfiq8p8r0!nd_dft_wlteh_jpg_3",
        "width": null,
        "height": null,
        "duration": null
      },
      {
        "kind": "image",
        "url": "https://sns-webpic-qc.xhscdn.com/202610280528/85a3497302e01d48adc5e24a9d097186/1000g0082d2f2am8gu04g5n2b09sk3nmfibc7ms8!nd_dft_wlteh_jpg_3",
        "width": null,
        "height": null,
        "duration": null
      },
      {
        "kind": "image",
        "url": "https://sns-webpic-qc.xhscdn.com/202610280528/51883b4fd6ba0e9167d887f6158ca069/1000g0082d2f2am8gu0505n2b09sk3nmfpl2kndo!nd_dft_wlteh_jpg_3",
        "width": null,
        "height": null,
        "duration": null
      }
    ],
    "media_urls": [
      "https://sns-webpic-qc.xhscdn.com/202610280528/b4b3a7e83337aeca3853737f4e4851c3/1000g0082d2f2am8gu0405n2b09sk3nmfiq8p8r0!nd_dft_wlteh_jpg_3",
      "https://sns-webpic-qc.xhscdn.com/202610280528/85a3497302e01d48adc5e24a9d097186/1000g0082d2f2am8gu04g5n2b09sk3nmfibc7ms8!nd_dft_wlteh_jpg_3",
      "https://sns-webpic-qc.xhscdn.com/202610280528/51883b4fd6ba0e9167d887f6158ca069/1000g0082d2f2am8gu0505n2b09sk3nmfpl2kndo!nd_dft_wlteh_jpg_3"
    ],
    "extra": {
      "url": "https://www.xiaohongshu.com/explore/64469b250000000013016860",
      "title": "探店/邯郸",
      "saves": 31,
      "shares": 8,
      "note_type": "normal",
      "mentioned_users": [],
      "is_partial": false,
      "approximate_metrics": []
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-27T21:28:45.230197+00:00",
    "cost": "$0.0005",
    "balance": "$9.9940",
    "request_id": "req_9048ae9361bfaed37ed2b0411ceddca9"
  }
}

How it works

One note: title, text, posted time, like, comment, save and share counts, tags, mentions, images or video and author. Call /v1/xiaohongshu/explore first and pass a note_id from its answer: Xiaohongshu serves a note only with the token its feed issued, and the crawler keeps that token from the explore read. Any other id, the example included, fails at once with 400 invalid_request and is not billed. Returns Post under data.

A field Xiaohongshu does not carry is null, a list it does not carry is [], and Xiaohongshu-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Xiaohongshu account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.