Tikhub · Social
获取直播间商品列表数据/Get live room product list data
[中文] ### 用途: - 获取直播间商品列表数据 ### 参数: - roomid: 直播间id,必填参数。 - authorid: 主播id,必填参数。 - pagesize: 每页数量,可选参数,默认为15。 - offset: 翻页游标,可选参数,默认为0,每次翻页增加15。 - region: 地区,可选参数,默认为US,如果使用其他地区,如:VN,请自行携带Cookie,否则无法获取数据。 - cookie: 用户自己的cookie,可选参数,用于爬取除US以外的地区数据。 ### 参数获取: - 第一步:使用接口f"{TikHubDomain}/api/v1/tiktok/web/getliveroomid"接口获取直播间id(roomid)。 - 第二步:使用接口f"{TikHubDomain}/api/v1/tiktok/app/v3/fetchliveroominfo"接口获取直播间信息。 - 第三步:使用第二步返回的JSON数据中使用JSONPATH获取$.data.data.owner.idstr字段的值作为主播id(authorid)。 ### 返回: - 直播间商品列表数据 # [English] ### Purpose: - Get live room product list data ### Parameters: - roomid: Live room id, required parameter. - authorid: Anchor id, required parameter. - pagesize: 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"{TikHubDomain}/api/v1/tiktok/web/getliveroomid" to get the live room id (roomid). - Step 2: Use the interface f"{TikHubDomain}/api/v1/tiktok/app/v3/fetchliveroominfo" 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.idstr as the anchor id (authorid). ### Return: - Live room product list data # [示例/Example] roomid = "7420741353250507562" authorid = "7408859677050274859" page_size = 15 offset = 0
Private Gateway connection
Data below comes from the configured private Gateway. Provider activation remains governed by its evidence and policy gates.
Sign in to run this operation, inspect live eligibility, and see governed execution and audit evidence. Sign in.