XTREEXTREE
中文Get started

Blog

WeChat Channels data API

Guide

From a channel to feeds and engagement

XTREE serves the WeChat Channels endpoints that are on sale: resolve a channel, list feeds, list live replays, read comments, reads and likes, titles, short links, and id conversion. Prices are on the WeChat catalog . Keyword search for channels is not in the customer catalog. Do not call it.

Resolve the channel first

POST https://api.xtree.io/api/wechat/channels/resolve . Send one of these: username (starts with v2_ and contains @finder), channel_id (starts with sph), or url (a share link at https://weixin.qq.com/sph/ ). Sending only nickname returns 400, because there is no lookup by display name.

Then load feeds

The feed list is POST https://api.xtree.io/api/wechat/channels/feeds/list . Here channel_id is the finder username (starts with v2_ and contains @finder), not the sph id. Pass the cursor from the previous page when you need the next page.

Live replays are POST https://api.xtree.io/api/wechat/channels/live-replays and use the same channel_id.

Reads and likes for one feed are POST https://api.xtree.io/api/wechat/channels/feeds/metrics . feed_id is the numeric feed id. Comments, the title, and the short link use that same feed_id. Resolving a share link is POST https://api.xtree.io/api/wechat/channels/feeds/resolve-url and accepts only https://weixin.qq.com/sph/ links.

An export_id that starts with export/ can be converted to a numeric feed id with POST https://api.xtree.io/api/wechat/channels/feeds/convert-id . Sending only the numeric id for the reverse conversion returns 400.

Fields and examples are in the docs . The agent scenario is the Channels skill . Incomplete delivery is not billed.

Questions

Can I list feeds with a display name?

No. Resolve a finder username from username, an sph channel_id, or a share link, then list feeds.