How to search WeChat articles by keyword and publish time
Use WeChat Search to find WeChat articles by keyword, sort, and publish time with one API call
On this page
You have one brand name to check against WeChat articles from the past week, and a briefing that needs up to five citable articles. One call to tikhub.wechat_search.v2.fetch_search, through POST /v1/runs with toolId tikhub.wechat_search.v2.fetch_search, returns the first page of matches when business_type is set to article and publish_time to week
The worksheet below is the deliverable. Nothing in it has been produced: the values are placeholders showing the shape, and the one real call this article reports has its own section further down
The deliverable table
Example input, to be replaced with your own keyword:
| Field | Example value |
|---|---|
keyword | 人民日报 |
business_type | article |
sort | default |
publish_time | week |
offset | 0 |
cursor | empty |
raw | true |
The worksheet has one row per search, with a note per candidate article:
| Keyword | total | cursor | Result type | Category | Reader relevance note |
|---|---|---|---|---|---|
| 人民日报 (Example) | number from the response | string or empty | type value on an item | a word from categories | one line on why it fits the briefing |
total and cursor are read from the response. The result type is the type value on an item in data.results.data, and the category is a word value from an entry in data.categories. The relevance note is written by the reader, not read from the response
Inputs for the first page
keyword is required and accepts 1 to 100 characters. The rest are optional: business_type (defaults to the comprehensive vertical), sort (defaults to relevance), publish_time (defaults to the unrestricted range), offset (default 0), cursor (empty on the first page) and raw (default true)
business_type picks the vertical. The contract lists 18 keys, among them the comprehensive vertical, account, article, video and sticker. Limit: only those five are verified to return data. The other keys are gated server-side per account and region and currently come back empty, with a count of zero plus a no_more message, and they are still billed as a normal call. A comprehensive search returns the categories field that lists the tabs your account can actually use
sort takes default or 0 for relevance, latest or 1 for newest first, and hot or 2 for most liked. publish_time takes the unrestricted range or 0, day or 1, week or 2, and half_year or 3. Both accept the string key or the integer
offset is 0 for the first page, and later pages need the cursor from the previous response. Passing offset alone does not paginate, since it brings the first page back
raw true returns the raw search response, false a simplified parsed structure
Reading the response fields that drive the decision
The output is the supplier's raw JSON with no fixed schema. The field names shown in the contract's output schema were observed on a single run, so the agent should read the field names from the first page before it builds the table
data.total: the hit count for the keyword. The observed run had 304.data.cursor: the pagination string to send back with the next call.data.categories: an array of tab entries, each withtype,wordandextra_kvs. Awordvalue fills the category column.data.results: holdsret,query,lang,offsetand adataarray whose items carrytypeandsubBoxes. The contract does not fix a schema for the boxes, so the article-level values come from whatever the first page shows.data.no_moreanddata.continue_flag: the stop signals for pagination.data.keyword,data.offset,data.debug_idanddata.business_type: echo and debug values to file beside the table.
The note column is where the decision sits. Read the item fields on the first page and write one line on why each of up to five articles belongs in the briefing
What one real call returned
One call was made on 2026-11-13. The input sent used keyword 人民日报, the comprehensive vertical, the default sort, the unrestricted time range, offset 0, cursor null and raw true, so it ran on the default vertical and time range rather than the article and week settings above. Billing settled with a charge of 0.01 USD against a ceiling of 0.01 USD
The top-level keys under data were total, cursor, offset, keyword, no_more, results, debug_id, categories, debug_info, business_type and continue_flag
| Field | Value |
|---|---|
data.total | 304 |
data.offset | 18 |
data.keyword | 人民日报 |
data.debug_id | 034eaa1a |
data.business_type | 0 |
data.continue_flag | 1 |
data.categories is an array with 18 items, and the first item has the keys type, word and extra_kvs
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search WeChat
articles for the keyword 人民日报, limited to articles from the past week.
Check the current inputs and price of tikhub.wechat_search.v2.fetch_search
before running anything. Make one call with business_type set to article,
sort default, publish_time week, offset 0, cursor null and raw true. Read
the field names from the first page of the response, because the output
has no fixed schema. Return a table with keyword, total, cursor, result
type, category and a relevance note for up to five candidate articles.
Do not paginate on this run and do not invent results. Report the settled
charge against the price ceiling.Swap in your own keyword. The prompt covers one page; add a second call with the returned cursor only if the first page leaves you short of five candidates
Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The listing is a fixed per-call price with the unit max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges, and model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single first-page article search | calls x per-call price | $0.01 per call | 1 | $0.01 |
| Five-page article sweep | calls x per-call price | $0.01 per call | 5 | $0.05 |
The rule text reads: "Fixed per-call price; successful empty results are charged." A page that comes back with nothing is still billed as a normal call, so a sweep over a thin keyword costs the same as a sweep over a busy one
Next action
Send your own keyword through the WeChat Search tool page: https://purrkey.app/tools/wechat_search?q=fetch_search. If the briefing also covers Weibo, the companion guide is https://purrkey.app/blog/search-weibo-topics-by-keyword
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 Search.FAQ
How do I search WeChat articles by keyword and publish time?
Send one call to tikhub.wechat_search.v2.fetch_search with keyword set to your topic, business_type set to article and publish_time set to week. The response returns the first page of matching articles with a cursor for the next page.
What inputs does tikhub.wechat_search.v2.fetch_search take?
keyword is required and accepts 1 to 100 characters. The optional inputs are business_type, sort, publish_time, offset, cursor and raw.
Which business_type values return data?
all, account, article, video and sticker are verified to return data. The remaining vertical keys are gated server-side per account and region and currently come back empty, and an empty page is still billed as a normal call.
How do I paginate through WeChat search results?
Pass offset 0 for the first page, then send the cursor from the previous response back with the next call. Passing offset alone does not paginate, because it returns the first page again.
How much does a five-page WeChat article search cost?
At $0.01 per call, five calls come to at most $0.05, since the per-call price is a ceiling that settles at the actual AnyAPI charge. Successful empty results are charged as normal calls.
What does the response from the tool look like?
The supplier's raw JSON with no fixed schema. The top-level keys under data on the one observed run were total, cursor, offset, keyword, no_more, results, debug_id, categories, debug_info, business_type and continue_flag.
Next step
Try this with WeChat Search
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.