接口地址: http://api.ilingku.com/int/v1/huyalive

返回格式: json/text/location

请求方式: get/post

请求示例: http://api.ilingku.com/int/v1/huyalive?url=https://www.huya.com/11342412

请求参数说明:

名称 必填 类型 说明
url string 需要解析的虎牙直播url
id string 需要解析的虎牙直播房间ID
type string 输出类型(all、text、location、json)
cdn string 输出CDN地址(hycdn、txcdn、hwcdn、hscdn、wscdn、alcdn)

返回参数说明:

名称 类型 说明
code string 返回的状态码
msg string 返回错误提示信息
title string 返回直播间标题
user string 返回主播名称
class string 返回直播类型
pic string 返回直播间封面
url string 返回直播源地址

返回示例:

{
    "code": 200,
    "msg": "解析成功",
    "title": "【周星星】星爷经典不间断",
    "user": "周星星",
    "class": "一起看",
    "pic": "http://live-cover.msstatic.com/huyalive/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1/20241101134710.jpg",
    "url": "https://al.flv.huya.com/src/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1.flv?wsSecret=ad8d50851ddd1c5ab5ae14157df5441d&wsTime=6724bffe&ctype=tars_mp&fs=bgct&t=102&ver=1&sv=2024110113&seqid=3198686688804&uid=1468246593851&uuid=2008289030"
}

错误码格式说明:

名称 类型 说明
code string 错误代码
msg string 错误提示
. 领酷API接口大全 Inc All Rights Reserved.蜀ICP备2023019253号-2