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

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

问题

常见问题

如何使用 WeChat Channels Stream Detail API?

向 https://api.sandbase.ai/v1/api/wechat-channels/v2/live-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?

不需要。WeChat Channels Stream Detail 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 WeChat Channels API 访问权限。