Crawlzodocs
API referenceXiaohongshu

Xiaohongshu search

Keyword note-search over Xiaohongshu (小红书 / RED).

Platform limitation. Xiaohongshu requires a signed-in session for keyword search. Profile and note reads do not, and are available.

Xiaohongshu's search API (edith /api/sns/web/v1/search/notes) is requires an authenticated session (returns code -101 "无登录信息" for public callers) AND signed (a bad/absent x-s signature is rejected with HTTP 406). The signature is computed in-process (the request signer); the login requires a logged-in an authenticated session in an authenticated session (the same pool /xiaohongshu-profile uses, the web_session an authenticated session is the one that matters). Without an authenticated session the endpoint raises a clear 401.

What this endpoint cannot do. Xiaohongshu requires a signed-in session for keyword search. Profile and note details do not.

A note page is addressed by a per-note token that is part of the note's own URL. Pass the full URL you were given rather than just the note id.

No example response is shown for this endpoint.

POST
/v1/scrapers/xiaohongshu-search

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Sent on every request.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/scrapers/xiaohongshu-search" \  -H "Content-Type: application/json" \  -d '{    "keyword": "美食"  }'
{}