按需查询直播间信息,包括直播状态等直播间基础信息、外观主题等直播间基础配置、直播间内各直播频道的推拉流信息及直播间在线人数。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetCustomActMsgAPI | 接口名称。当前 API 的名称为 GetCustomActMsgAPI 。 |
Version | String | 是 | 2020-06-01 | 接口版本。当前 API 的版本为 2020-06-01 。 |
ActivityId | Long | 是 |
| 直播间 ID。您可以通过 ListActivityAPI 接口查询 ID。 说明 使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理。 |
NeedActMsg | Integer | 否 |
| 是否查询直播状态、观看地址等直播间基础信息,默认不查询。
|
NeedActBasicMsg | Integer | 否 |
| 是否查询文本标签、外观主题等直播间基础配置,默认不查询。
|
NeedActStreamMsg | Integer | 否 |
| 是否查询直播间内各直播频道的推拉流信息,默认不查询。
|
NeedRealTimeOnlineNumber | Integer | 否 |
| 是否查询直播间在线人数(包含虚拟人气),默认不查询。
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ActMsg | Object of ActMsg | - | 直播状态、观看地址等直播间基础信息。 |
ActBasicMsg | Object of ActBasicMsg | - | 文本标签、外观主题等直播间基础配置。 |
ActStreamMsg | Object of ActStreamMsg | - | 直播间内各直播频道的推拉流信息。 |
RealTimeOnlineNumber | Object of RealTimeOnlineNumber | - | 直播间在线人数(包含虚拟人气)。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | Long | 172183460671 | 直播间 ID。 |
Name | String | 直播间 A | 直播间名称。 |
LiveTime | Long | 1642070520 | 直播间的开播时间。Unix 时间戳,单位为秒。 |
CoverImage | String |
| 横屏直播的封面图 URL。
|
VerticalCoverImage | String | https://image2.xxx | 竖屏直播的封面图 URL,包含协议头。 |
Status | Integer |
| 直播状态。支持以下取值:
|
ViewUrl | String | https://live.xxx.com/xxx | 直播间的观看地址。 |
IsLockPreview | Integer |
| 是否锁定预告。支持以下取值:
|
OwnerSubAccount | String | admin@bytedance.com | 创建直播间的账号信息。 返回 admin@bytedance.com 表示当前直播间由主账号创建。 |
LiveReviewStatus | Integer |
| 直播间审核状态。支持以下取值:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ActivityId | Long | 172183460671 | 直播间 ID。 |
Name | String | 直播间 A | 直播间名称。 |
LiveTime | Long | 1642070520 | 直播间的开播时间。Unix 时间戳,单位为秒。 |
IsCoverImageEnable | Integer | 1 | 开启直播封面。取值固定为 1 。 |
CoverImageUrl | String |
| 横屏直播封面图的 URL。
|
IsPcBackImageEnable | Integer |
| 是否开启 PC 端背景图和背景颜色。支持以下取值:
|
PcBackImageUrl | String | //p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.png | PC 端背景图的 URL。当 IsPcBackImageEnable 取值为 1 时,此处为 PC 端背景图的 URL,否则为空。 |
IsMobileBackImageEnable | Integer |
| 是否开启移动端背景图和背景颜色。支持以下取值:
|
MobileBackImageUrl | String | //p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.png | 移动端背景图的 URL。当 IsMobileBackImageEnable 取值为 1 时,此处为移动端背景图的 URL,否则为空。 |
IsPreviewVideoEnable | Integer |
| 是否开启预告片。支持以下取值:
|
PreviewVideoVid | String | 491568852 | 预告片 Vid。当 IsPreviewVideoEnable 取值为 1 时,此处为预告片 Vid,否则为空。 |
IsPeopleCountEnable | Integer |
| 是否在观看页显示观看人数。支持以下取值:
|
IsHeaderImageEnable | Integer |
| 是否开启移动端页头图。支持以下取值:
|
HeaderImageUrl | String | //p.test.org/tos-live18n-i-fhdptwgppv.png | 移动端页头图的 URL。当 IsHeaderImageEnable 取值为 1 时,此处为移动端页头图的 URL,否则为空。 |
IsWatermarkImageEnable | Integer |
| 是否在观看页显示 Logo。支持以下取值:
|
WatermarkImageUrl | String | //p-imagex.org/tos-live18n-i-fhdptwgppv.png | Logo 的 URL。当 IsWatermarkImageEnable 取值为 1 时,此处为 Logo 的 URL,否则为空。 |
IsThumbUpEnable | Integer |
| 是否开启直播间点赞。支持以下取值:
|
ThumbUpUrl | String | //p-imagex.png | 直播间点赞图的 URL。当 IsThumbUpEnable 取值为 1 时,此处为直播间点赞图的 URL,否则为空。 |
IsShareIconEnable | Integer |
| 是否开启分享图标。支持以下取值:
|
ShareIconUrl | String | //p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.pn | 分享图标的 URL。当 IsShareIconEnable 取值为 1 时,此处为分享图标的 URL,否则为空。 |
IsCommentTranslateEnable | Integer | - | 已废弃。 |
Announcement | String | 直播间信息 | 直播描述。 |
BackgroundColor | String | 77778888 | PC 端背景颜色。遵循 RGB 色彩模型。 |
FontColor | String | 55557777 | 字体颜色。遵循 RGB 色彩模型。 |
InteractionColor | String | 45784444 | PC 端互动区颜色。遵循 RGB 色彩模型。 |
ColorThemeIndex | String |
| 外观主题。支持以下取值:
|
IsCountDownEnable | Integer |
| 是否开启倒计时。支持以下取值:
|
IsAutoStartEnable | Integer |
| 是否开启自动开播。支持以下取值:
|
IsPCHeaderImageEnable | Integer |
| 是否开启 PC 端页头图。支持以下取值:
|
PCHeaderImageUrl | String | //p-imagex-fhdptwgppv.pn | PC 端页头图的 URL。当 IsPCHeaderImageEnable 取值为 1 时,此处为 PC 端页头图的 URL,否则为空。 |
IsPageLimitEnable | Integer |
| 是否开启页面限制。支持以下取值:
|
PageLimitType | String |
| 页面限制类型。当
|
IsLanguageEnable | Integer |
| 是否开启页面语言。支持以下取值:
|
PlayerTopType | Array of String |
| 播放器置顶的终端。支持以下取值:
|
IsReplayAutoOnlineEnable | Integer |
| 是否开启回放自动上架。支持以下取值:
|
SiteTags | Array of SiteTags | - | 直播间分类标签信息列表。 |
TextSiteTags | Array of TextSiteTags | - | 直播间文本标签信息列表。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
LineDetails | Array of LineDetails | - | 直播频道的推拉流信息列表。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
RealPopularity | Integer | 2000 | 直播间真实人数。 |
FakePopularity | Integer | 2000 | 直播间虚拟人气。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Name | String | 分类标签 | 分类标签名称。 |
Value | String | 标签1 | 分类标签的标签值。 |
Index | Integer | 0 | 分类标签的索引值,用于标识分类标签在控制台展示的位置。取值范围为 [0,19]。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Name | String | 文本标签 | 文本标签名称。 |
Value | String | 标签2 | 文本标签值。 |
Index | Integer | 0 | 文本标签的索引值,用于标识文本标签在控制台展示的位置,取值范围为 [0,4]。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
LineId | Long | 123 | 直播频道 ID。 |
LineName | String | 线路1 | 直播频道名称。 |
MainPushInfo | Array of MainPushInfo | - | 直播频道主流的推流地址。 |
BackPushInfo | Array of BackPushInfo | - | 直播频道备流的推流地址。 |
ForwardInfo | Array of ForwardInfo | - | 直播频道主流的拉流转推信息。 |
BackupForwardInfo | Array of BackupForwardInfo | - | 直播频道备流的拉流转推信息。 |
ExpireTime | Long | 1643004493 | 直播频道推流码的过期时间。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PushPath | String | https://example-livesaas.com/example | 推流服务器 URL。 |
PushUrl | String | https://example-livesaas.com/example/livesaas?key=example | 推流完整 URL。 |
StreamingCode | String | livesaas?key=example | 推流串流秘钥。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PushPath | String | https://example2-livesaas.com/example2 | 推流服务器 URL。 |
PushUrl | String | https://example2-livesaas.com/example/livesaas?key=example2 | 推流完整 URL。 |
StreamingCode | String | livesaas?key=example2 | 推流串流秘钥。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PullStreamUrl | String | https://example-livesaas.com/example/livesaas?key=example | 拉流直播拉流 URL。 |
PullStreamStatus | String |
| 拉流直播任务状态。支持以下取值:
|
PullStreamCheckStatus | String |
| 拉流检测状态。支持以下取值:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PullStreamUrl | String | https://example2-livesaas.com/example/livesaas?key=example2 | 拉流直播拉流 URL。 |
PullStreamStatus | String |
| 拉流直播任务状态。支持以下取值:
|
PullStreamCheckStatus | String |
| 拉流检测状态。支持以下取值:
|
GET https://livesaas.volcengineapi.com/?Action=GetCustomActMsgAPI&Version=2020-06-01&ActivityId=172183460671&NeedActMsg=1&NeedActBasicMsg=1&NeedActStreamMsg=1&NeedRealTimeOnlineNumber=1
{
"ResponseMetadata": {
"RequestId": "20230604110420****100232280022D31",
"Action": "GetCustomActMsgAPI",
"Version": "2020-06-01",
"Service": "livesaas",
"Region": "cn-north-1",
"SystemTime": 1697446406
},
"Result": {
"ActMsg": {
"Id": 172183460671,
"Name": "直播间 A",
"LiveTime": 1642070520,
"CoverImage": "https://image1.xxx",
"Status": 2,
"ViewUrl": "https://live.xxx.com/xxx",
"IsLockPreview": 0,
"OwnerSubAccount": "admin@bytedance.com",
"LiveReviewStatus": 2,
"VerticalCoverImage": "https://image2.xxx"
},
"ActBasicMsg": {
"ActivityId": 172183460671,
"Name": "直播间 A",
"LiveTime": 1642070520,
"IsCoverImageEnable": 1,
"CoverImageUrl": "//gjrfd7ferd-image.image",
"IsPcBackImageEnable": 1,
"PcBackImageUrl": "//p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.png",
"IsMobileBackImageEnable": 1,
"MobileBackImageUrl": "//p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.png",
"IsPreviewVideoEnable": 1,
"PreviewVideoVid": "491568852",
"IsPeopleCountEnable": 0,
"IsHeaderImageEnable": 0,
"HeaderImageUrl": "//p.test.org/tos-live18n-i-fhdptwgppv.png",
"IsWatermarkImageEnable": 0,
"WatermarkImageUrl": "//p-imagex.org/tos-live18n-i-fhdptwgppv.png",
"IsThumbUpEnable": 1,
"ThumbUpUrl": "//p-imagex.png",
"IsShareIconEnable": 1,
"ShareIconUrl": "//p-imagex-live18n.test.org/tos-live18n-i-fhdptwgppv.pn",
"IsCommentTranslateEnable": null,
"Announcement": "直播间信息",
"BackgroundColor": "77778888",
"FontColor": "55557777",
"InteractionColor": "45784444",
"ColorThemeIndex": "light",
"IsCountDownEnable": 1,
"IsAutoStartEnable": 1,
"IsPCHeaderImageEnable": 1,
"PCHeaderImageUrl": "//p-imagex-fhdptwgppv.pn",
"IsPageLimitEnable": 1,
"PageLimitType": "pc",
"IsLanguageEnable": 1,
"PlayerTopType": [
""
],
"IsReplayAutoOnlineEnable": 1,
"SiteTags": [
{
"Name": "分类标签",
"Value": "标签1",
"Index": 0
}
],
"TextSiteTags": [
{
"Name": "文本标签",
"Value": "标签2",
"Index": 0
}
]
},
"ActStreamMsg": {
"LineDetails": [
{
"LineId": 123,
"LineName": "线路1",
"MainPushInfo": [
{
"PushPath": "https://example-livesaas.com/example",
"PushUrl": "https://example-livesaas.com/example/livesaas?key=example",
"StreamingCode": "livesaas?key=example"
}
],
"BackPushInfo": [
{
"PushPath": "https://example2-livesaas.com/example2",
"PushUrl": "https://example2-livesaas.com/example/livesaas?key=example2",
"StreamingCode": "livesaas?key=example2"
}
],
"ForwardInfo": [
{
"PullStreamUrl": "https://example-livesaas.com/example/livesaas?key=example",
"PullStreamStatus": "1",
"PullStreamCheckStatus": "1"
}
],
"BackupForwardInfo": [
{
"PullStreamUrl": "https://example2-livesaas.com/example/livesaas?key=example2",
"PullStreamStatus": "1",
"PullStreamCheckStatus": "1"
}
],
"ExpireTime": 1643004493
}
]
},
"RealTimeOnlineNumber": {
"RealPopularity": 2000,
"FakePopularity": 2000
}
}
}