> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

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

> Why Xiaohongshu scrapers hit HTTP 461 even after rotating proxies, what triggers Xiaohongshu's x-s and web_session verification gate, and how to switch to BeatAPI ($0.03/request, no login or cookie).

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

| Option                                               | When it works                                      | Hidden cost                                                                                                                       |
| ---------------------------------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **Keep patching local cookies + Playwright**         | One-off personal export of 10–20 notes             | Manual captcha solving, Playwright RAM overhead, and real risk of restricting your personal Xiaohongshu account                   |
| **Reverse-engineer `x-s` + buy residential proxies** | High-volume dedicated scraping team                | Breaks 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 agents | Pay 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`**

```bash title="cURL"
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"}}'
```

**`Python`**

```python title="Python"
import json, os, urllib.request

payload = json.dumps({
    "action": "xiaohongshu.app_v2.search_notes",
    "params": {"keyword": "咖啡机", "page": 1, "sort_type": "comment_descending"},
}).encode()

req = urllib.request.Request(
    "https://api.beatapi.io/v1/social-data/call",
    data=payload,
    headers={
        "Authorization": f"Bearer {os.environ['BEATAPI_API_KEY']}",
        "Content-Type": "application/json",
        "User-Agent": "beatapi-docs-example/1.0",
    },
)
with urllib.request.urlopen(req, timeout=30) as resp:
    data = json.loads(resp.read().decode("utf-8"))
print(data["status"], data["request_id"])
```

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)

```json
{
  "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](https://beatapi.io/pricing).

## Related

* [Xiaohongshu xsec_token, x-s & 300011](/faq/xiaohongshu-xsec-token-and-x-s)
* [Xiaohongshu MCP without login](/faq/xiaohongshu-mcp-without-login)
* [Fetch Xiaohongshu comments](/guides/xiaohongshu-note-comments)
* [MediaCrawler alternative](/faq/mediacrawler-alternative)