topic_idstringจำเป็น
Collection ID (numeric, from topic_id of fetch_user_collections)
https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videosReturns videos contained within a WeChat Channels collection using a collection ID. Provides video media URLs, decryption keys, and pagination cursors.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the videos in one WeChat Channels collection, plus a cursor for the next page. It needs a numeric collection ID in topic_id.
createtime value.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"topic_id": "14616794565351966924"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
topic_id | string | Yes | Collection ID (numeric, from topic_id of fetch_user_collections) |
last_buffer | string | No | Optional pagination cursor (base64), leave empty for the first page; when down_continue is truthy, pass the previous page's last_buffer. |
raw | boolean | No | Optional, default True. True=raw response; False=simplified parsed structure (recommended for media download). |
topic | string | No | Collection name (optional, improves hit rate) |
topic_type | integer | No | Optional, collection type, default 16 (align with the collection's topic_type from fetch_user_collections). |
username | string | No | Optional, creator finder username (v2_…@finder format), improves hit rate. |
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
},
"collectionErrPage": null,
"continueFlag": 0,
"debug_id": "7082e094",
"debug_info": "gAAAAABq6ZEhq3wc5WNY1_-oEZrVOrOwsxBBTqQKifALkxpFnno03zZ3KCcV8L21Uu7wz4j2Uo31-VK5…",
"downContinueFlag": 1,
"lastBuffer": "CJGS2OzH3MmHygEIppK4/5HC7ojKAQiPkvjt/qeTisoBCMmR2InmjbiLygEI0JGY677z3IzKAQjakdjL…",
"last_buffer": "CJGS2OzH3MmHygEIppK4/5HC7ojKAQiPkvjt/qeTisoBCMmR2InmjbiLygEI0JGY677z3IzKAQjakdjL…",
"object": [
{
"adFlag": 4,
"adInfo": null,
"attachmentList": {
"attachments": [],
"pbRequestMsgInfo": null
},
"blockCgiFlag": 0,
"clientLocalBuffer": null,
"commentClose": 0,
"commentCount": 140,
"commentList": [],
"contact": {
"additionalFlag": 9,
"archievementInfo": null,
"authInfo": {
"appName": "gh_4ee148a6ecaa@app",
"authGuarantor": null,
"authIconType": 2,
"authIconUrl": "http://dldir1.qq.com/weixin/checkresupdate/internet_news_media_auth_icon_38887ee…",
"authProfession": "人民日报社",
"authVerifyIdentity": 3,
"customerType": 9,
"detailLink": "pages/index/index.html?showdetail=true&username=v2_060000231003b20faec8c6e4811dc…"
},
"bindInfo": [
{
"bindType": 1,
"bizInfo": {
"info": [
{
"authInfo": {
"authIconType": 2,
"authIconUrl": "http://dldir1.qq.com/weixin/checkresupdate/internet_news_media_auth_icon_38887ee…",
"pbRequestMsgInfo": null,
"verifyInfo": ""
},
"bizNickname": "人民日报",
"bizUin": 0,
"bizUsername": "gh_363b924965e9",
"friendFollowCount": 0,
"headImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/gww5x83NxjVLCJz1Xgu6PLzPKRdiaofFZTwdjSibW1mL8KA…",
"pbRequestMsgInfo": null,
"serviceTypeName": "公众号"
}
],
"miniapps": [],
"pbRequestMsgInfo": null
},
"pbRequestMsgInfo": null,
"profileBizInfo": null,
"qqmusicInfo": null,
"stickerInfo": null,
"wecomInfo": null
}
],
"clubInfo": null,
"coverEntranceFlag": 0,
"coverImgUrl": "",
"coverUrl": ""
},
"cookie": "",
"createtime": 1735675201,
"debugMessage": ""
}
],
"paidCollectionInfo": {
"courseInfo": null,
"dramaInfo": null,
"pbRequestMsgInfo": null,
"permissionFlag": 0,
"type": 0
},
"pbRequestMsgInfo": null,
"preloadInfo": {
"globalInfo": {
"allowToUseNewSpecMaxPercent": -1,
"bufferingHealthLengthL0": 5,
"bufferingHealthLengthL1": 10,
"bufferingHealthLengthL2": 15,
"canPreCreatedPlayer": false,
"currentBufferLengthPart3": 0,
"downloadWhenSpecChange": 0,
"enableLivePhotoPreload": false,
"enablePreloadTotalFeed": false,
"ffmpegTcpRecvSocketBufferSize": 131072,
"findPageEnableCellularPreload": false,
"findPagePreloadSecond": 5
},
"megavideoInfo": [],
"objectInfo": [
{
"enableFeedPreloadStrategy": true,
"enhanceConfig": null,
"feedId": 14559898883113486609,
"interestFactor": 1,
"isAutoIncrement": null,
"lastInsertedRowID": null,
"loadWithPlaying": [],
"lutConfig": null,
"maxBufferLength": 30,
"minBufferLength": 25,
"minCurrentFeedBufferLength": 5,
"pbRequestMsgInfo": null
}
],
"pbRequestMsgInfo": null,
"preloadStrategyId": 10985677411664704323
}
}
| Field | Meaning |
|---|---|
object[] | The list of videos in this page of the collection. |
object[].id | ID of the video. It is a large number, so keep it as a string or big integer. |
object[].createtime | Publish time of the video. The value looks like a Unix timestamp in seconds, for example 1735675201. |
object[].commentCount / object[].favCount / object[].forwardCount | Counts of comments, favorites and forwards for the video. |
object[].contact.authInfo.authProfession | Verified profession or organization shown for the creator, for example 人民日报社. |
object[].contact.bindInfo[].bizInfo.info[].bizNickname | Nickname of the official account linked to the creator's channel. |
object[].ipRegionInfo.regionText | Region text shown for the video, for example Beijing. |
downContinueFlag | Set to 1 when more pages exist. When it is truthy, request the next page. |
last_buffer / lastBuffer | Base64 cursor for the next page. Both keys hold the same value. |
baseResponse.ret | Status code of the call. 0 appeared in this response. |
topic_id and topic_type from WeChat Channels User Collections.last_buffer empty. For the next page, pass the previous last_buffer while downContinueFlag is truthy.raw is true and returns the full raw structure shown here. Set raw to false for a simplified structure suited to media download.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"topic_id": "14616794565351966924"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
topic_idstringจำเป็นCollection ID (numeric, from topic_id of fetch_user_collections)
last_bufferanyOptional pagination cursor (base64), **leave empty for the first page**; when `down_continue` is truthy, pass the previous page's `last_buffer`.
rawbooleanOptional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
topicanyCollection name (optional, improves hit rate)
topic_typeintegerOptional, collection type, default 16 (align with the collection's `topic_type` from `fetch_user_collections`).
usernameanyOptional, creator finder username (`v2_…@finder` format), improves hit rate.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| 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 |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: topic_id (string). ตัวเลือก: last_buffer (any), raw (boolean), topic (any), topic_type (integer) และ username (any). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Channels Collection Videos ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Channels API แยกต่างหาก