syin31437-collab

China data for agents

Community syin31437-collab
Updated

Example scripts, MCP configs, and prompts so AI agents can fetch structured China data from Alex Yin's Apify Actors (Weibo, trending topics, app rankings, Guba / A-share announcements).

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. Use onlyNew on a schedule to pay for new entries only.
  • Weibo — id, url, text, createdAt (Beijing time, +08:00), author, counts, images / video, hashtags, mentions, optional comments. 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, plus rankDelta / isNewEntry when trackRankChange is on.
  • Guba / announcements — type (post or announcement), stock_code, stock_name, title, url, published_at, optional text and announcement pdf_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

MIT licensed. Issues and PRs that improve the examples are welcome.

MCP Server · Populars

    REA: Reverse Engineer Anything

    Reverse engineer anything, Reimagine everything. RE anything from app behavior down to native binaries. Discord: https://discord.gg/GkcryMnJDM

    Community morluto

    🦞 OpenClaw — Personal AI Assistant

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    Community openclaw

    MarkItDown-MCP

    An MCP server for the "markitdown" library.

    Community microsoft

    MarkItDown

    Python tool for converting files and office documents to Markdown.

    Community microsoft

    graphify

    Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

    Community Graphify-Labs

MCP Server · New

    tokensave-dev

    tokensave-cli

    Local code intelligence MCP server and CLI for AI coding agents. Indexes your repository into a knowledge graph of symbols, calls and types, so agents explore code with fewer tokens and tool calls. 80+ tools, 50+ languages, 12+ agent integrations. Your code never leaves your machine.

    Community tokensave-dev
    ordewell

    ordewell

    Open source agent orchestrator. One goal becomes an editable plan of tasks that run in parallel on Claude Code, Codex, OpenCode and more, each on its own git branch.

    Community ordewell
    goodnight000

    api-anything

    Turn any website into an API your agent can call. Learns from the site's own frontend, heals itself when the site changes.

    Community goodnight000
    shuttle-browser

    Shuttle

    A Chromium fork built for AI agents: built-in MCP server, per-agent logged-in identities, sessions as tab groups

    Community shuttle-browser
    synectus

    OpenGMB

    Open-source Google Business Profile manager: reviews, posts, profile edits, rank tracking and keyword research for every location, with approval rules before anything goes live and an MCP server for AI agents. Self-host with Docker.

    Community synectus