Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

WeChat MP Search Suggestions

Tài liệu API
https://api.sandbase.ai/v1/api/wechat-mp/search-suggestions

Get 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.

Giá
$0.114286USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
Keyword used to fetch WeChat search suggestions.
WeChat search business type used to scope suggestion results.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

WeChat MP Search Suggestions API

Returns a list of WeChat search suggestion words for a keyword. It needs a keyword and accepts an optional businessType to scope the suggestions to one WeChat search area, such as ARTICLE or MINI_PROGRAM.

Use cases

  • Expand a seed topic like 人工智能 into longer related search phrases for content research.
  • Compare suggestions across businessType values such as ARTICLE, ACCOUNT and MINI_PROGRAM to see how the same keyword is searched in each area.
  • Build a keyword list for a targeted WeChat search by collecting suggestions for many seed words.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/search-suggestions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword used to fetch WeChat search suggestions.
businessTypestringNoWeChat search business type used to scope suggestion results.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "sug_words": [
      "人工智能"
    ]
  }
}

Response fields

FieldMeaning
dataObject that wraps the suggestion result.
data.sug_wordsList of suggested search phrases for the keyword, in the order the API returns them.
data.sug_words[]One suggested phrase as a plain string. In the sample, the first item repeats the keyword and the next items are longer related phrases such as 人工智能训练师.

Notes

  • Set businessType to one of ALL, ACCOUNT, ARTICLE, CHANNEL, MOMENTS, LIVE, EMOJI, AUDIO, BOOK, WECHAT_INDEX, NEWS, MINI_PROGRAM or ENCYCLOPEDIA. The default is ALL.
  • The request has no pagination parameters.
  • To search the WeChat Index for a chosen phrase, call WeChat MP WeChat Index Search.

Pricing

$0.114286 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
WeChat MP$0.114286 mỗi lần gọiJSON
WeChat MP$0.142857 mỗi lần gọiJSON
WeChat MP$0.042857 mỗi lần gọiJSON
WeChat MP$0.028571 mỗi lần gọiJSON
WeChat MP$0.021429 mỗi lần gọiJSON
WeChat MP$0.021429 mỗi lần gọiJSON

Hướng dẫn:Best WeChat MP API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API WeChat MP Search Suggestions?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/wechat-mp/search-suggestions với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API WeChat MP Search Suggestions có giá bao nhiêu?

$0.114286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API WeChat MP Search Suggestions chấp nhận những tham số nào?

Bắt buộc: keyword (string). Tùy chọn: businessType (một trong số ALL, ACCOUNT, ARTICLE, CHANNEL, MOMENTS, LIVE, EMOJI, AUDIO, BOOK, WECHAT_INDEX, NEWS, MINI_PROGRAM, ENCYCLOPEDIA). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API WeChat MP Search Suggestions trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của WeChat MP không?

Không. WeChat MP Search Suggestions chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của WeChat MP.