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

WeChat Channels Stream Detail

API 文件
https://api.sandbase.ai/v1/api/wechat-channels/v2/live-detail

Returns live-room details including anchor info, status, online count, and replay data using a live ID. Allows switching between raw and parsed output formats.

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

Playground

輸入
Live ID (numeric). Source: replay items of `fetch_live_history`, live entry, or live share. E.g. `2078950291205875194`.
Optional, anchor finder username (`v2_…@finder` format), improves hit rate. E.g. `v2_060000231003b20faec8cae1811ac4d5c702ea32b0771737aa785454f7f8177114cc4d248d66@finder` (Huxiu).
Optional, default True. True=raw response; False=simplified parsed structure.
01000
Optional, entry scene, default 5. 範圍:0 到 1000。
輸出範例
回應outputs · 12.7 KB · 366 行
[
  {
    "data": {
      "abnormalClosePage": null,
      "anchorContact": {
        "additionalFlag": 201,
        "archievementInfo": null,
        "authInfo": {
          "appName": "gh_4ee148a6ecaa@app",
          "authGuarantor": null,
          "authIconType": 2,
          "authIconUrl": "https://dldir1v6.qq.com/weixin/checkresupdate/icons_filled_channels_authentication_enterprise_a2658032368245639e666fb11533a600.png",
          "authProfession": "北京虎嗅信息科技股份有限公司",
          "authVerifyIdentity": 3,
          "customerType": 1,
          "detailLink": "pages/index/index.html?showdetail=true&username=v2_060000231003b20faec8cae1811ac4d5c702ea32b0771737aa785454f7f8177114cc4d248d66@finder",
          "pbRequestMsgInfo": null,
          "realName": "",
          "unauthProfession": "",
          "verifyStatus": 0
        },
        "bindInfo": [
          {
            "bindType": 4,
            "bizInfo": null,
            "pbRequestMsgInfo": null,
            "profileBizInfo": {
              "info": [
                {
                  "authInfo": null,
                  "bizNickname": "虎嗅APP",
                  "bizUin": 0,
                  "bizUsername": "wxid_7620846208112",
                  "friendFollowCount": 0,
                  "headImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/00P5CC8KJgzUNbciavz9o4RRNrHiaXLks72kVwAK4rwapzRKaztmFNCxicePbejePMwianDicMZYAbjV6zuj9AIRJaqpicPoEZydPxOyqPtmACh4o/132",
                  "pbRequestMsgInfo": null,
                  "serviceTypeName": "公众号"
                }
              ],
              "miniapps": [],
              "pbRequestMsgInfo": null
            },
            "qqmusicInfo": null,
            "stickerInfo": null,
            "wecomInfo": null
          },
          {
            "bindType": 2,
            "bizInfo": null,
            "pbRequestMsgInfo": null,
            "profileBizInfo": null,
            "qqmusicInfo": null,
            "stickerInfo": null,
            "wecomInfo": {
              "contactId": "",
              "contactWording": "",
              "kfUrl": "https://channels.weixin.qq.com/shop/mchkf/wxc33765a11668893d",
              "pbRequestMsgInfo": null
            }
          },
          {
            "bindType": 1,
            "bizInfo": {
              "info": [
                {
                  "authInfo": {
                    "authIconType": 2,
                    "authIconUrl": "https://dldir1v6.qq.com/weixin/checkresupdate/icons_filled_channels_authentication_enterprise_a2658032368245639e666fb11533a600.png",
                    "pbRequestMsgInfo": null,
                    "verifyInfo": ""
                  },
                  "bizNickname": "虎嗅APP",
                  "bizUin": 0,
                  "bizUsername": "wxid_7620846208112",
                  "friendFollowCount": 0,
                  "headImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/00P5CC8KJgzUNbciavz9o4RRNrHiaXLks72kVwAK4rwapzRKaztmFNCxicePbejePMwianDicMZYAbjV6zuj9AIRJaqpicPoEZydPxOyqPtmACh4o/132",
                  "pbRequestMsgInfo": null,
                  "serviceTypeName": "公众号"
                }
              ],
              "miniapps": [],
              "pbRequestMsgInfo": null
            },
            "pbRequestMsgInfo": null,
            "profileBizInfo": null,
            "qqmusicInfo": null,
            "stickerInfo": null,
            "wecomInfo": null
          }
        ],
        "clubInfo": null,
        "coverEntranceFlag": 0,
        "coverImgUrl": "http://mmsns.qpic.cn/mmsns/B2EfAOZfS1gDQfFF87q9ZrpjCaxbyB46BMsxicdXsvkqtgxWtibAp5vXmTSK6Ab6jXz7hZbWrpsBk/0",
        "coverUrl": "",
        "extFlag": 2490372,
        "extInfo": {
          "birthDay": 0,
          "birthMonth": 0,
          "birthYear": 0,
          "city": "",
          "country": "CN",
          "pbRequestMsgInfo": null,
          "province": "",
          "sex": 0
        },
        "fansCount": 0,
        "feedCount": 0,
        "followFlag": 0,
        "followTime": 0,
        "foreignUserFlag": 0,
        "friendFollowCount": 0,
        "guestInfo": null,
        "headUrl": "https://wx.qlogo.cn/finderhead/ver_1/00P5CC8KJgzUNbciavz9o4bbDAdZP4kbwOBb0POMgRYksf46QCgSea4eZqRGmFUtiaNInAzRT9yD1eA4XOJRRf7fR4WfP7z0tIfC685zHTiccI/0",
        "liveCoverImgUrl": "https://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicKY5NmDAvgOFbiaj0bgibWiaEN0dLA8RzxRY2HLgeL0nrB4A0srDH1VveuzyQkNW45uwqDNIHttXib6jA&token=ic1n0xDG6aw9S4zhazO9msldsZ8Z4TcvPLdl64tJ2E0AfibCNum3LX25VpLOotyUNXUkJCooO0JAOXFwNIwsLeLibicyKvhlbKM44OJ6rEOicia6wpxhfhibEIicabOf26ibpEQezHbPicvQUXz9iaI8zPj2gx1s54nwBeQRC5OWHlnuQd2srupIkY74euhtncujgMsIVlKn9lYH1vsEHwOxFQ1ur6fTZLrzmtftstQ&hy=SZ&idx=1&m=&scene=2&uzid=1&picformat=200&wxampicformat=503",
        "liveInfo": {
          "anchorShopTag": 0,
          "anchorStatusFlag": 34944,
          "isFanClubMember": false,
          "liveCoverImgTs": 0,
          "liveCoverImgs": [],
          "lotterySetting": {
            "attendType": 3,
            "pbRequestMsgInfo": null,
            "settingFlag": 0
          },
          "micSetting": {
            "adjustLayoutTopMicSdkUserId": "",
            "highlightMicPerson": false,
            "micLayoutBaseMode": 1,
            "pbRequestMsgInfo": null,
            "pkSettingFlag": 0,
            "purchaseMicSetting": null,
            "settingFlag": 0,
            "settingSwitchFlag": 4
          },
          "objectId": 0,
          "pbRequestMsgInfo": null,
          "recommendReason": "",
          "replaySetting": {
            "autoGenLiveReplay": false,
            "canUseIntelligentlyGenReplayHighlight": true,
            "enableReplayDumpDanmu": false,
            "intelligentlyGenReplayHighlight": false,
            "pbRequestMsgInfo": null
          },
          "streamUrl": "",
          "switchFlag": 15856094
        },
        "liveNoticeInfo": null,
        "liveStatus": 2,
        "loggingoutWording": "",
        "menu": [],
        "msgInfo": null,
        "nickname": "虎嗅APP",
        "oneTimeFlag": 0,
        "originalEntranceFlag": 1,
        "originalFlag": 2,
        "originalInfo": null,
        "pbRequestMsgInfo": null,
        "privacyInfo": null,
        "referenceInfo": [
          {
            "name": "公众号/服务号",
            "pbRequestMsgInfo": null,
            "status": 1,
            "type": 1
          },
          {
            "name": "小程序",
            "pbRequestMsgInfo": null,
            "status": 1,
            "type": 2
          },
          {
            "name": "秒剪",
            "pbRequestMsgInfo": null,
            "status": 2,
            "type": 4
          }
        ],
        "relationTag": "",
        "seq": 0,
        "signature": "关注虎嗅,与世界同步思考\n🈴huxiu_marketing",
        "spamStatus": 0,
        "status": 0,
        "userFlag": 0,
        "userMode": 0,
        "userType": 0,
        "username": "v2_060000231003b20faec8cae1811ac4d5c702ea32b0771737aa785454f7f8177114cc4d248d66@finder",
        "vestNickname": "",
        "wxUsernameV5": "",
        "wxuserFinderIdentityInfo": null
      },
      "anchorInfo": {
        "anchorLiveStatus": 2,
        "pbRequestMsgInfo": null
      },
      "anchorQuestEntrance": null,
      "audienceEndPageControl": 0,
      "audienceFollowInfo": null,
      "audienceMicStats": null,
      "autoGenReplayOption": null,
      "autoPlayControlFlag": 0,
      "backupFeedsOnImpression": null,
      "baseResponse": {
        "errMsg": null,
        "pbRequestMsgInfo": null,
        "ret": 0
      },
      "bizLiveNewFansNum": 0,
      "closePageActivityBanner": [],
      "closePageControlInfo": null,
      "creatorCenterEntrance": null,
      "curReplaySubscriptionStatus": 0,
      "debug_id": "4c215f5e",
      "debug_info": "gAAAAABqu8jPdXI4bnIzIn1pMBkz9_kgyxNYFnyiKfooltFOP1btuYlVmoXN_7X3QHxQdpWruBEXE73t3g6i1KMONtjkMIbfQa0QlIrbe6RPZ5K0ykY2syoZ50AHvsj9LTUhLk9C5YZbtSQ_yo8U4sp3HZoE64RxFzZA--pIB3d4STuPvO7eoASwxoIDVelgLQfNShHRnR1ufA_T2AJVrGadV_h71iQue1NFWqkv-tBakdoXEAupvt4zv9gjhmQW7Y4CEhfCrPaY",
      "disableShareCardExpose": true,
      "enableShowReplaySubscriptionEntry": false,
      "generateReplayPageDisplayInfo": "将直播评论转为弹幕并展示",
      "jumpNavInfo": null,
      "liveCover": {
        "imgUrl": "https://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicJWmwc7no2RwE0ibwu0vic97I7hsK90SsT3dUSKP8gKQN3OffRhNtibezomZaJuftNWv43WoODxeU8Jw&token=AxricY7RBHdXDePIibFbE8bb0xur62VpC9c7kNB4FEEVsCIRiaEFjdVYtlIKly16ek742pktcRHcjia3ZLwiaf8OcvkcOOrYxbM1cWwbmdFiahU6MyqCwnN7OJwLVM744Ly6hSmgJSOL07vM5hVuu5m33LP3HWZ2x18Ct5zf8ondK10mQVFvVNhZp24BbMoPghNDWs7sibo5fATthzXHPXaicEnraoOsHCRoRU0T&hy=SZ&idx=1&m=&scene=2&uzid=1&picformat=200&wxampicformat=503",
        "imgUrlToken": "",
        "pbRequestMsgInfo": null
      },
      "liveDataDetailsJump": null,
      "liveDataDetailsJumpWording": "",
      "liveEntranceGuideInfo": null,
      "liveInfo": {
        "anchorCloselivepageData": null,
        "anchorReplaceInfo": null,
        "anchorShopTag": 0,
        "anchorStatusFlag": 0,
        "audiencesAvgSeconds": 0,
        "autoPlayPriority": 0,
        "bizInfo": null,
        "coverInfo": {
          "effectText": "",
          "effectType": 0,
          "pbRequestMsgInfo": null
        },
        "crowdfundGiftInfo": null,
        "endTime": 1780881387,
        "entranceAdInfos": [],
        "eventInfo": null,
        "extFlag": 0,
        "fansAudiencePercent": 0,
        "finderLiveFeedbackInfo": null,
        "forwardCnt": 0,
        "gameAppid": "",
        "heatPromotionAudienceTotalCount": 0,
        "heatPromotionNewFansTotalCount": 0,
        "heatPromotionPayTotalAmountInCents": 0,
        "heatValue": 0,
        "highlightSummaryInfo": null,
        "intercomMicInfo": null,
        "isWxaGame": 0,
        "ktvPlayerCount": 0,
        "ktvSettingsInfo": null,
        "layerShowInfo": null,
        "likeCnt": 0,
        "liveActivityType": [],
        "liveBarMsg": "",
        "liveBusinessType": 0,
        "liveCardDisableAutoPlay": false,
        "liveConcertInfo": null,
        "liveElapsedTime": 6368,
        "liveExtInfo": null,
        "liveFlag": 917669,
        "liveHeatValue": 0,
        "liveHeatValueStr": "",
        "liveId": 2078950291205875200,
        "liveMicInfo": null,
        "liveOnlineInfo": null,
        "livePermissionFlag": 0,
        "livePrivilegeInfo": null,
        "liveSdkChannelInfo": null,
        "liveSdkInfo": null,
        "liveShopTagInfo": null,
        "liveSpec": null,
        "liveSquareParticipantWording": "",
        "liveStatus": 2,
        "liveVrType": 0,
        "maxOnlineCount": 0,
        "memberLiveInfo": null,
        "micRecommendInfo": null,
        "modeInfo": {
          "liveMode": 1,
          "liveSubMode": 1,
          "pbRequestMsgInfo": null
        },
        "multiReason": [],
        "newLikeCnt": 0,
        "onlineCnt": 0,
        "participantCount": 0,
        "pbRequestMsgInfo": null,
        "previewJoinliveDelaySeconds": 0,
        "purchaseInfo": null,
        "replayInfo": {
          "anchorSpecified": [],

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

WeChat Channels Stream Detail API

Returns details for one WeChat Channels live room: the anchor's profile and bound accounts, the live status, and timing and engagement counters for the session. It needs a numeric live_id. The default response is the raw payload, and raw set to false returns a simplified structure.

Use cases

  • Check whether a live room has ended by reading liveStatus and liveInfo.endTime.
  • Pull the anchor's nickname, avatar, signature and verification details for a given live session.
  • Find the public account linked to a live anchor through the bound account entries.
  • Measure how long a finished stream ran using liveInfo.liveElapsedTime.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/live-detail" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"live_id": "2078950291205875194"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
live_idstringYesLive ID (numeric). Source: replay items of fetch_live_history, live entry, or live share. E.g. 2078950291205875194.
finder_usernamestringNoOptional, anchor finder username (v2_…@finder format), improves hit rate. E.g. v2_060000231003b20faec8cae1811ac4d5c702ea32b0771737aa785454f7f8177114cc4d248d66@finder (Huxiu).
rawbooleanNoOptional, default True. True=raw response; False=simplified parsed structure.
sceneintegerNoOptional, entry scene, default 5.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "abnormalClosePage": null,
  "anchorContact": {
    "additionalFlag": 201,
    "archievementInfo": null,
    "authInfo": {
      "appName": "gh_4ee148a6ecaa@app",
      "authGuarantor": null,
      "authIconType": 2,
      "authIconUrl": "https://dldir1v6.qq.com/weixin/checkresupdate/icons_filled_channels_authenticati…",
      "authProfession": "北京虎嗅信息科技股份有限公司",
      "authVerifyIdentity": 3,
      "customerType": 1,
      "detailLink": "pages/index/index.html?showdetail=true&username=v2_060000231003b20faec8cae1811ac…",
      "pbRequestMsgInfo": null,
      "realName": "",
      "unauthProfession": "",
      "verifyStatus": 0
    },
    "bindInfo": [
      {
        "bindType": 4,
        "bizInfo": null,
        "pbRequestMsgInfo": null,
        "profileBizInfo": {
          "info": [
            {
              "authInfo": null,
              "bizNickname": "虎嗅APP",
              "bizUin": 0,
              "bizUsername": "wxid_7620846208112",
              "friendFollowCount": 0,
              "headImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/ZiaKbNU8WkY5x0OJj4Hj3f0oiaznQz6LLxUsZeXIJRcLukO…",
              "pbRequestMsgInfo": null,
              "serviceTypeName": "公众号"
            }
          ],
          "miniapps": [],
          "pbRequestMsgInfo": null
        },
        "qqmusicInfo": null,
        "stickerInfo": null,
        "wecomInfo": null
      }
    ],
    "clubInfo": null,
    "coverEntranceFlag": 0,
    "coverImgUrl": "http://mmsns.qpic.cn/mmsns/B2EfAOZfS1gDQfFF87q9ZrpjCaxbyB46BMsxicdXsvkqtgxWtibAp…",
    "coverUrl": "",
    "extFlag": 2490372,
    "extInfo": {
      "birthDay": 0,
      "birthMonth": 0,
      "birthYear": 0,
      "city": "",
      "country": "CN",
      "pbRequestMsgInfo": null,
      "province": "",
      "sex": 0
    },
    "fansCount": 0,
    "feedCount": 0
  },
  "anchorInfo": {
    "anchorLiveStatus": 2,
    "pbRequestMsgInfo": null
  },
  "anchorNewLiveJumpInfo": null,
  "anchorQuestEntrance": null,
  "audienceEndPageControl": 0,
  "audienceFollowInfo": null,
  "audienceMicStats": null,
  "authCollectJumpInfo": null,
  "autoGenReplayOption": null,
  "autoPlayControlFlag": 0,
  "backupFeedsOnImpression": null
}

Response fields

FieldMeaning
liveInfo.liveIdNumeric ID of the live room. It matches the live_id you sent.
liveInfo.endTimeEnd time of the live session. The value looks like a Unix timestamp in seconds.
liveInfo.liveElapsedTimeElapsed time of the session, as a number. In this response it is 6368.
liveInfo.likeCnt / liveInfo.forwardCnt / liveInfo.heatValueLike count, forward count and heat value for the live room. All are 0 in this response.
anchorContact.nicknameDisplay name of the anchor account.
anchorContact.signatureProfile signature text of the anchor.
anchorContact.headUrlAvatar image URL of the anchor.
anchorContact.authInfo.authProfessionVerified organization name shown on the anchor's account.
anchorContact.bindInfo[].profileBizInfo.info[].bizNickname / anchorContact.bindInfo[].profileBizInfo.info[].bizUsernameName and username of an official account linked to the anchor. serviceTypeName gives the account type.
anchorContact.liveStatus / anchorInfo.anchorLiveStatusNumeric live status code for the anchor. Both are 2 in this response, and the response does not explain the code.

Notes

  • Get live_id from the replay items of WeChat Channels Stream Replay History, or from a live entry or live share.
  • Pass finder_username in the v2_…@finder format to improve the hit rate. WeChat Channels ID to Username converts a Channel ID into this value.
  • liveId is a number in the response, while live_id is a string in the request.
  • Most fields in the raw response are null, 0 or empty strings for this ended session.

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 Stream Detail API?

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

WeChat Channels Stream Detail API 的費用是多少?

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

WeChat Channels Stream Detail API 接受哪些參數?

必要:live_id (string)。 選填:finder_username (any), raw (boolean) 和 scene (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

WeChat Channels Stream Detail API 會回傳什麼?

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

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

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