Python guide: fetch WeChat Official Account articles, stats and comments
Track competitor WeChat Official Accounts on a schedule—fetching new articles, read/like stats and comments with zero WeChat sessions to maintain.
Endpoints used
| Endpoint | Path | Price |
|---|---|---|
| WeChat account search | GET /v1/wechat/accounts/search |
$0.02 |
| WeChat Official Account articles | GET /v1/wechat_mp/accounts/articles/list |
$0.02 |
| WeChat article full text | GET /v1/wechat_mp/articles/get |
$0.02 |
| WeChat article reads and engagement | GET /v1/wechat_mp/articles/stats |
$0.02 |
| WeChat article comments | GET /v1/wechat_mp/articles/comments/list |
$0.02 |
Steps
1. Locate the Official Account
Call GET /v1/wechat/accounts/search ($0.02) to find the account identifier.
2. List recent published articles
Call GET /v1/wechat_mp/accounts/articles/list ($0.02/page) to get article URLs and timestamps.
3. Fetch full text & stats for new URLs
Call wechat_mp.articles.get ($0.02) and wechat_mp.articles.stats ($0.02) only on newly seen articles.
Complete code
import os, requests
API = "https://api.feedmcp.com"
HEADERS = {"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}", "X-Max-Price": "0.02"}
article_url = "https://mp.weixin.qq.com/s/EXAMPLE_ARTICLE"
article = requests.get(f"{API}/v1/wechat_mp/articles/get", params={"url": article_url}, headers=HEADERS, timeout=30).json()
stats = requests.get(f"{API}/v1/wechat_mp/articles/stats", params={"url": article_url}, headers=HEADERS, timeout=30).json()
print("Title:", article["data"]["item"].get("title"))
print("Stats:", stats["data"]["item"])
Cost estimate
Fetching full text plus read/like stats for one article costs $0.04; deleted articles return not_found at no charge.
Questions
How much does it cost to run this guide?
Fetching full text plus read/like stats for one article costs $0.04; deleted articles return not_found at no charge.
Can I do this without writing code?
Yes. Install the FeedMCP MCP server in Claude, Cursor or Cherry Studio and run the same workflow in plain language.
More guides
- Python guide: search Xiaohongshu notes and export comments to CSV
- Python guide: Douyin trending, video comments and Xingtu creator rates
- Extract video transcripts from YouTube, TikTok, Instagram, X & Meta Ads for LLMs
- Monitor competitor ads across Meta, Google, LinkedIn & TikTok in one script
- Mine product pain points across TikTok, Reddit, Xiaohongshu & Douyin with MCP
- Low-cost X (Twitter) monitoring with per-item pricing ($0.0003/item)
- Production guardrails for AI agents: spend caps, X-Max-Price & idempotency