Search Suggestions

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 WeChat search.

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

Parameters

Name Required Type Description Example Allowed values
keyword Required string Keyword used to fetch WeChat search suggestions. 咖啡 —
business_type Optional string WeChat search business type used to scope suggestion results. Available Values: - `ALL`: All - `ACCOUNT`: Official accounts - `ARTICLE`: Articles - `CHANNEL`: Channels - `MOMENTS`: Moments - `LIVE`: Live - `EMOJI`: Emoji - `AUDIO`: Audio - `BOOK`: Books - `WECHAT_INDEX`: WeChat index - `NEWS`: News - `MINI_PROGRAM`: Mini programs - `ENCYCLOPEDIA`: Encyclopedia ALL ALLACCOUNTARTICLECHANNELMOMENTSLIVEEMOJIAUDIOBOOKWECHAT_INDEXNEWSMINI_PROGRAM

Code samples

curl -G "https://api.mofa-ai.com/v1/weixin/search_suggestions_v1" \
  -H "Authorization: Bearer $MOFA_API_KEY" \
  --data-urlencode 'keyword=咖啡' \
  --data-urlencode 'business_type=ALL'

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 773 ms · Request parameters {"keyword": "咖啡", "business_type": "ALL"}

JSON
{
  "success": true,
  "code": 0,
  "message": "success",
  "request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
  "endpoint": "weixin.search_suggestions_v1",
  "cost_usd": 0.16,
  "data": {
    "code": 0,
    "data": {
      "data": {
        "sug_words": [
          "咖啡",
          "格羽咖啡馆",
          "… +8"
        ]
      }
    },
    "message": null,
    "requestId": "4259beeec585490094e8d719f7c24eb8",
    "recordTime": "2026-11-08T07:58:33.096395184",
    "requestParams": {
      "body": null,
      "query": {
        "keyword": "咖啡",
        "businessType": "ALL"
      }
    }
  }
}