urlstringआवश्यक
/mp.weixin.qq.com/s/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz)
https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detail-h5Get WeChat MP Article Detail (H5, Recommended) on WeChat MP. Returns the platform data as structured JSON.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the details of one WeChat MP (official account) article as JSON. It includes the article's author, account info, engagement counts and album links. You pass the article URL in url.
bizuin.curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detail-h5" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw", "raw": true}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | /mp.weixin.qq.com/s/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz) |
raw | boolean | No | True=raw response; False=simplified parsed structure |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"bizUin": 3236757533,
"content": {
"_content_type": "article",
"_fields_from": "cgiDataNew",
"_via": "h5",
"ad_mark_status": 0,
"advertisement_info": [],
"ai_chat_info": {
"ai_chat_status": 0,
"room_info": ""
},
"ai_chat_status": 0,
"aigc_pictures": [],
"ainfos": [],
"album_id": "1865468163396517889",
"album_id_str": "1865468163396517889",
"album_needpay": 0
},
"debug_id": "8cb4e28d",
"debug_info": "gAAAAABq6ZE4GYK6HwtXMOKwwlRiVoQL60YmFG5wMevNjy3ouQJJNK66HmnybPYQL0IgnvQj9f_hI2Ie…",
"itemIdx": 1,
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}
| Field | Meaning |
|---|---|
content.appmsg_bar_data.read_num | Number of reads for the article. |
content.appmsg_bar_data.like_count / content.appmsg_bar_data.old_like_count | Two like counters. like_count is the newer like type and old_like_count is the older one. Compare both with appmsg_like_type before you use either. |
content.appmsg_bar_data.share_count / content.appmsg_bar_data.collect_count / content.appmsg_bar_data.comment_count | Number of shares, collects and comments on the article. |
content.author | Author name shown on the article. |
content.biz_card.list[].nickname / content.biz_card.list[].alias | Display name and account ID of the publishing account. |
content.biz_card.list[].orignal_num | Number of original articles listed for the account on its card. |
content.bizuin | Encoded account ID (the __biz value) of the publishing account. |
content.cdn_url | URL of the article cover image. |
content.appmsgalbuminfo.title | Title of the album (article series) this article belongs to. |
content.appmsgalbuminfo.pre_article_title / content.appmsgalbuminfo.pre_article_link | Title and link of the previous article in the album. |
content.appmsgalbuminfo.next_article_title / content.appmsgalbuminfo.next_article_link | Title and link of the next article in the album. |
https://mp.weixin.qq.com/s/…) or a long link that contains __biz in url.raw to true (the default) for the full response shown here. Set it to false for a simplified parsed structure.& in place of &. Replace it before you open the link.$0.01 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/v2/article-detail-h5" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"raw": true,
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
urlstringआवश्यक/mp.weixin.qq.com/s/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz)
rawbooleanTrue=raw response; False=simplified parsed structure
डिफ़ॉल्ट: true
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
WeChat MP | $0.01 प्रति कॉल | JSON |
WeChat MP | $0.01 प्रति कॉल | JSON |
WeChat MP | $0.01 प्रति कॉल | JSON |
WeChat MP | $0.01 प्रति कॉल | JSON |
WeChat MP | $0.01 प्रति कॉल | JSON |
WeChat MP | $0.01 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/wechat-mp/v2/article-detail-h5 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: url (string)। वैकल्पिक: raw (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। WeChat MP Article Detail (H5, Recommended) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat MP API access के लिए आवेदन करने की आवश्यकता नहीं है।