China data for agents
Example scripts, Apify MCP configs, and prompts for four public-data Apify Actors that give coding agents structured China internet, social, app-store, and A-share data.
If you use Claude Code, Cursor, or Claude Desktop, connect the hosted Apify MCP server, then ask for a Weibo keyword watch, a morning hot-search briefing, an app-chart alert, or a 股吧 / filings digest. The same Actors are also callable from Python or Node with apify-client.
Actors (pay-per-event, public pages only, no login required):
| Actor | What an agent gets | PPE pricing | Store |
|---|---|---|---|
| China Trending Topics | Unified hot-search rows from Weibo, Baidu, Douyin, Zhihu, Bilibili, and Toutiao | $0.001 / topic + $0.00005 start. Failed boards and onlyNew skips are free. |
alexsyin/china-trending-topics |
| Weibo Scraper | Public posts by keyword / #hashtag#, user timeline, or post URL, with optional comments |
$0.003 / post, $0.002 / comment. Failed and already-seen items are free. | alexsyin/weibo-scraper |
| China App Rankings | Apple CN, TapTap, and Xiaomi charts in one schema, with rank-change deltas | $0.001 / row + $0.00005 start. Failed or empty charts are free. | alexsyin/china-app-rankings |
| Guba Scraper | Eastmoney 股吧 posts and official A-share announcements (公告), optional full text and PDF links | $0.003 / post, $0.001 / announcement + $0.00005 start. Duplicates and failures are free. | alexsyin/guba-scraper |
A full six-board trending snapshot is typically 150–220 topics (about $0.15–$0.22). A 20-post Weibo search with no comments is about $0.06. Start with the tiny inputs in the scripts below.
中文:这四个 Actor 从公开页面采集中国热搜、微博、应用商店榜单、东方财富股吧和 A 股公告,输出稳定 JSON,适合 MCP / Claude Code / Cursor 直接调用。无需登录。按成功写入的条目计费,失败和去重跳过的不收费。
Quickstart
You need a free Apify account and an API token.
1. Apify MCP (Claude Code, Cursor, Claude Desktop)
The official hosted server is https://mcp.apify.com. Use the tools query parameter to expose these four Actors as first-class tools (alexsyin--china-trending-topics, and so on). OAuth is the recommended auth method so the token never sits in a config file.
Claude Code
claude mcp add apify-china-data --transport http \
"https://mcp.apify.com?tools=alexsyin/china-trending-topics,alexsyin/weibo-scraper,alexsyin/china-app-rankings,alexsyin/guba-scraper"
Sign in with OAuth when prompted. Then try a prompt from prompts/.
You can also install Apify's official Claude Code plugin (/plugin install apify) if you want Store-wide search plus these Actors. See mcp/README.md for Cursor, Claude Desktop, Bearer-token, and local stdio options.
2. Python
python -m venv .venv && source .venv/bin/activate
pip install -r python/requirements.txt
export APIFY_TOKEN="your_token" # or copy .env.example to .env and load it
python python/run_trending.py
3. Node.js
cd node && npm install
export APIFY_TOKEN="your_token"
node run-trending.js
Sample outputs from real cloud runs are in samples/ so you can inspect the schema without spending anything.
Repository layout
mcp/ MCP configs for Claude Code, Cursor, and Claude Desktop
python/ apify-client scripts, one per Actor
node/ ESM apify-client scripts, one per Actor
samples/ Real (short) JSON datasets from Apify cloud runs
prompts/ Ready-to-paste agent prompts
skills/ Agent skill (SKILL.md) that teaches an agent when and how to call the four Actors
Agent skill
skills/apify-china-social-market-data is a SKILL.md for Claude Code, Cursor and other skill-aware agents. It tells the agent which of the four Actors to pick for a request, how to build a small first input, what the output fields are, and where the cost traps are. It follows the format of apify/awesome-skills.
To install it into a project with npx skills:
npx skills add syin31437-collab/china-data-for-agents
What each Actor returns
- Trending topics —
platform,rank,title,url,heat_value,tag,is_pinned,is_new,fetched_at. Heat scores are only comparable within one platform. UseonlyNewon a schedule to pay for new entries only. - Weibo —
id,url,text,createdAt(Beijing time,+08:00),author, counts,images/video,hashtags,mentions, optionalcomments. Without a cookie, expect about 50–120 unique posts per keyword and the latest ~10 posts per user. - App rankings —
source,chartType,rank,name,appId,developer,rating(normalized to 5),url, plusrankDelta/isNewEntrywhentrackRankChangeis on. - Guba / announcements —
type(postorannouncement),stock_code,stock_name,title,url,published_at, optionaltextand announcementpdf_url. Xueqiu (雪球) is not included.
Input schemas and more examples live on each Actor's Store page. The scripts in this repo use small default inputs so a first run stays well under $0.10.
Pricing and fair use
All four Actors use pay-per-event pricing. You are billed only for items written to the dataset. Empty results, failed platforms, and items skipped by onlyNew are not charged, aside from a $0.00005 start fee on the Actors that define one.
These Actors collect publicly visible pages and official feeds only. They do not log in or bypass captchas. Output can still contain personal data; use it only if you have a lawful basis (PIPL, GDPR, and similar rules may apply).
Further reading
- Apify MCP server docs — tool selection, OAuth, stdio
- Apify MCP configurator — visual tool picker that pastes a client config
- Claude Code integration
- Cursor integration
- Claude Desktop integration
- Publisher profile: apify.com/alexsyin
MIT licensed. Issues and PRs that improve the examples are welcome.