Перейти к навигации

Xiaohongshu returns HTTP 461: why it happens and how to fix it

Просмотр в формате Markdown

HTTP 461 on Xiaohongshu (RedNote) is a risk-control verification block. Xiaohongshu returns 461 when its gateway detects a mismatch across request signatures (x-s, x-t, x-s-common), a1 and web_session cookies, TLS fingerprints, or IP reputation. Adding time.sleep() or swapping residential proxies alone does not clear 461 for long.

BeatAPI provides 44 Xiaohongshu actions through POST https://api.beatapi.io/v1/social-data/call and remote MCP (https://beatapi.io/mcp) at $0.03 per request (checked 2026-11-23; failed gateway calls cost $0), with no Xiaohongshu login, cookie, or local JS signing.

Why rotating proxies alone does not stop HTTP 461

Most scrapers treat 461 like an IP ban (403 or 429), so they buy more proxies and keep sending the same request headers. On Xiaohongshu, three checks happen together:

  1. Dynamic request signing (x-s / x-t / x-s-common): Generated inside obfuscated client JS. When Xiaohongshu updates its web bundle, older local signers start producing invalid signatures immediately.
  2. Account-bound web_session + a1 cookies: Once a session triggers a slider captcha or 461 on one IP, reusing that cookie on a fresh IP still returns 461 until a human solves the verification in a real browser.
  3. Browser & TLS fingerprint checks: Standard Python requests or urllib TLS handshakes do not match Chrome’s JA3/JA4 fingerprint, flagging automated traffic on the first few calls.

Three ways to respond when you hit 461

OptionWhen it worksHidden cost
Keep patching local cookies + PlaywrightOne-off personal export of 10–20 notesManual captcha solving, Playwright RAM overhead, and real risk of restricting your personal Xiaohongshu account
Reverse-engineer x-s + buy residential proxiesHigh-volume dedicated scraping teamBreaks every time Xiaohongshu rotates JS signing; proxy bandwidth + engineering maintenance quickly exceed $100+/month
Switch to BeatAPI (xiaohongshu.app_v2.*)Production apps, research workflows, and AI agentsPay per successful request ($0.03 for search, note detail, and comments; $0 on failed calls); zero login or cookie management

Replace the failing scraper call with BeatAPI

With BeatAPI, your code sends BEATAPI_API_KEY and the target keyword, note ID, or share link. BeatAPI handles Xiaohongshu signing and routing on the server side:

curl -sS https://api.beatapi.io/v1/social-data/call \
-H "Authorization: Bearer $BEATAPI_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"action":"xiaohongshu.app_v2.search_notes","params":{"keyword":"咖啡机","page":1,"sort_type":"comment_descending"}}'

Common BeatAPI Xiaohongshu actions (all $0.03 per request, checked 2026-11-23):

  • xiaohongshu.app_v2.search_notes: keyword search with sort and note-type filters (data.data.items[].note, data.page, data.next_page, data.search_id)
  • xiaohongshu.app_v2.get_image_note_detail and get_video_note_detail: full note title, desc, and metadata from a note_id or share_text
  • xiaohongshu.app_v2.get_note_comments and get_note_sub_comments: top-level comments and reply threads

Example search response envelope (recorded 2026-11-23, anonymized)

{
"object": "social_data.call",
"status": "succeeded",
"request_id": "202611260732156684925978268d9d6yOLdMCKV",
"action": "xiaohongshu.app_v2.search_notes",
"data": {
"code": 0,
"success": true,
"page": 1,
"next_page": 2,
"search_id": "2eExampleSearchId",
"data": {
"items": [
{
"note": {
"id": "6a9c5884000000002b002d95",
"title": "Sample coffee machine review"
}
}
]
}
},
"usage": {
"billing_unit": "request",
"quantity": 1,
"price_usd": "0.03",
"price_version": "sd_20cf7d377ad9"
}
}

Check live schemas and rates for $0 via POST /v1/capabilities/inspect, or review BeatAPI pricing.