WeChat Article Search v2

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.

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

Parameters

  • keyword string Required

    Search keyword for categorized WeChat Official Account article web search.

    Example咖啡

  • sub_search_type string Optional

    Weixin article category search subtype

    ExampleALL

    Allowed valuesALLFOLLOWEDLATESTRECENT_READHOT

  • current_page integer Optional

    Current page number starting from 1 for WeChat web search pagination.

    Example1

  • offset integer Optional

    Search result offset returned by the previous response. Use 0 for the first page.

    Example0

  • cookies_buffer string Optional

    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'

Example response

Request parameters {"offset": "0", "keyword": "咖啡", "current_page": "1", "sub_search_type": "ALL"}

JSON Captured 2026-11-07, took 1356 ms
{
  "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": {}
    }
  }
}

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

More WeChat endpoints

  • Account Historical Articles

    $0.08

    Retrieves historical articles for a WeChat Official Account identified by ghid or article URL, with an offset cursor from the previous page. Use it to contin…

    /v1/weixin/get_account_history_articles_v2

  • Article Metrics v1

    $0.03

    Retrieves basic interaction metrics for a WeChat Official Account article URL that ends with #rd or #wechat_redirect. Use it to perform a lightweight popular…

    /v1/weixin/get_article_metrics_v1

  • Article Metrics v2

    $0.04

    Retrieves extended interaction metrics for a WeChat Official Account article by URL. Use it to compare article performance or support deeper engagement analy…

    /v1/weixin/get_article_metrics_v2

  • Article Details v1

    $0.03

    Retrieves a WeChat Official Account article by URL with selectable plain-text or rich-text content mode. Use it to collect a known article in the preferred r…

    /v1/weixin/get_article_detail_v1

  • Article Details v2

    $0.03

    Retrieves structured details for a WeChat Official Account article by URL. Use it to collect a known article for parsing, indexing, or structured content arc…

    /v1/weixin/get_article_detail_v2

  • Article Details v3

    $0.04

    Retrieves details for a WeChat Official Account article that may include video content, with selectable plain-text or rich-text mode. Use it to process known…

    /v1/weixin/get_article_detail_v3

  • Article Details v4

    $0.03

    Retrieves an HTML representation of a WeChat Official Account article by URL. Use it to preserve, render, or archive a known article as a web document.

    /v1/weixin/get_article_detail_v4

  • Article Details v5

    $0.03

    Retrieves lightweight information for a WeChat Official Account article by URL. Use it to perform a quick article lookup before deeper content, metric, or co…

    /v1/weixin/get_article_detail_v5

  • Article Comments

    $0.04

    Retrieves top-level comments for a WeChat Official Account article by URL, with an optional buffer cursor for pagination. Use it to review reader discussion…

    /v1/weixin/get_article_comment_v1

  • Article Comment Replies

    $0.04

    Retrieves replies under a top-level comment for a WeChat Official Account article, identified by article URL and contentId. Use it to inspect threaded discus…

    /v1/weixin/get_article_sub_comment_v1

  • Article Search v1

    $0.16

    Searches WeChat Official Account articles by keyword with publish-time and sort filters plus page, offset, and continuation-state pagination. Use it to disco…

    /v1/weixin/search_article_v1

  • Mini Program Search

    $0.16

    Searches WeChat Mini Programs by keyword with page, offset, and continuation-state pagination. Use it to discover mini programs related to a brand, service,…

    /v1/weixin/search_miniprogram_v1

  • WeChat Index Search

    $0.16

    Queries WeChat Index for a keyword. Use it to examine trend interest within WeChat before planning content, campaigns, or further article research.

    /v1/weixin/search_wechat_index_v1

  • Search Suggestions

    $0.16

    Retrieves WeChat search suggestions for a keyword, optionally scoped by a supported business type. Use it to expand or refine a query before a targeted WeCha…

    /v1/weixin/search_suggestions_v1

  • Account Search v1

    $0.08

    Searches WeChat Official Accounts by keyword with page-number pagination and one result per page. Use it to find an account by name or related term before pr…

    /v1/weixin/search_account_v1

  • Account Search v2

    $0.30

    Searches WeChat Official Accounts by keyword with page, offset, and continuation-state pagination. Use it to browse broader account results for creator, bran…

    /v1/weixin/search_account_v2

  • Account Original Article Count

    $0.30

    Retrieves the original-article count for a WeChat Official Account identified by ghid or article URL. Use it to compare original publishing activity across k…

    /v1/weixin/get_account_original_count_v1

  • Account Principal Info

    $0.20

    Retrieves principal information for a WeChat Official Account identified by biz ID, article URL, or wxid. Use it to review the ownership or operating entity…

    /v1/weixin/get_account_principal_info_v1

  • Account Basic Info

    $0.20

    Retrieves basic profile information for a WeChat Official Account by account name. Use it to identify or enrich a known account before article, ownership, or…

    /v1/weixin/get_account_basic_info_v1

  • Article Link Conversion

    $0.02

    Expands a WeChat Official Account article link to its resolved long-form destination. Use it to normalize a short or intermediate link before article lookup…

    /v1/weixin/convert_article_link_v1

↑↓ to move, Enter to open, Esc to close