获取直播间首页推荐可用标签/Get available tags for live room homepage recommendation

TikTokapi

About

获取直播间首页推荐可用标签/Get available tags for live room homepage recommendation

Documentation

获取直播间首页推荐可用标签/Get available tags for live room homepage recommendation

[中文]

用途:

  • 获取直播间首页推荐的可用标签(直播分类 Tab)列表
  • 用于配合 /fetch_live_recommend 接口,获取其 related_live_tag 参数的可选值

参数:

  • logid: 翻页游标。首页请求时留空;加载下一页时,传入上一次响应返回的 logid

返回:

  • 可用标签(直播分类 Tab)列表
  • logid: 本次请求的日志ID(来自响应头 x-tt-logid),翻页加载更多时需把它再次作为 logid 参数传入

备注:

  • related_live_tag 的可选值并不固定,会随地区/时间变化,建议每次使用前实时获取。

翻页说明:

  1. 首次请求 logid 留空,从返回结果中取出本次的 logid
  2. 加载下一页时,把上一次返回的 logid 再作为入参 logid 传入即可(内部会自动转换为 TikTok 的 req_id)。

[English]

Purpose:

  • Get the available tag (live category tab) list for live room homepage recommendation
  • Works together with /fetch_live_recommend to discover the available values of its related_live_tag parameter

Parameters:

  • logid: Pagination cursor. Leave empty for the first page; to load the next page, pass the logid value returned by the previous response

Return:

  • Available tag (live category tab) list
  • logid: The log id of this request (from the x-tt-logid response header); pass it back as logid to load more

Note:

  • The available values of related_live_tag are not fixed and may change by region/time, so it is recommended to fetch them in real time before use.

Pagination:

  1. For the first request leave logid empty, and read the returned logid from the result.
  2. To load the next page, pass the previous logid back as the logid parameter (internally converted to TikTok's req_id).

[示例/Example]

logid = ""

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取直播间首页推荐可用标签/Get available tags for live room homepage recommendation

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models