WeChat Official Accounts Search Articles With Time And Sort
Search WeChat Official Account articles by keyword for topic research and content monitoring. A keyword is required. Choose comprehensive, newest-first, or hottest-first sorting (default: comprehensive), and filter by all time, the past day, the past seven days, or the past six months (default: all time). Start with currentPage=1, offset=0, and an empty cookies_buffer; to continue, use the page number and the offset and opaque pagination state returned by the preceding search. Returns a JSON response with search data (data), a response code (code), a message (message), and recordTime. The search-data structure is not specified, so full article text and particular article fields are not guaranteed.
Pricing
| Condition | Charge |
|---|---|
| Each call | 139.7 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
offset | integer | No | 上一次响应返回的搜索结果偏移量。第一页使用0。 | 0 |
keyword | string | Yes | 微信公众号文章的搜索关键词。 | — |
sortType | enum (COMPREHENSIVE | LATEST | HOT) | No | 微信公众号文章网页搜索结果的排序方式。 可选值: - `COMPREHENSIVE`: 综合排序 - `LATEST`: 最新优先 - `HOT`: 最热优先 | COMPREHENSIVE |
currentPage | integer | No | 微信网页搜索分页的当前页码,从1开始。 | 1 |
cookies_buffer | string | No | 由上一个微信网页搜索响应返回的不透明分页状态。第一页请留空。对于此 POST 接口,请以 application/x-www-form-urlencoded 表单体形式发送。 | "" |
publishTimeType | enum (ALL | ONE_DAY | SEVEN_DAYS | HALF_YEAR) | No | 微信公众号文章网页搜索的发布时间筛选。 可选值: - `ALL`: 全部时间 - `ONE_DAY`: 最近一天 - `SEVEN_DAYS`: 最近七天 - `HALF_YEAR`: 最近半年 | ALL |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_wechat_official_accounts_search_articles_with_time_and_sort' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"cookies_buffer": "",
"currentPage": 1,
"keyword": "南橡",
"offset": 0,
"publishTimeType": "ALL",
"sortType": "HOT"
}
}'{
"code": 0,
"data": {
"data": [
{
"boxID": "0x2-0-5873986510542745581",
"boxPos": 1,
"boxPosMerge": 1,
"count": 1,
"items": [
{
"date": 1732098625,
"desc": "■ LJID - 南境设计独家专访\"一个充满情感和温度的世界雅奢是一种美学,亦是一种智慧,它用视觉表达阐述着审美趣致,以艺术为韵脚,以生活为节奏,让空间不再是静止的背景,通过细节诠释“人境合一”的和谐乐章,让美从",
"docID": "5873986510542745581",
"docType": 0,
"doc_url": "http://mp.weixin.qq.com/s?__biz=MzAxMzQ3MTQ5Mg==&mid=2650317880&idx=1&sn=8d073757a6c65d7f50af1373b246f25b&chksm=82b77ce1d9458b0f1d40c93a3fa70148e858da2269507b6bf30c9b1464884c59acd0b1f05131&scene=7#rd",
"itemShowType": 0
}
],
"type": 2
}
]
}
}This example shows part of the response. Copied content is valid JSON.


