🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. 直播数据
🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
  • 简介
  • 身份验证
  • 用户数据
    • 通过ID获取用户信息
      GET
    • 获取用户视频列表
      GET
    • 获取用户粉丝列表
      GET
    • 获取用户关注列表
      GET
    • 获取用户地区
      GET
    • 获取用户故事
      GET
    • 获取用户点赞的视频列表
      GET
    • 获取用户播放列表
      GET
    • 通过 ID 获取播放列表信息
      GET
    • 验证是否为TTS商家账户
      GET
    • 提取用户 user_id
      GET
    • 提取用户 sec_uid
      GET
    • 验证达人是否开通橱窗
      GET
  • 视频数据
    • 通过 ID 获取视频信息
      GET
    • 分类下的热门视频列表
      GET
    • 热门视频列表
      GET
    • 通过话题标签 ID 获取视频列表
      GET
    • 通过音乐 ID 获取视频列表
      GET
    • 通过播放 ID 获取视频列表
      GET
    • 按 ID 查询评论信息
      GET
    • 通过视频ID获取评论列表
      GET
    • 获取评论的回复列表
      GET
    • 通过 ID 获取话题标签信息
      GET
    • 通过 ID 获取音乐信息
      GET
    • 通过用户 ID 获取用户音乐列表
      GET
    • 获取与产品相关的视频列表
      GET
    • 获取与小店相关的视频列表
      GET
  • 直播数据
    • 通过 ID 获取直播间信息
      GET
    • 获取直播间榜单列表
      GET
    • 通过ID获取直播间榜单信息
      GET
    • 检查直播间是否开播
      GET
  • 产品数据
    • 通过 ID 获取产品信息
    • 获取小店的分类
    • 获取产品一级类别元数据
    • 获取产品二级类别元数据
    • 获取产品三级类别元数据
    • 通过 ID 获取小店数据
    • 获取小店内的产品列表数据
    • 通过分享链接获取小店 ID
    • 通过分享链接获取产品 ID
    • 通过类别 ID 获取web首页产品数据
    • 获取视频相关的产品列表
    • 获取用户相关产品列表
  • 搜索
    • 搜索用户
    • 搜索视频
    • 搜索标签
    • 搜索音乐
    • 搜索直播
    • 搜索产品
  • 错误码
    • 错误请求 (400)
    • 未经授权 (401)
    • 账户密钥会话过期 (428)
    • 接口限流 (429)
    • 服务器错误 (500)
  • 密钥
    • 获取有关您的 API 密钥的信息
  1. 直播数据

获取直播间榜单列表

GET
https://api.tikhubapi.com/api/v1//live/ranking/list
Live
获取直播间榜单列表

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Query Params

Responses

🟢200成功
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.tikhubapi.com/api/v1//live/ranking/list?room_id=7485143893470694186&user_id=7288986759428588590' \
--header 'Authorization: Basic <encoded-value>'
Response Response Example
{
    "code": 0,
    "msg": "success",
    "data": {
        "data": [
            {
                "Priority": 10,
                "animation_loop_for_off": false,
                "data": {
                    "entrances": [
                        {
                            "affiliated_content": {
                                "gap_desc": {
                                    "default_format": {
                                        "bold": false,
                                        "color": "#ffffffff",
                                        "font_size": 0,
                                        "italic": false,
                                        "italic_angle": 0,
                                        "use_heigh_light_color": false,
                                        "use_remote_clor": false,
                                        "weight": 400
                                    },
                                    "default_pattern": "{0:string} to reach No. 99",
                                    "key": "ttlive_ranking_rankingUpdateLabel_behindNo99",
                                    "pieces": [
                                        {
                                            "string_value": "197684",
                                            "type": 1
                                        }
                                    ]
                                }
                            },
                            "block_message": false,
                            "countdown": 55279,
                            "default_content": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "Daily Ranking",
                                "key": "pm_mt_daily_entrance",
                                "pieces": []
                            },
                            "owner_on_rank": false,
                            "owner_rank_idx": 0,
                            "rank_type": 8,
                            "related_tab_rank_type": 8,
                            "request_first_show_type": 8,
                            "reset_time": 1754625600,
                            "roll_config": {
                                "duration": 0,
                                "weight": 0
                            },
                            "window_size": 86400
                        },
                        {
                            "affiliated_content": {
                                "team_rank_bonus_time": {
                                    "bonus_rate": 2,
                                    "bonus_time_gift_id": 13651,
                                    "end_timestamp": 1754614800,
                                    "show_animation": false,
                                    "start_timestamp": 1754611200,
                                    "switch": true
                                }
                            },
                            "block_message": false,
                            "countdown": 55279,
                            "default_content": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "Popular LIVE",
                                "key": "pm_mt_trending_goLIVE_trending_tag",
                                "pieces": []
                            },
                            "owner_on_rank": false,
                            "owner_rank_idx": 0,
                            "rank_type": 15,
                            "related_tab_rank_type": 15,
                            "request_first_show_type": 15,
                            "reset_time": 1754625600,
                            "roll_config": {
                                "duration": 0,
                                "weight": 0
                            },
                            "window_size": 86400
                        },
                        {
                            "block_message": false,
                            "class_info": {
                                "class_type": 600,
                                "star_count": 0
                            },
                            "countdown": 55279,
                            "default_content": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "League {0:string} top {1:string}%",
                                "key": "ttlive_LIVEpage_rankingEntry_creatorRank",
                                "pieces": [
                                    {
                                        "string_value": "C5",
                                        "type": 1
                                    },
                                    {
                                        "string_value": "80",
                                        "type": 1
                                    }
                                ]
                            },
                            "entranceIcon": {
                                "avg_color": "",
                                "height": 13,
                                "image_type": 0,
                                "is_animated": false,
                                "open_web_url": "",
                                "uri": "tos-alisg-i-cuqfs489yo-sg/class_rank/entrance_C.png",
                                "url_list": [
                                    "http://p16-sign-sg.tiktokcdn.com/tos-alisg-i-cuqfs489yo-sg/class_rank/entrance_C.png~tplv-tiktokx-origin.image?dr=10402&refresh_token=ef3e3ca4&x-expires=1754589600&x-signature=1qSAIAavmEP%2BVZ7PmiM8mTP9O5w%3D&t=4d5b0474&ps=13740610&shp=75a09491&shcp=75a09491&idc=no1a"
                                ],
                                "width": 13
                            },
                            "owner_on_rank": false,
                            "owner_rank_idx": 0,
                            "rank_type": 16,
                            "related_tab_rank_type": 8,
                            "request_first_show_type": 16,
                            "reset_time": 0,
                            "roll_config": {
                                "duration": 0,
                                "weight": 0
                            },
                            "window_size": 0
                        }
                    ],
                    "tabs": [
                        {
                            "list_lynx_type": 0,
                            "rank_type": 8,
                            "title": "Daily Ranking",
                            "title_text": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "Daily Ranking",
                                "key": "pm_mt_daily_entrance",
                                "pieces": []
                            }
                        },
                        {
                            "list_lynx_type": 0,
                            "rank_type": 15,
                            "title": "Popular LIVE",
                            "title_text": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "Popular LIVE",
                                "key": "pm_mt_trending_goLIVE_trending_tag",
                                "pieces": []
                            }
                        }
                    ]
                },
                "group_type": 1,
                "is_animation_loop_play": false,
                "union_animation": {
                    "rank_type_array": [
                        8,
                        15,
                        16
                    ],
                    "supported_version": 0,
                    "union_type": 1
                }
            },
            {
                "Priority": 20,
                "animation_loop_for_off": false,
                "data": {
                    "entrances": [
                        {
                            "block_message": false,
                            "countdown": 318079,
                            "default_content": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "Shopping No.{0:string}",
                                "key": "pm_mt_shopping_ranking_top_title",
                                "pieces": [
                                    {
                                        "string_value": "57",
                                        "type": 1
                                    }
                                ]
                            },
                            "owner_on_rank": true,
                            "owner_rank_idx": 57,
                            "rank_type": 6,
                            "related_tab_rank_type": 6,
                            "request_first_show_type": 6,
                            "reset_time": 0,
                            "roll_config": {
                                "duration": 0,
                                "weight": 0
                            },
                            "window_size": 0
                        }
                    ],
                    "tabs": [
                        {
                            "list_lynx_type": 0,
                            "rank_type": 6,
                            "title": "LIVE Shopping Ranking",
                            "title_text": {
                                "default_format": {
                                    "bold": false,
                                    "color": "#ffffffff",
                                    "font_size": 0,
                                    "italic": false,
                                    "italic_angle": 0,
                                    "use_heigh_light_color": false,
                                    "use_remote_clor": false,
                                    "weight": 400
                                },
                                "default_pattern": "LIVE Shopping Ranking",
                                "key": "pm_mt_shopping_ranking_full_title",
                                "pieces": []
                            }
                        }
                    ]
                },
                "group_type": 2,
                "is_animation_loop_play": false,
                "union_animation": {
                    "rank_type_array": [
                        6
                    ],
                    "supported_version": 0,
                    "union_type": 2
                }
            }
        ],
        "extra": {
            "now": 1754570321797
        },
        "status_code": 0
    }
}
Previous
通过 ID 获取直播间信息
Next
通过ID获取直播间榜单信息
Built with