object_idstringआवश्यक
Video objectId (numeric), e.g. `14941130915890399732`. From the video `id` of `fetch_user_videos` / `fetch_video_detail`.
https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-urlReturns the share URL for a specific WeChat Channels video using its numeric object ID. Supports both raw and simplified parsed response formats.
[
{
"data": {
"baseResponse": {
"errMsg": {
"pbRequestMsgInfo": null,
"string": ""
},
"pbRequestMsgInfo": null,
"ret": 0
},
"debug_id": "e70999e4",
"debug_info": "gAAAAABqu8jnp5gvKKK2FNp4DhoL3T9yWCOrJYFbs0dzTP9yu9d2GmH3sNMyO3bbvHeOgMlJ88YWHFH6ZKzOn2TZTxaeuXnspMPMABegMvrchJ5RPFB8f3PniUynGYeIKaI7pQEH5NIL3VknQTTIGokbmCmScZQjyWz3uKhmvs8eTDjOo34bE74xl2oY-YNmzIGqyAF_Uhiy5LFLRs4mZtButYYKTA44JiFNlqlh_3JyAqD3tkt10QpceCMy_DCUqduP8eNDDAGQOuDbG22RBH7cxTyFCQD5wg==",
"feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
"pbRequestMsgInfo": null,
"urlList": [
{
"feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
"objectId": 14941130915890400000,
"pbRequestMsgInfo": null
}
]
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns the public share URL for a WeChat Channels video. It needs the numeric object_id of the video and returns a short weixin.qq.com/sph/... link.
object_id still resolves to a link before you publish it elsewhere.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"object_id": "14941130915890399732"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Video objectId (numeric), e.g. 14941130915890399732. From the video id of fetch_user_videos / fetch_video_detail. |
raw | boolean | No | Optional, default True. True=raw response; False=simplified parsed structure. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"baseResponse": {
"errMsg": {
"pbRequestMsgInfo": null,
"string": ""
},
"pbRequestMsgInfo": null,
"ret": 0
},
"debug_id": "af3be523",
"debug_info": "gAAAAABq6ZEqPk4z1vRiD4BkXYJ1vs5NqAg3czDYG8Tn1QYQUux9zbT-rgf724H9718E0u-cGQlmdi1c…",
"feedH5Url": "https://weixin.qq.com/sph/An9q68ZQCn",
"pbRequestMsgInfo": null,
"urlList": [
{
"feedH5Url": "https://weixin.qq.com/sph/An9q68ZQCn",
"objectId": 14941130915890399732,
"pbRequestMsgInfo": null
}
]
}
| Field | Meaning |
|---|---|
feedH5Url | The share URL for the video. It is a short https://weixin.qq.com/sph/... link. |
urlList[].feedH5Url | The same share URL, returned inside a list of results. |
urlList[].objectId | The numeric video ID that the URL belongs to. It matches the object_id you sent. |
baseResponse.ret | Status code of the lookup. 0 means the call succeeded in this response. |
baseResponse.errMsg.string | Error message text. It is empty when the call succeeds. |
debug_id | Short identifier for this response. Useful when you report a problem. |
object_id from the video id returned by WeChat Channels User Videos or WeChat Channels Video Detail.object_id must be digits only, up to 32 characters. Send it as a string.raw defaults to true, which returns the full structure shown here. Set it to false for a simplified parsed structure.urlList[], objectId is a number, while the request object_id is a string.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"object_id": "14941130915890399732"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
object_idstringआवश्यकVideo objectId (numeric), e.g. `14941130915890399732`. From the video `id` of `fetch_user_videos` / `fetch_video_detail`.
rawbooleanOptional, default True. True=raw response; False=simplified parsed structure.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"baseResponse": {
"errMsg": {
"pbRequestMsgInfo": null,
"string": ""
},
"pbRequestMsgInfo": null,
"ret": 0
},
"debug_id": "e70999e4",
"debug_info": "gAAAAABqu8jnp5gvKKK2FNp4DhoL3T9yWCOrJYFbs0dzTP9yu9d2GmH3sNMyO3bbvHeOgMlJ88YWHFH6ZKzOn2TZTxaeuXnspMPMABegMvrchJ5RPFB8f3PniUynGYeIKaI7pQEH5NIL3VknQTTIGokbmCmScZQjyWz3uKhmvs8eTDjOo34bE74xl2oY-YNmzIGqyAF_Uhiy5LFLRs4mZtButYYKTA44JiFNlqlh_3JyAqD3tkt10QpceCMy_DCUqduP8eNDDAGQOuDbG22RBH7cxTyFCQD5wg==",
"feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
"pbRequestMsgInfo": null,
"urlList": [
{
"feedH5Url": "https://weixin.qq.com/sph/AisYNgPZRM",
"objectId": 14941130915890400000,
"pbRequestMsgInfo": null
}
]
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
WeChat Channels | $0.01 प्रति कॉल | JSON |
WeChat Channels | $0.01 प्रति कॉल | JSON |
WeChat Channels | $0.01 प्रति कॉल | JSON |
WeChat Channels | $0.01 प्रति कॉल | JSON |
WeChat Channels | $0.01 प्रति कॉल | JSON |
WeChat Channels | $0.01 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/wechat-channels/v2/video-share-url पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: object_id (string)। वैकल्पिक: raw (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। WeChat Channels Video Share URL SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से WeChat Channels API access के लिए आवेदन करने की आवश्यकता नहीं है।