Xiaohongshu Note details API

POST

API health

24h health
100%
24h average time
2.58 s
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Healthy

Read one Xiaohongshu note in full: body, every image in order, topics, mentioned users, engagement counts, IP location and coordinates when the images carry them. Pass the complete note link with xsec_token intact; the video play link and the comments need separate video and comments calls.

Xiaohongshu Note details reads one note from its url and returns its full content: the full body, every image in order, its topics and mentioned users, plus like, save, comment and share counts and the publish time, with lat and lng when the images carry a location. Use it to analyze what a note actually says and how it landed, to review a seeding campaign, or to turn search results into full text you can analyze.

Pass the complete note link with its query parameters, such as xsec_token, intact; a recent link from search results works best, and a bare note ID usually does not. ip_location is the IP region Xiaohongshu displays, not an address the author typed, and the topic IDs in topics lead to more notes on the same topic.

Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.

Please help me write a data collection script with the EveryInfra Xiaohongshu Note details endpoint (xiaohongshu/note).

Endpoint contract:
- 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 note, 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), title, text (Note body or comment text), like_count (Like count), collect_count (Save count), comment_count, share_count, posted_at, ip_location (IP location (province or country) that…), author_name, author_id (The author's user ID); 25 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=xiaohongshu.
- Example request body:
{
  "platform": "xiaohongshu",
  "action": "note",
  "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.
actionbodystringYesnoteCapability identifier, fixed value.
urlbody.paramsNot declaredYes-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.

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": "note",
  "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.

Response example

Real response

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": "note",
  "results": {
    "id": "6aa7a3f600000000110335f8",
    "url": "https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D",
    "title": "33㎡的一字户塞下28㎡收纳?!还巨显大!",
    "text": "感谢超有生活智慧的@(已隐去) 接受采访!\n本期视频超多干货!\n33㎡邪修出两房!2㎡卫生间硬塞浴缸🛁\n全屋28㎡收纳、衣柜800件衣服装不满!\n超低成本旋转鞋架、空调机位改树屋🌳\n把每一寸空间都榨干的小户型终极收纳来啦!\n#roomtour[话题]# #小户型收纳[话题]# #探家[话题]#  #小红书自建房大赏[话题]#  #WeeklyPick[话题]#  #野生体验家howto[话题]# #我在小红书搞装修[话题]# #装修内行人[话题]#",
    "like_count": 3421,
    "collect_count": 3928,
    "comment_count": 104,
    "share_count": 976,
    "posted_at": "2026-09-14T09:01:04+00:00",
    "ip_location": "(已隐去)",
    "author_name": "(已隐去)",
    "author_id": "(已隐去)",
    "is_video": true,
    "avatar_url": "https://sns-avatar-qc-ae.rednotecdn.com/(已隐去)",
    "author_url": "https://www.xiaohongshu.com/(已隐去)",
    "platform": "xiaohongshu",
    "images": [
      "https://sns-i11-ae.rednotecdn.com/spectrum/1040g34o3253cssm6302049v1t8cah4q0tpb8l58?imageView2/2/w/576/format/heif/q/58|imageMogr2/strip&redImage/frame/0/enhance/4&ap=1&sc=V_PRV&sign=ed0259e196793273f51646a46b2c1a02&t=6ad0ee3c"
    ],
    "tags": [
      "roomtour",
      "小户型收纳",
      "探家"
    ],
    "topics": [
      {
        "name": "roomtour",
        "topic_id": "6103b7a0b2363700017d720a"
      },
      {
        "name": "小户型收纳",
        "topic_id": "5be9634385cfbb000101d51f"
      },
      {
        "name": "探家",
        "topic_id": "6064a7711fd52f0001b7d830"
      }
    ],
    "mentioned_users": [
      {
        "user_id": "(已隐去)",
        "nickname": "(已隐去)"
      }
    ]
  },
  "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.
titleTitle. null when the platform has no titles (for example text-only posts).
textNote body or comment text. note and hashtag return the full body; search and user_posts may return a truncated excerpt (up to about 60 and 100 characters respectively). Call note with the note ID for the full text.
like_countLike count. On note and comment results, the likes on that item; on profile, the total likes the account's notes have received. null means not public or not returned this time, not zero.
collect_countSave count. On note results, how many times that note was saved; on profile, the total saves across the account's notes. null means not public or not returned this time, not zero.
comment_countComments. null means not disclosed, not 0.
share_countShares. null means not disclosed, not 0.
posted_atPublish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it.
ip_locationIP location (province or country) that Xiaohongshu displays; not entered by the user. Only some user_posts rows carry it.
author_nameAuthor's display name.
author_idThe author's user ID. Pass it to profile or user_posts. Note results carry the 24-character ID from profile URLs; comment results (comments, comments_batch, sub_comments) usually carry a different 29-character form. The two forms of one person do not match, so convert them with the user_id that profile returns before de-duplicating across batches.
is_videoWhether the note is a video note. The play URL is NOT part of the note detail response (since 2026-10-14): call the separate video action with the same note URL to fetch it; each call is billed per call.
avatar_urlAvatar image link. Some platforms return sized CDN links that can expire.
author_urlThe author's profile link. It carries no access token, so a signed-out browser cannot open it; the url that profile returns for the author_id opens directly.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
imagesImage links. On note, hashtag, search and user_posts, every image of the note in order. On comment results (comments, comments_batch, sub_comments), the images attached to the comment, stickers included; an empty array means none. null means this item was not returned this time.
tagsTag list: on note, the note's topic tags; on profile, the personal tags shown on the profile page (such as star sign or region), as written.
topicsThe note's topics, each with a name and a topic_id (the topic page ID). Pass topic_id to hashtag to read that topic's notes. The field is left out when the note has no topics or they were not returned.
mentioned_usersPeople @-mentioned: on comment results, those mentioned in the comment; on note, those mentioned in the note. Each entry has user_id and nickname. Absent when there are none.
latLatitude of the location attached to the note's images (note), as given; absent when there is no location.
lngLongitude of the location attached to the note's images (note); appears together with lat.
has_goodsKeeps the platform's own meaning
author_red_idThe author's Xiaohongshu ID: on comment results (comments, comments_batch, sub_comments) the commenter's, on note the note author's.
author_is_verifiedKeeps the platform's own meaning
languageContent language code (for example zh, en) as judged by the platform; it can be wrong.

FAQ

Why doesn't a bare note ID work?

Xiaohongshu note pages need the access token carried in the link. Pass the full URL, with the path /explore/<note ID> or /discovery/item/<note ID>, and keep query parameters such as xsec_token. The url in search results already carries the token, so you can pass it straight through.

Is ip_location where the author lives?

Not exactly. It is the IP region, a province or a country, that Xiaohongshu shows on every post. The platform sets it rather than the author, so it suits rough regional analysis but should not be treated as a precise location.

Why is there no video link for a video note?

Note details does not include the play link; it marks video notes with is_video. To get the link, call Video details with the same note url: it returns the play link and the video length and is billed as a separate call. Video notes found through search already carry the play link on their result rows.

Errors and billing

401
Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
422
Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
402
Insufficient balance. Top up first.
429
The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
503
Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
200 empty
The request completed without data and is not charged (billing.reason = empty_result_refunded).