Article Search

Searches WeChat Official Account articles by keyword within a selected category such as followed accounts, latest, recently read, or hot, with continuation pagination. Use it to focus article discovery on a particular result stream.

Endpoint ID
GET /v1/weixin/search_article_v2
Endpoint ID
weixin.search_article_v2
Price
$0.16 per successful call · failed calls are free

Parameters

Name Required Type Description Example Allowed values
keyword Required string Search keyword for categorized WeChat Official Account article web search. 咖啡 —
sub_search_type Optional string Weixin article category search subtype ALL ALLFOLLOWEDLATESTRECENT_READHOT
current_page Optional integer Current page number starting from 1 for WeChat web search pagination. 1 —
offset Optional integer Search result offset returned by the previous response. Use 0 for the first page. 0 —
cookies_buffer Optional string Opaque pagination state returned by the previous WeChat web search response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body. — —

Code samples

curl -G "https://api.mofa-ai.com/v1/weixin/search_article_v2" \
  -H "Authorization: Bearer $MOFA_API_KEY" \
  --data-urlencode 'keyword=咖啡' \
  --data-urlencode 'sub_search_type=ALL' \
  --data-urlencode 'current_page=1' \
  --data-urlencode 'offset=0'

Try it

Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.

Sign in to try

Example response

Captured 2026-11-07, took 1356 ms · Request parameters {"offset": "0", "keyword": "咖啡", "current_page": "1", "sub_search_type": "ALL"}

JSON
{
  "success": true,
  "code": 0,
  "message": "success",
  "request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
  "endpoint": "weixin.search_article_v2",
  "cost_usd": 0.16,
  "data": {
    "code": 0,
    "data": {
      "ret": 0,
      "data": [
        {
          "type": 2,
          "boxID": "0x2-0-15988177807488435251",
          "count": 38,
          "items": [
            {
              "date": 1793675675,
              "desc": "都是<em class=\"highlight\">咖啡</em>,美式、拿铁、三合一,不只是口感不同,对骨骼的友好程度也不同。美式是浓缩加水,几乎不含钙。一杯常规美式造成的钙丢失其实很少,日常喝够奶,基本能够对冲。",
              "docID": "15988177807488435251",
              "title": "美式、拿铁、三合一,谁才是骨头的“梦中情咖”?",
              "source": {
                "title": "羊城晚报",
                "dateTime": "4天前"
              },
              "docType": 0,
              "doc_url": "http://mp.weixin.qq.com/s?__biz=MjM5MTYwMTMwMQ==&mid=2651755447&idx=1&sn=0cd0e3e6f514a39465beb06ef5c9dd71&chksm=bc60e75e50b8c121631a8573c86b22d864e3eeb6516eb08573de2f43b7a5778077ac52e43c67&scene=7#rd",
              "mpScene": 7,
              "reportId": "15988177807488435251:mp:129897",
              "src_type": 49,
              "thumbUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/j41VnwgcJibF9OIRp67OG4HSQ0YwsnrLIG84pQApAfPICJJTPlKJ83lqOb3qI8YKHFmZcFycZdUFW9lwaibuqualfJU9vIMPpVljDsc7VjjLg/0?wx_fmt=jpeg",
              "timestamp": 1793675675,
              "itemShowType": 0,
              "report_extinfo_str": "src_channel%3D2013145042_4_0_3664493363_0%26tuple%3D2391601301_2651755447_1"
            },
            {
              "date": 1794092447,
              "desc": "<em class=\"highlight\">咖啡</em>是埃塞俄比亚在进博会上最具辨识度的品类,也是最容易用数据说话的品类。埃塞俄比亚是非洲最大的阿拉比卡<em class=\"highlight\">咖啡</em>生产国,全国<em class=\"highlight\">咖啡</em>年产量约60万吨,<em class=\"highlight\">咖啡</em>产业与数百万小农的生计直接挂钩。",
              "docID": "5244603196470908087",
              "title": "埃塞俄比亚连续九年参展进博会:<em class=\"highlight\">咖啡</em>对华出口额一年增58%",
              "source": {
                "title": "埃塞商务圈",
                "dateTime": "57分钟前"
              },
              "docType": 0,
              "doc_url": "http://mp.weixin.qq.com/s?__biz=MzI2NDQ3OTE1Nw==&mid=2247584918&idx=3&sn=ad65793f667659065fd77c48c7f7a6e0&chksm=eb4e179f45e53c8c47cf6183aa467b766d2b0617655133bcae94784a9fa1cb16bafa98efe8f3&scene=7#rd",
              "mpScene": 7,
              "reportId": "5244603196470908087:mp:680344",
              "src_type": 49,
              "thumbUrl": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/PS69M3BiauTdca6liaGJ42ricuicdfVniaBA69ATbrD8kRicBdhzme1Dx6rvJfSfsyxEkriaSw6NVF4svyE8f3QDACxyD6j1qRvSXM5UP4zGUUkbfo/0?wx_fmt=jpeg",
              "timestamp": 1794092447,
              "itemShowType": 0,
              "report_extinfo_str": "src_channel%3D2804691747_4096_0_2893846665_0%26tuple%3D3264479157_2247584918_3"
            },
            "… +36"
          ],
          "boxPos": 1,
          "subType": 0,
          "real_type": 2,
          "resultType": 0,
          "totalCount": 244,
          "boxPosMerge": 1,
          "useNativeRender": false
        }
      ],
      "lang": "zh_CN",
      "query": "咖啡",
      "offset": 38,
      "cookies": "{\"box_offset\":0,\"businessType\":2,\"clm_box_offset\":1,\"clm_sub_box_offset\":1,\"cookies_buffer\":\"UpAHCGIQARgCIgblkpbllaFQAVoKbmV3c3NlYXJjaIIBhgYQAKIBgAYxNTk4ODE3NzgwNzQ4ODQzNTI1MTs1MjQ0NjAzMTk2NDcwOTA4MDg…",
      "category": [
        {
          "type": 0,
          "word": "全部"
        },
        {
          "type": 7,
          "word": "视频号"
        },
        "… +14"
      ],
      "isDivide": 0,
      "searchID": "1794095914918116573",
      "direction": 2,
      "timeStamp": 1794095911,
      "experiment": [
        {
          "key": "mmsearch_shopping_cart_entry",
          "value": "1"
        },
        {
          "key": "s1s_all_prefetch_next_page",
          "value": "2"
        },
        "… +3"
      ],
      "isHomePage": 0,
      "pageNumber": 1,
      "resultType": 0,
      "slideFilter": {
        "type": 87,
        "boxID": "0x2000000000-12-",
        "isHold": 1,
        "filters": [
          {
            "type": 1,
            "title": "搜索范围",
            "display": 1,
            "options": [
              {
                "type": 1,
                "title": "不限",
                "paramKey": "docSuperType",
                "reportId": "docSuperType_0:filter_option:777846",
                "selected": 1,
                "paramValue": "0"
              },
              {
                "type": 1,
                "title": "最新",
                "paramKey": "docSortType",
                "reportId": "docSortType_2:filter_option:910545",
                "paramValue": "2"
              },
              "… +8"
            ],
            "paramKey": "docSuperType",
            "mutexGroup": "doc_filter",
            "isArrayValue": 1
          }
        ],
        "showType": 2
      },
      "continueFlag": 1,
      "isAutoPlayVideo": 1,
      "enableQuestionClosely": false
    },
    "message": null,
    "requestId": "72cd2d4f73ce456b803774b90a5718d2",
    "recordTime": "2026-11-08T07:58:32.250114318",
    "requestParams": {
      "body": {
        "offset": "0",
        "keyword": "咖啡",
        "currentPage": "1",
        "subSearchType": "ALL"
      },
      "query": {}
    }
  }
}