获取用户精选Highlights列表/Get user highlights

Instagramapi

About

获取用户精选Highlights列表/Get user highlights

Documentation

获取用户精选Highlights列表/Get user highlights

[中文]

用途:

  • 获取Instagram用户的精选Highlights列表
  • 返回用户创建的所有精选集合
  • 支持分页获取

参数:

  • username: Instagram用户名(必填)
  • first: 每页精选数量(默认10,最大50)
  • after: 向后翻页游标,从上一次响应的 data.page_info.end_cursor 获取
  • before: 向前翻页游标,从上一次响应的 data.page_info.start_cursor 获取
  • last: 向前翻页时每页数量,配合 before 使用

返回:

  • data.edges: 精选列表
    • node.id: 精选ID(格式: highlight:xxx)
    • node.title: 精选标题
    • node.cover_media: 封面媒体信息
    • node.cover_media_cropped_thumbnail: 裁剪后的封面缩略图
    • node.media_count: 精选中的故事数量
  • data.page_info: 分页信息
    • has_next_page: 是否有下一页
    • end_cursor: 下一页游标(传给下次请求的after参数)

分页使用方法:

  1. 首次请求:只传 usernamefirst 参数
  2. 获取响应中的 data.page_info.end_cursor
  3. 下次请求:传入 usernamefirstafter (使用上次的end_cursor)
  4. 重复步骤 2-3 直到 data.page_info.has_next_page 为 false

价格:

  • 0.008 USD/请求

[English]

Purpose:

  • Get Instagram user's Highlights list
  • Returns all highlight collections created by the user
  • Support pagination

Parameters:

  • username: Instagram username (required)
  • first: Number of highlights per page (default 10, max 50)
  • after: Forward pagination cursor, from previous response data.page_info.end_cursor
  • before: Backward pagination cursor, from previous response data.page_info.start_cursor
  • last: Highlights per page for backward pagination, use with before

Return:

  • data.edges: Highlights list
    • node.id: Highlight ID (format: highlight:xxx)
    • node.title: Highlight title
    • node.cover_media: Cover media info
    • node.cover_media_cropped_thumbnail: Cropped cover thumbnail
    • node.media_count: Number of stories in highlight
  • data.page_info: Pagination info
    • has_next_page: Whether has next page
    • end_cursor: Next page cursor (use as after parameter in next request)

Pagination usage:

  1. First request: Only pass username and first parameters
  2. Get data.page_info.end_cursor from response
  3. Next request: Pass username, first, and after (use end_cursor from previous)
  4. Repeat steps 2-3 until data.page_info.has_next_page is false

Price:

  • 0.008 USD/request

示例/Example

username = "instagram" first = 10

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

Try 获取用户精选Highlights列表/Get user highlights

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

Open in Playground

Related Models