Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

WeChat Channels Collection Videos

API 文件
https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos

Returns videos contained within a WeChat Channels collection using a collection ID. Provides video media URLs, decryption keys, and pagination cursors.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 5 個選填

Playground

輸入
Collection ID (numeric, from topic_id of fetch_user_collections)
Optional pagination cursor (base64), **leave empty for the first page**; when `down_continue` is truthy, pass the previous page's `last_buffer`.
Optional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
Collection name (optional, improves hit rate)
01000
Optional, collection type, default 16 (align with the collection's `topic_type` from `fetch_user_collections`). 範圍:0 到 1000。
Optional, creator finder username (`v2_…@finder` format), improves hit rate.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

WeChat Channels Collection Videos API

Returns the videos in one WeChat Channels collection, plus a cursor for the next page. It needs a numeric collection ID in topic_id.

Use cases

  • List every video a creator has grouped into a single collection.
  • Track comment, favorite and forward counts across the videos in a collection.
  • Sort collection videos by publish time using the createtime value.
  • Page through a long collection by passing the returned cursor back in each request.

Request

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.

Parameters

NameTypeRequiredDescription
topic_idstringYesCollection ID (numeric, from topic_id of fetch_user_collections)
last_bufferstringNoOptional pagination cursor (base64), leave empty for the first page; when down_continue is truthy, pass the previous page's last_buffer.
rawbooleanNoOptional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
topicstringNoCollection name (optional, improves hit rate)
topic_typeintegerNoOptional, collection type, default 16 (align with the collection's topic_type from fetch_user_collections).
usernamestringNoOptional, creator finder username (v2_…@finder format), improves hit rate.

Example response

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
  }
}

Response fields

FieldMeaning
object[]The list of videos in this page of the collection.
object[].idID of the video. It is a large number, so keep it as a string or big integer.
object[].createtimePublish time of the video. The value looks like a Unix timestamp in seconds, for example 1735675201.
object[].commentCount / object[].favCount / object[].forwardCountCounts of comments, favorites and forwards for the video.
object[].contact.authInfo.authProfessionVerified profession or organization shown for the creator, for example 人民日报社.
object[].contact.bindInfo[].bizInfo.info[].bizNicknameNickname of the official account linked to the creator's channel.
object[].ipRegionInfo.regionTextRegion text shown for the video, for example Beijing.
downContinueFlagSet to 1 when more pages exist. When it is truthy, request the next page.
last_buffer / lastBufferBase64 cursor for the next page. Both keys hold the same value.
baseResponse.retStatus code of the call. 0 appeared in this response.

Notes

  • Get topic_id and topic_type from WeChat Channels User Collections.
  • For the first page, leave last_buffer empty. For the next page, pass the previous last_buffer while downContinueFlag is truthy.
  • The default raw is true and returns the full raw structure shown here. Set raw to false for a simplified structure suited to media download.
  • Use WeChat Channels Video Detail to look up a single video from the collection.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON

指南:Best WeChat Channels API in 2026: Pricing Compared

問題

常見問題

我要如何使用 WeChat Channels Collection Videos API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

WeChat Channels Collection Videos API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

WeChat Channels Collection Videos API 接受哪些參數?

必要:topic_id (string)。 選填:last_buffer (any), raw (boolean), topic (any), topic_type (integer) 和 username (any)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

WeChat Channels Collection Videos API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 WeChat Channels 開發者帳號或 API 金鑰嗎?

不需要。WeChat Channels Collection Videos 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 WeChat Channels API 存取權。