WeChat Official Accounts Get Search Suggestions

139.7积分/次
ae_wechat_official_accounts_get_search_suggestions

根据关键词获取微信搜索建议,用于在正式搜索前扩展或优化查询。必填 keyword,类型为字符串;可选 businessType 限定搜索业务类型,默认为 ALL(全部),还支持 ACCOUNT(公众号)、ARTICLE(文章)、CHANNEL(视频号)、MOMENTS(朋友圈)、LIVE(直播)、EMOJI(表情)、AUDIO(音频)、BOOK(图书)、WECHAT_INDEX(微信指数)、NEWS(新闻)、MINI_PROGRAM(小程序)、ENCYCLOPEDIA(百科)。返回包含建议数据载荷 data,以及 code、message、recordTime 等响应信息;data 的内部格式未明确规定。搜索建议不等同于对应内容或完整搜索结果。

社交
139.7积分/次

价格说明

139.7积分/次
条件费用
每次调用139.7积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_wechat_official_accounts_get_search_suggestions' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "keyword": "xxx"
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
keywordstring是用于获取微信搜索建议的关键词。—
businessTypeenum (ALL | ACCOUNT | ARTICLE | CHANNEL | MOMENTS | LIVE | EMOJI | AUDIO | BOOK | WECHAT_INDEX | NEWS | MINI_PROGRAM | ENCYCLOPEDIA)否用于限定建议结果的微信搜索业务类型。ALL