获取探索页推荐帖子/Get explore feed

Instagramapi

About

获取探索页推荐帖子/Get explore feed

Documentation

获取探索页推荐帖子/Get explore feed

[中文]

用途:

  • 获取Instagram探索/发现页的推荐帖子
  • 返回个性化推荐的帖子列表
  • 支持分页获取更多推荐内容

参数:

  • max_id: 分页游标,首次请求不传,从上一次响应的 data.next_max_id 获取

返回:

  • data.sectional_items: 推荐内容分区列表
    • layout_content.medias: 媒体列表
      • media.id: 帖子ID
      • media.code: 帖子短代码
      • media.media_type: 媒体类型(1=图片, 2=视频, 8=合集)
      • media.like_count: 点赞数
      • media.comment_count: 评论数
      • media.caption.text: 帖子文本
      • media.user: 发布者信息
      • media.image_versions2: 图片版本列表
      • media.video_versions: 视频版本列表(视频时存在)
  • data.next_max_id: 下一页分页游标(传给下次请求的max_id参数)
  • data.more_available: 是否有更多内容

分页使用方法:

  1. 首次请求:不传任何参数
  2. 获取响应中的 data.next_max_id
  3. 下次请求:传入 max_id (使用上次的next_max_id)
  4. 重复步骤 2-3 直到 data.more_available 为 false

价格:

  • 0.008 USD/请求

[English]

Purpose:

  • Get Instagram Explore/Discover page recommended posts
  • Returns personalized recommended post list
  • Support pagination to fetch more recommendations

Parameters:

  • max_id: Pagination cursor, omit for first request, get from previous response data.next_max_id

Return:

  • data.sectional_items: Recommended content section list
    • layout_content.medias: Media list
      • media.id: Post ID
      • media.code: Post shortcode
      • media.media_type: Media type (1=image, 2=video, 8=carousel)
      • media.like_count: Likes count
      • media.comment_count: Comments count
      • media.caption.text: Post caption text
      • media.user: Publisher info
      • media.image_versions2: Image version list
      • media.video_versions: Video version list (exists for videos)
  • data.next_max_id: Next page cursor (use as max_id in next request)
  • data.more_available: Whether has more content

Pagination usage:

  1. First request: No parameters needed
  2. Get data.next_max_id from response
  3. Next request: Pass max_id (use next_max_id from previous)
  4. Repeat steps 2-3 until data.more_available is false

Price:

  • 0.008 USD/request

示例/Example

# 第一页 / First page (不传参数 / no parameters)
# 第二页 / Second page
# max_id = "..."  # 从第一页响应中获取 / Get from first page response

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

Try 获取探索页推荐帖子/Get explore feed

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

Open in Playground

Related Models