概述

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

该 API 套件旨在提供灵活的数据采集能力,用户可以输入特定的 URL 以批量或精准筛选的方式获取详细的帖子和评论数据。

Profiles API

通过 URL 采集

此 API 允许用户通过提供 Instagram 个人资料 URL 来收集详细的 Instagram 个人资料数据。它提供了 Instagram 个人资料的全面概览,包括商业和互动信息、帖子以及用户详细信息。

输入参数

URL
string
required

Instagram 个人资料 URL。

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

  • 页面/个人资料详情
    accountidfollowersposts_countis_business_accountis_professional_accountis_verifiedavg_engagementprofile_nameprofile_urlprofile_image_link 等。

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


Posts API

通过 URL 采集

此 API 允许用户通过提供帖子 URL 来收集 Instagram 帖子的详细数据。

输入参数

URL
string
required

Instagram 帖子 URL。

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

  • 帖子详情
    post_iddescriptionhashtagsdate_postednum_commentslikescontent_typevideo_view_countvideo_play_count 等。

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

  • 页面/个人资料详情
    user_postedfollowersposts_countprofile_image_linkis_verifiedprofile_url

    仅提供有限的个人资料数据点。

  • 附件和媒体
    photosvideosthumbnaildisplay_url(仅链接,非文件)、audio


通过 URL 发现

此 API 允许用户通过提供 Instagram 个人资料 URL 并指定额外参数,发现该公共个人资料的最新帖子。

输入参数

URL
string
required

Instagram 个人资料 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)。

post_type
string

指定要采集的帖子类型(如 postreel)。

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

  • 帖子详情
    post_iddescriptionhashtagsdate_postednum_commentslikesvideo_view_countvideo_play_count 等。

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

  • 页面/个人资料详情
    user_postedfollowersposts_countprofile_image_linkis_verifiedprofile_urlis_paid_partnershippartnership_detailsuser_posted_id

  • 附件和媒体
    photosvideosthumbnailaudiodisplay_urlcontent_typeproduct_typecoauthor_producerstagged_users

此 API 允许进行过滤、排除特定帖子,并按类型(普通帖子或短视频)在指定时间范围内采集帖子。它提供详细的帖子和个人资料信息,适用于数据采集和分析。

评论 API

通过 URL 采集

此 API 允许用户通过提供 Instagram 帖子 URL 来收集特定帖子的最新评论。

此 API 仅获取最近 10 条评论及相关元数据。

输入参数

URL
string
required

Instagram 帖子 URL。

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

  • 评论详情
    comment_idcomment_usercomment_user_urlcomment_datecommentlikes_numberreplies_numberreplieshashtag_commenttagged_users_in_comment 等。

    所有数据点,请点击这里

  • 用户详情
    user_nameuser_iduser_url

    我们仅提供有限的用户资料数据点。

  • 帖子元数据
    post_urlpost_userpost_id

Reels API(短视频 API)

通过 URL 采集

此 API 允许用户通过提供 Reels 短视频的 URL,从公开的 Instagram 个人资料中收集详细数据。

输入参数

URL
string
required

Instagram Reels 短视频 URL。

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

  • 短视频详情
    post_iddescriptionhashtagsdate_postedtagged_usersnum_commentslikesviewsvideo_play_countlength 等。

    所有数据点,请点击这里

  • 页面/个人资料详情
    user_postedfollowersposts_countprofile_image_linkis_verifiedprofile_url

    我们仅提供有限的个人资料数据点。

  • 附件和媒体
    video_urlthumbnailaudio_url

通过 URL 发现

此 API 允许用户通过个人资料 URL 或直接搜索 URL 发现 Instagram Reels 短视频。

输入参数

URL
string
required

Instagram 个人资料 URL 或直接搜索 URL。

num_of_posts
number

需要收集的最新短视频数量。如果省略,则没有限制。

posts_to_not_include
array

要排除的短视频 ID 数组。

start_date
string

过滤短视频的起始日期,格式为 MM-DD-YYYY。

end_date
string

过滤短视频的结束日期,格式为 MM-DD-YYYY(应晚于 start_date)。

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

  • 短视频详情
    post_iddescriptionhashtagsdate_postednum_commentslikesviewsvideo_play_counttop_commentslengthvideo_urlaudio_urlcontent_id 等。

    所有数据点,请点击这里

  • 个人资料详情
    user_postedfollowersposts_countfollowing

  • 附件和媒体
    video_urlthumbnailaudio_url(仅提供链接,不包含文件本身)。

此 API 提供有关 Instagram Reels 的详细信息,并支持按日期范围过滤、排除特定帖子以及限制收集的短视频数量。