urlstringआवश्यक
WeChat MP article URL (`https://mp.weixin.qq.com/s/…`). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw`
https://api.sandbase.ai/v1/api/wechat-mp/v2/article-statsGet the engagement metrics of a WeChat official account article from its URL: reads, likes, "wow" count, shares, favorites and comments.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Pass a WeChat MP article URL and get its interaction counts: reads, likes, wows, shares, favorites and comments.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw", "raw": false}'
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | WeChat MP article URL (https://mp.weixin.qq.com/s/…). |
raw | boolean | No | Optional, default True. |
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"collect_count": 34,
"comment_count": 28,
"like_count": 22,
"old_like_count": 111,
"read_num": 28522,
"share_count": 978,
"star_num": 0
}
raw to false for simplified counts.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats" \
-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आवश्यकWeChat MP article URL (`https://mp.weixin.qq.com/s/…`). E.g. `https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw`
rawbooleanOptional, default True. True=full raw stats object (with `show_*` visibility flags); False=simplified counts only.
डिफ़ॉल्ट: true
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
WeChat MP Article Statsयह 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-stats पर 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 Stats SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat MP API access के लिए आवेदन करने की आवश्यकता नहीं है।