> 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.

# MediaCrawler keeps getting blocked on Xiaohongshu and Douyin: what to use instead

> Why MediaCrawler hits 461 blocks, QR login expiry, and account bans in production, and how to swap only the data-fetching layer to BeatAPI ($0.003–$0.03/request) across Xiaohongshu, Douyin, Bilibili, Kuaishou, Weibo, and Zhihu.

MediaCrawler is useful for learning how Playwright interacts with Chinese social platforms, but running MediaCrawler continuously in production hits three limits: logged-in accounts get flagged or banned, Xiaohongshu returns `461` blocks and slider captchas, and Douyin, Bilibili, and Zhihu break when frontend bundles update.

You can keep your existing CSV, database, and LLM analysis scripts and replace only the Playwright fetcher with BeatAPI (`POST https://api.beatapi.io/v1/social-data/call` or remote MCP at `https://beatapi.io/mcp`). BeatAPI requires no personal accounts or headless browsers, bills `$0.003–$0.03` per successful request, and charges `$0` on failed gateway calls.

## Where MediaCrawler works vs. where BeatAPI fits better

| Scenario              | MediaCrawler (local Playwright)                                            | BeatAPI (REST and Remote MCP)                                                                                                                                  |
| --------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Account safety**    | Requires scanning QR codes with your own accounts                          | No platform login; uses `BEATAPI_API_KEY` only                                                                                                                 |
| **Deployment**        | Needs Chromium, anti-detection patches, and residential proxies on servers | Plain HTTPS JSON call from any server, n8n, or AI agent                                                                                                        |
| **Platform coverage** | 7 Chinese platforms (XHS, Douyin, Kuaishou, Bilibili, Weibo, Tieba, Zhihu) | 19+ platforms (1,021 actions), including all major Chinese platforms plus WeChat Official Accounts, WeChat Channels, TikTok, Instagram, YouTube, X, and Reddit |
| **AI analysis**       | Separate LLM API key and billing                                           | Same BeatAPI USD balance also covers 70+ AI models, SEO Data, and Web Search                                                                                   |

## Task-by-task migration map (MediaCrawler → BeatAPI)

Keep your existing storage and analysis scripts, and replace each platform crawler with the matching BeatAPI action (prices checked 2026-11-23):

| MediaCrawler target              | BeatAPI action ID                      | Checked price      |
| -------------------------------- | -------------------------------------- | ------------------ |
| Xiaohongshu keyword search       | `xiaohongshu.app_v2.search_notes`      | `$0.03` / request  |
| Xiaohongshu note comments        | `xiaohongshu.app_v2.get_note_comments` | `$0.03` / request  |
| Douyin video detail              | `douyin.web.fetch_one_video`           | `$0.003` / request |
| Douyin video comments            | `douyin.app.v3.fetch_video_comments`   | `$0.003` / request |
| Bilibili video search            | `bilibili.web.fetch_general_search`    | `$0.003` / request |
| Bilibili video comments          | `bilibili.app.fetch_video_comments`    | `$0.003` / request |
| Kuaishou search                  | `kuaishou.app.search_comprehensive`    | `$0.03` / request  |
| WeChat Official Account articles | `wechat_mp.v2.fetch_account_articles`  | `$0.03` / request  |

## Drop-in Python wrapper to replace your crawler client

```python
import json, os, urllib.request

def beatapi_call(action: str, params: dict) -> dict:
    req = urllib.request.Request(
        "https://api.beatapi.io/v1/social-data/call",
        data=json.dumps({"action": action, "params": params}).encode(),
        headers={
            "Authorization": f"Bearer {os.environ['BEATAPI_API_KEY']}",
            "Content-Type": "application/json",
            "User-Agent": "beatapi-migration/1.0",
        },
    )
    with urllib.request.urlopen(req, timeout=30) as resp:
        return json.loads(resp.read().decode("utf-8"))

# Example: fetch Douyin comments ($0.003) without Playwright or cookies
res = beatapi_call("douyin.app.v3.fetch_video_comments", {"aweme_id": "7364837462110", "cursor": 0})
print(res["status"], res["request_id"])
```

Inspect any action's live input schema and price for `$0` with `POST /v1/capabilities/inspect`, or browse the [Social Data Catalog](/social-data-catalog) and [BeatAPI pricing](https://beatapi.io/pricing).

## Related

* [Fix Xiaohongshu HTTP 461](/faq/xiaohongshu-461-status-code)
* [Douyin a_bogus signing vs. API](/faq/douyin-a-bogus-signature)
* [Scraper vs. data API cost](/faq/scraper-vs-social-data-api)
* [Fix Bilibili 412 & WBI errors](/faq/bilibili-412-wbi-error)