Social media5 min readBy Purrkey teamUpdated

How to list a WeChat Official Account's articles

Fetch one WeChat Official Account's article page and read returned item IDs, timestamps, and next_offset for a reading shortlist

On this page

You need to plan a weekly reading shortlist from one WeChat Official Account, using its first article page and up to five returned entries. Fetch that page in simplified form, inspect the entries, and fill a worksheet with item IDs, timestamps, message types and a reading priority. The table below is the deliverable design, and its values are placeholders showing the shape rather than output from a run

appMsgIdcreateTimeupdateTimemsgTypeuniqueIdnext_offsetreading priority
placeholderplaceholderplaceholderplaceholderplaceholderplaceholderP1, P2, P3 or skip

The worksheet has one row per entry you inspect. The next_offset column repeats the page cursor for that response, so the same cursor can appear on several rows. Your shortlist decision sits in the reading priority column, which you fill after you inspect the entry

Fetch the first article page

Call tikhub.wechat_mp.v2.fetch_account_articles through POST /v1/runs with toolId tikhub.wechat_mp.v2.fetch_account_articles. The required body field is username. It accepts gh_…, gh_…@app or a custom WeChat ID, and the value can come from $.data.content.user_name in an article detail response. Set offset to an empty string on the first page, item_show_type to 0 for articles, and raw to false for the simplified output. item_show_type also supports 5 for videos, 7 for audios and 8 for image-text posts. page_size accepts an integer from 1 to 100 and defaults to 20

WeChat currently ignores page_size, so page_size cannot control the number of returned articles. The count is decided by the account itself, and the contract says passing 1 or 40 returns the same result. Paginate with offset and next_offset instead. For the next page, pass the previous response's data.next_offset as offset. If the first page has fewer than five entries, use next_offset to request another page and keep the same worksheet

Example input: username = nikejdi. This is a placeholder for your own account, so replace it with the username of the account you plan to read

Read the returned fields

The output is the supplier's raw JSON with no fixed schema. The contract's output field names were observed on the single run below, so read the field names from the first page before you build the worksheet. In the simplified response, start with data.articles, then inspect up to five entries

For each entry, appMsg.baseInfo.appMsgId, appMsg.baseInfo.createTime, appMsg.baseInfo.updateTime, baseInfo.msgType and baseInfo.uniqueId feed the worksheet. Use data.next_offset as the cursor for the next page and check data.is_end before paging. If a field name is missing on your response, leave that cell empty and do not fill it by hand. The reading priority column is your editorial decision, not a returned field. Set it with a rule such as newest first by createTime, then mark P1, P2, P3 or skip. Keep msgType and uniqueId as returned values, because the contract does not map the integer message types to labels

What one real call returned

Run date: 2026-11-13. Input sent: {"body": {"username": "nikejdi", "page_size": 20, "offset": "", "item_show_type": 0, "raw": true}}. Billing: status SETTLED, charged 0.01 USD against a ceiling of 0.01 USD

  • Top-level keys under data: count, pages, is_end, articles, debug_id, debug_info, next_offset, biz_username
  • data.count = 10; data.pages = 1; data.is_end = 0
  • data.articles is an array with 10 items; first item keys: text, image, video, voice, appMsg, baseInfo, featuredExposed, pbRequestMsgInfo
  • data.debug_id = bbe7e1ce; data.next_offset = WABgAGiB1O2tj/Kyw2g=; data.biz_username = nikejdi

The agent prompt

The run above used raw true, while the prompt below asks for raw false so the worksheet uses simplified output. The prompt returns a table rather than a prose summary, so the worksheet can be compared with the deliverable design. Replace the example username before running

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the first article page for the WeChat Official Account with username nikejdi. Before running, check the current inputs and price of tikhub.wechat_mp.v2.fetch_account_articles. Send username nikejdi, page_size 20, offset "", item_show_type 0, raw false. Read the field names from the first page. Inspect up to five entries in data.articles and return a table with appMsgId, createTime, updateTime, msgType, uniqueId, next_offset and reading priority. Use data.next_offset from the response for the next page and do not rely on page_size. Do not guess fields.

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The catalog gives $0.01 per call for this tool, with the rule: "Fixed per-call price; successful empty results are charged." The totals below are ceilings for the planned calls. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
First article page1 call x $0.01$0.01 per call1 call$0.01
Three pages with cursor3 calls x $0.01$0.01 per call3 calls$0.03

The first page plan is one call. A run that follows two more cursors is the three-call plan, at most $0.03. Successful empty results are charged under the catalog rule

Run the first page

Open the WeChat MP article listing tool, replace the example username, and run the first page for your account

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with WeChat Official Accounts.
Explore WeChat Official Accounts tools and pricing

FAQ

How do I list a WeChat Official Account's articles?

Call tikhub.wechat_mp.v2.fetch_account_articles with username, an empty offset on the first page, item_show_type 0 for articles and raw false for simplified output. Then inspect data.articles and use data.next_offset for the next page.

What username forms can I use?

The username field accepts gh_…, gh_…@app and custom WeChat IDs. The value can come from $.data.content.user_name in an article detail response.

Why does page_size not change the number of articles?

WeChat currently ignores page_size, and the count is decided by the account. Paginate with offset and next_offset instead.

Which fields from the response feed the shortlist table?

appMsg.baseInfo.appMsgId, appMsg.baseInfo.createTime, appMsg.baseInfo.updateTime, baseInfo.msgType and baseInfo.uniqueId feed the worksheet. data.next_offset supplies the page cursor, and the reading priority is your own decision.

How much does it cost to fetch three pages?

At $0.01 per call, a three-page plan is three calls and at most $0.03. The catalog rule says successful empty results are charged, and model fees for the agent are not counted.

What did the real call on 2026-11-13 return?

It sent username nikejdi with page_size 20, offset empty, item_show_type 0 and raw true, and settled at 0.01 USD against a 0.01 USD ceiling. The response had data.count 10, data.pages 1, data.is_end 0, an articles array with 10 items, data.next_offset WABgAGiB1O2tj/Kyw2g= and data.biz_username nikejdi.

Next step

Try this with WeChat Official Accounts

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See WeChat Official Accounts tools

Share this article