概览

Twitter API 套件提供多种类型的 API,每种 API 都针对 Twitter 数据收集的特定需求而设计。以下是这些 API 如何连接和交互的概览,基于可用功能:

个人资料 API

通过 URL 获取个人资料

该 API 允许用户使用提供的个人资料 URL 获取详细的 Twitter 个人资料信息。

输入参数

URL
string
required

Twitter 个人资料 URL。

max_number_of_posts
number

要收集的帖子数量。如果省略,则没有限制。

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

  • 个人资料详情
    x_idurlidprofile_namebiographyis_verifiedprofile_image_linkexternal_linkdate_joinedlocationbirth_dateposts_countpostssuggested_profilesis_business_accountis_government_accountcategory_name

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

  • 互动指标
    followersfollowingsubscriptions

  • 帖子详情
    posts

该 API 允许用户获取详细的 Twitter 个人资料信息,包括用户互动指标、帖子详情等,提供对用户活动和个人资料数据的深入洞察。

帖子 API

通过 URL 采集

该 API 允许用户使用提供的帖子 URL 获取特定 Twitter 帖子的详细信息。

输入参数

URL
string
required

Twitter 帖子 URL。

API 限制:每个输入最多 1000 篇帖子。

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

  • 帖子详情
    iduser_postednamedescriptiondate_postedurltagged_usersrepliesrepostslikesviewsexternal_urlhashtagsquotesbookmarksexternal_image_urlsvideosquoted_post

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

  • 用户个人资料详情
    followersbiographyposts_countprofile_image_linkfollowingis_verified

  • 父级帖子详情
    parent_post_details

该 API 允许用户获取特定 Twitter 帖子的详细信息,包括用户详情、互动指标和媒体内容,提供对帖子互动和用户活动的深入洞察。

通过个人资料 URL 发现帖子

该 API 允许用户在指定日期范围内发现并获取特定 Twitter 个人资料的帖子。

输入参数

URL
string
required

Twitter 个人资料 URL。

start_date
string

过滤帖子的起始日期,格式为 MM-DD-YYYY。

end_date
string

过滤帖子的结束日期,格式为 MM-DD-YYYY。

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

  • 帖子详情
    iduser_postednamedescriptiondate_postedurltagged_usersrepliesrepostslikesviewsexternal_urlhashtagsquotesbookmarksexternal_image_urlsvideosquoted_post

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

  • 用户个人资料详情
    followersbiographyposts_countprofile_image_linkfollowingis_verified

  • 父级帖子详情
    parent_post_details

该 API 允许用户在指定时间范围内从特定 Twitter 个人资料中获取帖子,提供详细的帖子互动、用户数据和媒体内容的洞察。