namestringआवश्यक
WeChat Official Account name used to fetch basic profile information.
https://api.sandbase.ai/v1/api/wechat-mp/account-basic-infoGet basic profile information for a WeChat Official Account by account name. Use it to identify or enrich a known account before article, ownership, or publishing research.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the basic public profile of a WeChat Official Account: its name, description, avatar, account type, WeChat ID and biz identifier. It needs one input, the account name in name.
wxid before further research.biz value of an account so you can match it against article links.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "人民日报"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | WeChat Official Account name used to fetch basic profile information. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatar": "http://mmbiz.qpic.cn/mmbiz_png/xrFYciaHL08D1hiaVU0brP9YwQH1wFm9D9AG7oAVaNE8RzGia…",
"biz": "MjM5MjAxNDM4MA==",
"desc": "参与、沟通、记录时代。",
"name": "人民日报",
"type": "订阅号",
"wxid": "rmrbwx"
}
}
| Field | Meaning |
|---|---|
data.name | The display name of the Official Account. |
data.wxid | The WeChat ID of the account, for example rmrbwx. |
data.biz | The biz identifier of the account. The value looks like a Base64 string, for example MjM5MjAxNDM4MA==. |
data.desc | The account's profile description, as the account owner wrote it. |
data.type | The account type as a text label. The sample value 订阅号 means subscription account. |
data.avatar | URL of the account's avatar image. |
name. The sample request uses 人民日报.biz and wxid from the response to identify the account in later calls.$0.142857 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/account-basic-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "人民日报"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
namestringआवश्यकWeChat Official Account name used to fetch basic profile information.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
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 |
WeChat MP | $0.014286 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/wechat-mp/account-basic-info पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.142857 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: name (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। WeChat MP Account Basic Info SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat MP API access के लिए आवेदन करने की आवश्यकता नहीं है।