You need to enable JavaScript to run this app.
导航
获取主播账号列表
最近更新时间:2025.05.14 17:44:15首次发布时间:2022.08.12 10:53:54
我的收藏
有用
有用
无用
无用

获取当前账号下已添加主播的信息列表。

说明

该接口已经不再维护,建议调用 ListHostAccounts 接口获取主播账号列表。

注意事项

请求频率:单用户请求频率限制为 120 次/分钟

请求说明

  • 请求方式:GET
  • 请求地址:https://livesaas.volcengineapi.com/?Action=ListHostAccountAPI&Version=2020-06-01

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数

Query

参数类型是否必选示例值描述
ActionStringListHostAccountAPI接口名称。当前 API 的名称为 ListHostAccountAPI
VersionString2020-06-01接口版本。当前 API 的版本为 2020-06-01
PageNoInteger1分页查询页码,默认值为 1
PageItemCountInteger10分页查询数量,默认值为 10
HostAccountIdInteger2333主播账号 ID。
HostAccountNameStringA主播账号名称。

返回参数

参数类型示例值描述
PageNoInteger1分页查询页码。
PageItemCountInteger10分页查询数量。
TotalItemCountInteger1查询到的主播总数。
HostAccountArray of HostAccount-主播账号信息列表。

HostAccount

参数类型示例值描述
IdInteger2333主播账号 ID。
NameString主播 A主播账号名称。
AvatarUrlStringhttps://example.com/a.png主播账号头像地址。
HomeUrlStringhttps://example.com主播账号关联的主页链接。
CreateTimeInteger1657525387主播账号的创建时间,Unix 时间戳,单位为秒。

IsFollowEnable

Integer

0

是否支持粉丝关注。

  • 0:不支持
  • 1:支持

请求示例

GET https://livesaas.volcengineapi.com/?Action=ListHostAccountAPI&Version=2020-06-01

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "ListHostAccountAPI",
        "Version": "2020-06-01",
        "Service": "livesaas",
        "Region": "cn-north-1",
        "SystemTime": 1697446406
    },
    "Result": {
        "PageNo": 1,
        "PageItemCount": 10,
        "TotalItemCount": 1,
        "HostAccount": [
            {
                "Id": 2333,
                "Name": "主播 A",
                "AvatarUrl": "https://example.com/a.png",
                "HomeUrl": "https://example.com",
                "CreateTime": 1657525387,
                "IsFollowEnable": 0
            }
        ]
    }
}

错误码

访问公共错误码错误码获取详细信息。