获取直播间商品列表数据/Get live room product list data

TikTokapi

About

获取直播间商品列表数据/Get live room product list data

Documentation

获取直播间商品列表数据/Get live room product list data

[中文]

用途:

  • 获取直播间商品列表数据

参数:

  • room_id: 直播间id,必填参数。
  • author_id: 主播id,必填参数。
  • page_size: 每页数量,可选参数,默认为15。
  • offset: 翻页游标,可选参数,默认为0,每次翻页增加15。
  • region: 地区,可选参数,默认为US,如果使用其他地区,如:VN,请自行携带Cookie,否则无法获取数据。
  • cookie: 用户自己的cookie,可选参数,用于爬取除US以外的地区数据。

参数获取:

  • 第一步:使用接口f"{TikHub_Domain}/api/v1/tiktok/web/get_live_room_id"接口获取直播间id(room_id)。
  • 第二步:使用接口f"{TikHub_Domain}/api/v1/tiktok/app/v3/fetch_live_room_info"接口获取直播间信息。
  • 第三步:使用第二步返回的JSON数据中使用JSONPATH获取$.data.data.owner.id_str字段的值作为主播id(author_id)。

返回:

  • 直播间商品列表数据

[English]

Purpose:

  • Get live room product list data

Parameters:

  • room_id: Live room id, required parameter.
  • author_id: Anchor id, required parameter.
  • page_size: Number per page, optional parameter, default is 15.
  • offset: Page turning cursor, optional parameter, default is 0, increasing by 15 each time.
  • region: Region, optional parameter, default is US, if you use other regions, such as: VN, please bring your own Cookie, otherwise you will not be able to get data.
  • cookie: User's own cookie, optional parameter, used to crawl data from regions other than US.

Get Parameters:

  • Step 1: Use the interface f"{TikHub_Domain}/api/v1/tiktok/web/get_live_room_id" to get the live room id (room_id).
  • Step 2: Use the interface f"{TikHub_Domain}/api/v1/tiktok/app/v3/fetch_live_room_info" to get the live room information.
  • Step 3: Use the JSONPATH in the JSON data returned in the second step to get the value of the field $.data.data.owner.id_str as the anchor id (author_id).

Return:

  • Live room product list data

[示例/Example]

room_id = "7420741353250507562" author_id = "7408859677050274859" page_size = 15 offset = 0

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

Try 获取直播间商品列表数据/Get live room product list data

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

Open in Playground

Related Models