keywordstringआवश्यक
Keyword used to fetch WeChat search suggestions.
https://api.sandbase.ai/v1/api/wechat-mp/search-suggestionsGet 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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
人工智能 into longer related search phrases for content research.businessType values such as ARTICLE, ACCOUNT and MINI_PROGRAM to see how the same keyword is searched in each area.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Keyword used to fetch WeChat search suggestions. |
businessType | string | No | WeChat search business type used to scope suggestion results. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"sug_words": [
"人工智能"
]
}
}
| Field | Meaning |
|---|---|
data | Object that wraps the suggestion result. |
data.sug_words | List 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 人工智能训练师. |
businessType to one of ALL, ACCOUNT, ARTICLE, CHANNEL, MOMENTS, LIVE, EMOJI, AUDIO, BOOK, WECHAT_INDEX, NEWS, MINI_PROGRAM or ENCYCLOPEDIA. The default is ALL.$0.114286 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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": "人工智能",
"businessType": "ALL"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
keywordstringआवश्यकKeyword used to fetch WeChat search suggestions.
businessTypestringWeChat search business type used to scope suggestion results.
डिफ़ॉल्ट: "ALL"
संभावित मान: ALL, ACCOUNT, ARTICLE, CHANNEL, MOMENTS, LIVE, EMOJI, AUDIO, BOOK, WECHAT_INDEX, NEWS, MINI_PROGRAM, ENCYCLOPEDIA
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
WeChat MP | $0.114286 प्रति कॉल | JSON |
WeChat MP | $0.142857 प्रति कॉल | JSON |
WeChat MP | $0.042857 प्रति कॉल | JSON |
WeChat MP | $0.028571 प्रति कॉल | JSON |
WeChat MP | $0.021429 प्रति कॉल | JSON |
WeChat MP | $0.021429 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/wechat-mp/search-suggestions पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.114286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: keyword (string)। वैकल्पिक: businessType (ALL, ACCOUNT, ARTICLE, CHANNEL, MOMENTS, LIVE, EMOJI, AUDIO, BOOK, WECHAT_INDEX, NEWS, MINI_PROGRAM, ENCYCLOPEDIA में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। WeChat MP Search Suggestions SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat MP API access के लिए आवेदन करने की आवश्यकता नहीं है।