From one keyword to everything an account has posted, in four calls
The article url from article_search opens every later step: full text, engagement and comments all take it, and the account it came from goes to account_profile and account_articles.
- 1
Search articles with article_search
article_search
keyword is a word or phrase from the article, not a personal WeChat ID or chat text. category takes ALL, LATEST or HOT; FOLLOWED and RECENT_READ depend on a WeChat login, which this server doesn't use, so they usually come back empty. Each hit has a title, summary, url, cover, account name and publish time.
- 2
Read the full article with article_detail
article_detail
Pass the article url to article_detail for plain text in content_text and formatted content_html, plus the author, account name and account_ghid, images, the is_original flag and the IP region in ip_region. The digest and hashtags are sometimes missing.
- 3
Check reach and comments with article_metrics and article_comments
article_metricsarticle_comments
article_metrics takes the same url and returns read_count, like_count, watching_count (Wows), share_count, collect_count and comment_count. article_comments reads the comment section; each comment has its likes, an is_top flag for pinned ones, reply_count and province. For a comment with replies, pass its id as comment_id to comment_replies.
- 4
Profile the account with account_profile and account_articles
account_profileaccount_articles
account accepts the WeChat ID, the original ID that starts with gh_, or a link to any article from that account; personal WeChat IDs don't work. account_profile returns the name, type, description and biz. account_articles lists past articles, 8 by default and up to 160, each with is_original. A full account name works only when exactly one account has that name; otherwise you get a 422 before any charge, so look up the original ID with account_search first.