获取用户关注列表/Get user following list

Douyinapi

About

获取用户关注列表/Get user following list

Documentation

获取用户关注列表/Get user following list

[中文]

用途:

  • 获取用户关注列表
  • 第一次请求时,max_time传0,source_type传2,然后会返回一个空的粉丝列表,里面包含了max_time,然后再次请求时,max_time传上一次请求返回的max_time,source_type传1,即可获取到粉丝列表。
  • 如果不按照上述方式请求,可能会导致返回数据包含重复数据。

参数:

  • sec_user_id: 用户sec_user_id
  • max_time: 最大时间戳,默认为0,后续从返回数据中获取,用于翻页。
  • count: 数量,默认为20,建议保持不变。
  • source_type: 来源类型,默认为1,第一次请求时使用2作为来源类型,然后再次请求时使用1作为来源类型。

返回:

  • 关注列表

[English]

Purpose:

  • Get user following list
  • When requesting for the first time, pass 0 for max_time, pass 2 for source_type, and an empty fans list will be returned, which contains max_time, then pass the max_time returned by the previous request for paging each time, pass 1 for source_type, you can get the fans list.
  • If you do not request according to the above method, it may cause the returned data to contain duplicate data.

Parameters:

  • sec_user_id: User sec_user_id
  • max_time: Maximum timestamp, default is 0, get from the returned data later, used for paging.
  • count: Number, default is 20, it is recommended to keep it unchanged.
  • source_type: Source type, default is 1, use 2 as the source type for the first request, and then use 1 as the source type for the subsequent request.

Return:

  • Following list

[示例/Example]

sec_user = "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70" max_time = "0" count = 20 source_type = 2

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

Try 获取用户关注列表/Get user following list

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

Open in Playground

Related Models