概述
TikTok API 套件提供多种类型的 API,每种 API 都针对从 TikTok 采集数据的特定需求进行设计。以下是这些 API 之间的交互概述,基于可用功能:Profile API
该 API 允许用户通过单一输入(个人资料 URL)采集个人资料详情。
- 发现功能:
- 搜索的直接 URL
- 主要数据列:
- 
  nickname,awg_engagement_rate,followers,likes
Posts API
该 API 允许用户通过单一输入 URL 采集多个帖子。
- 发现功能:
- - TikTok 个人资料的直接 URL
- - 通过关键词发现
- - 发现的直接 URL
- 主要数据列:
- 
  url,share_count,description,hashtags
Comments API
该 API 允许用户使用帖子 URL 采集多个评论。
- 发现功能:
- N/A
- 主要数据列:
- 
  url,comment_text,commenter_url,num_likes
Profile API
通过 URL 采集
该 API 允许用户使用提供的个人资料 URL 检索详细的 TikTok 个人资料信息。 输入参数:TikTok 个人资料 URL。
包含全面的数据点:
- 
个人资料详情:
 account_id,nickname,biography,bio_link,predicted_lang,is_verified,followers,following,likes,videos_count,create_time,id,url,profile_pic_url,profile_pic_url_hd等。查看所有数据点,请点击这里。 
- 
互动指标:
 awg_engagement_rate,comment_engagement_rate,like_engagement_rate,like_count,digg_count。
- 
隐私与设置:
 is_private,relation,open_favorite,comment_setting,duet_setting,stitch_setting,is_ad_virtual,room_id,is_under_age_18。
- 
发现与热门视频:
 region,top_videos,discovery_input。
通过搜索 URL 发现
该 API 允许用户根据特定的搜索 URL 和国家/地区发现 TikTok 个人资料,并提供详细的个人资料信息。 输入参数:TikTok 搜索 URL。
执行搜索的国家/地区。
包含全面的数据点:
- 
个人资料详情:
 account_id,nickname,biography,bio_link,predicted_lang,is_verified,followers,following,likes,videos_count,create_time,id,url,profile_pic_url,profile_pic_url_hd等。查看所有数据点,请点击这里。 
- 
互动指标:
 awg_engagement_rate,comment_engagement_rate,like_engagement_rate,like_count,digg_count。
- 
隐私与设置:
 is_private,relation,open_favorite,comment_setting,duet_setting,stitch_setting,is_ad_virtual,room_id,is_under_age_18。
- 
发现与热门视频:
 region,top_videos,discovery_input。
帖子 API
通过 URL 采集
该 API 允许用户通过提供 TikTok 帖子 URL 来采集详细的帖子数据。 输入参数:TikTok 帖子 URL。
包含丰富的数据点:
- 
帖子详情:
 post_id、description、create_time、share_count、collect_count、comment_count、play_count、video_duration、hashtags、original_sound、official_item、original_item、shortcode、video_url、music、cdn_url、width、carousel_images等。查看所有数据点,请点击这里。 
- 
个人资料详情:
 profile_id、profile_username、profile_url、profile_avatar、profile_biography、account_id、profile_followers、is_verified。
- 
标记的用户和媒体:
 tagged_user、carousel_images。
- 
附加信息:
 tt_chain_token、secu_id
通过个人资料 URL 发现
该 API 允许用户基于提供的个人资料 URL 获取 TikTok 个人资料的帖子,并可通过帖子数量、日期范围和排除特定帖子的选项进行筛选。 输入参数:TikTok 个人资料 URL。
要采集的帖子数量。如果未提供,则不限制。
要排除的帖子 ID 数组。
过滤帖子的起始日期(格式:mm-dd-yyyy),应小于 
end_date。过滤帖子的结束日期(格式:mm-dd-yyyy),应大于 
start_date。指定要采集的帖子类型(例如 “post” 或 “reel”)。
包含丰富的数据点:
- 
帖子详情:
 post_id、description、create_time、share_count、collect_count、comment_count、play_count、video_duration、hashtags、original_sound、official_item、original_item、shortcode、video_url、music、cdn_url、width、carousel_images等。查看所有数据点,请点击这里。 
- 
个人资料详情:
 profile_id、profile_username、profile_url、profile_avatar、profile_biography、account_id、profile_followers、is_verified。
- 
标记的用户和媒体:
 tagged_user、carousel_images。
- 
附加信息:
 tt_chain_token、secu_id。
通过关键词发现
该 API 允许用户基于特定关键词或标签搜索 TikTok 帖子,是发现 TikTok 平台相关内容的强大工具。 输入参数:要搜索的关键词或标签。
要采集的帖子数量。如果未提供,则不限制。
要排除的帖子 ID 数组。
指定要采集的帖子类型(例如 “post” 或 “reel”)。
包含丰富的数据点:
- 
帖子详情:
 post_id、description、create_time、digg_count、share_count、collect_count、comment_count、play_count、video_duration、hashtags、original_sound、post_type、discovery_input、official_item等。查看所有数据点,请点击这里。 
- 
个人资料详情:
 profile_id、profile_username、profile_url、profile_avatar、profile_biography、account_id、profile_followers、is_verified。
- 
标记的用户和媒体:
 tagged_user、carousel_images。
- 
附加信息:
 tt_chain_token、secu_id。
通过发现 URL 发现
该 API 允许用户从特定 TikTok 发现 URL 采集详细的帖子数据。 输入参数:TikTok 发现 URL。
包含丰富的数据点:
- 
帖子详情:
 post_id、description、create_time、digg_count、share_count、collect_count、comment_count、play_count、video_duration、hashtags、original_sound、post_type、discovery_input、official_item、original_item等。查看所有数据点,请点击这里。 
- 
个人资料详情:
 profile_id、profile_username、profile_url、profile_avatar、profile_biography、account_id、profile_followers、is_verified。
- 
标记的用户和媒体:
 tagged_user、carousel_images。
- 
附加信息:
 tt_chain_token、secu_id。
评论 API
按 URL 采集
该 API 允许用户通过提供的 TikTok 帖子 URL 采集该帖子的详细评论数据。 输入参数:TikTok 帖子 URL。
- 
帖子详情:
post_url,post_id,post_date_created。获取所有数据点,请点击这里。 
- 
评论详情:
date_created,comment_text,num_likes,num_replies,comment_id,comment_url。
- 
评论者详情:
commenter_user_name,commenter_id,commenter_url。