概述

TikTok API 套件提供多种类型的 API,每种 API 都针对从 TikTok 采集数据的特定需求进行设计。以下是这些 API 之间的交互概述,基于可用功能:

Profile API

通过 URL 采集

该 API 允许用户使用提供的个人资料 URL 检索详细的 TikTok 个人资料信息。

输入参数

URL
string
required

TikTok 个人资料 URL。

输出结构
包含全面的数据点:

  • 个人资料详情
    account_idnicknamebiographybio_linkpredicted_langis_verifiedfollowersfollowinglikesvideos_countcreate_timeidurlprofile_pic_urlprofile_pic_url_hd 等。

    查看所有数据点,请点击这里

  • 互动指标
    awg_engagement_ratecomment_engagement_ratelike_engagement_ratelike_countdigg_count

  • 隐私与设置
    is_privaterelationopen_favoritecomment_settingduet_settingstitch_settingis_ad_virtualroom_idis_under_age_18

  • 发现与热门视频
    regiontop_videosdiscovery_input

该 API 允许用户检索详细的 TikTok 个人资料信息,包括互动指标、隐私设置和热门视频,提供有关用户活动和个人资料数据的见解。

通过搜索 URL 发现

该 API 允许用户根据特定的搜索 URL 和国家/地区发现 TikTok 个人资料,并提供详细的个人资料信息。

输入参数

search_url
string
required

TikTok 搜索 URL。

country
string
required

执行搜索的国家/地区。

输出结构
包含全面的数据点:

  • 个人资料详情
    account_idnicknamebiographybio_linkpredicted_langis_verifiedfollowersfollowinglikesvideos_countcreate_timeidurlprofile_pic_urlprofile_pic_url_hd 等。

    查看所有数据点,请点击这里

  • 互动指标
    awg_engagement_ratecomment_engagement_ratelike_engagement_ratelike_countdigg_count

  • 隐私与设置
    is_privaterelationopen_favoritecomment_settingduet_settingstitch_settingis_ad_virtualroom_idis_under_age_18

  • 发现与热门视频
    regiontop_videosdiscovery_input

该 API 使用户能够根据搜索条件发现 TikTok 个人资料,并提供有关用户活动、互动、隐私设置和热门内容的见解,有助于高效发现和分析 TikTok 用户。

帖子 API

通过 URL 采集

该 API 允许用户通过提供 TikTok 帖子 URL 来采集详细的帖子数据。

输入参数

URL
string
required

TikTok 帖子 URL。

输出结构
包含丰富的数据点:

  • 帖子详情
    post_iddescriptioncreate_timeshare_countcollect_countcomment_countplay_countvideo_durationhashtagsoriginal_soundofficial_itemoriginal_itemshortcodevideo_urlmusiccdn_urlwidthcarousel_images 等。

    查看所有数据点,请点击这里

  • 个人资料详情
    profile_idprofile_usernameprofile_urlprofile_avatarprofile_biographyaccount_idprofile_followersis_verified

  • 标记的用户和媒体
    tagged_usercarousel_images

  • 附加信息
    tt_chain_tokensecu_id


通过个人资料 URL 发现

该 API 允许用户基于提供的个人资料 URL 获取 TikTok 个人资料的帖子,并可通过帖子数量、日期范围和排除特定帖子的选项进行筛选。

输入参数

URL
string
required

TikTok 个人资料 URL。

num_of_posts
number

要采集的帖子数量。如果未提供,则不限制。

posts_to_not_include
array

要排除的帖子 ID 数组。

start_date
string

过滤帖子的起始日期(格式:mm-dd-yyyy),应小于 end_date

end_date
string

过滤帖子的结束日期(格式:mm-dd-yyyy),应大于 start_date

what_to_collect
string

指定要采集的帖子类型(例如 “post” 或 “reel”)。

输出结构
包含丰富的数据点:

  • 帖子详情
    post_iddescriptioncreate_timeshare_countcollect_countcomment_countplay_countvideo_durationhashtagsoriginal_soundofficial_itemoriginal_itemshortcodevideo_urlmusiccdn_urlwidthcarousel_images 等。

    查看所有数据点,请点击这里

  • 个人资料详情
    profile_idprofile_usernameprofile_urlprofile_avatarprofile_biographyaccount_idprofile_followersis_verified

  • 标记的用户和媒体
    tagged_usercarousel_images

  • 附加信息
    tt_chain_tokensecu_id

该 API 允许用户发现和检索特定 TikTok 个人资料的帖子详细信息,包括帖子数据、创作者的个人资料信息以及标记的用户。支持高效内容发现和帖子分析。


通过关键词发现

该 API 允许用户基于特定关键词或标签搜索 TikTok 帖子,是发现 TikTok 平台相关内容的强大工具。

输入参数

search_keyword
string
required

要搜索的关键词或标签。

num_of_posts
number

要采集的帖子数量。如果未提供,则不限制。

posts_to_not_include
array

要排除的帖子 ID 数组。

what_to_collect
string

指定要采集的帖子类型(例如 “post” 或 “reel”)。

输出结构
包含丰富的数据点:

  • 帖子详情
    post_iddescriptioncreate_timedigg_countshare_countcollect_countcomment_countplay_countvideo_durationhashtagsoriginal_soundpost_typediscovery_inputofficial_item 等。

    查看所有数据点,请点击这里

  • 个人资料详情
    profile_idprofile_usernameprofile_urlprofile_avatarprofile_biographyaccount_idprofile_followersis_verified

  • 标记的用户和媒体
    tagged_usercarousel_images

  • 附加信息
    tt_chain_tokensecu_id

该 API 允许用户发现与特定关键词或标签匹配的 TikTok 帖子,并提供帖子详细信息、个人资料信息和媒体信息。这是探索 TikTok 趋势、内容和用户的绝佳工具。


通过发现 URL 发现

该 API 允许用户从特定 TikTok 发现 URL 采集详细的帖子数据。

输入参数

URL
string
required

TikTok 发现 URL。

输出结构
包含丰富的数据点:

  • 帖子详情
    post_iddescriptioncreate_timedigg_countshare_countcollect_countcomment_countplay_countvideo_durationhashtagsoriginal_soundpost_typediscovery_inputofficial_itemoriginal_item 等。

    查看所有数据点,请点击这里

  • 个人资料详情
    profile_idprofile_usernameprofile_urlprofile_avatarprofile_biographyaccount_idprofile_followersis_verified

  • 标记的用户和媒体
    tagged_usercarousel_images

  • 附加信息
    tt_chain_tokensecu_id

该 API 提供详细的 TikTok 发现 URL 相关帖子数据,方便访问热门内容、用户资料和帖子元数据,以便分析和探索。

评论 API

按 URL 采集

该 API 允许用户通过提供的 TikTok 帖子 URL 采集该帖子的详细评论数据。

输入参数

URL
string
required

TikTok 帖子 URL。

输出结构: 包含全面的数据点:

  • 帖子详情post_urlpost_idpost_date_created

    获取所有数据点,请点击这里

  • 评论详情date_createdcomment_textnum_likesnum_repliescomment_idcomment_url

  • 评论者详情commenter_user_namecommenter_idcommenter_url

该 API 提供 TikTok 帖子的详细评论数据,包括评论相关的指标以及评论者信息,以便进行有效的评论分析和互动跟踪。