What are xsec_token, x-s, x-t, and error 300011 on Xiaohongshu?
What are xsec_token, x-s, x-t, and error 300011 on Xiaohongshu?
xsec_token, x-s, and x-t are Xiaohongshu’s access-control and request-signing parameters, and 300011, 300012, and 300013 are the account and session risk-control codes returned when a logged-in Xiaohongshu scraper session is flagged. Calling Xiaohongshu through BeatAPI (POST https://api.beatapi.io/v1/social-data/call or https://beatapi.io/mcp) handles signing on the gateway side; note search, details, and comments cost $0.03 per request ($0.06 for PGY; checked 2026-11-24; failed gateway calls cost $0).
Xiaohongshu anti-bot tokens and error codes explained
How to call BeatAPI Xiaohongshu actions without cookies or signing
Pass a plain keyword, note_id, or share_text to POST https://api.beatapi.io/v1/social-data/call with no xsec_token, x-s, x-t, or web_session cookies:
Example search response (live-sampled 2026-11-23, anonymized)
On xiaohongshu.app_v2.get_note_comments and Xiaohongshu detail actions, an invalid note_id or unparseable link can return HTTP 200 with an upstream business error inside data and still be billed. Pull note.id from a verified search response or valid share link first (see Xiaohongshu business errors).

