获取用户帖子列表/Get user posts

Instagramapi

About

获取用户帖子列表/Get user posts

Documentation

获取用户帖子列表/Get user posts

[中文]

用途:

  • 分页获取用户发布的帖子列表,支持向前/向后翻页

参数:

  • username: 用户名字符串(如 99brasil),不是数字 user_id
  • first: 向后翻页时每页数量(默认12,最大50)
  • after: 向后翻页游标,从上一次响应的 page_info.end_cursor 中获取
  • before: 向前翻页游标,从上一次响应的 page_info.start_cursor 中获取
  • last: 向前翻页时每页数量,配合 before 使用
  • count: 首次请求数量(默认12)

翻页说明:

  • 向后翻页: 使用 first + after 组合
  • 向前翻页: 使用 last + before 组合
  • 首次请求不传 after/before,从响应中获取游标

返回:

  • data.edges: 帖子列表
  • data.page_info: 分页信息
    • has_next_page: 是否有下一页
    • end_cursor: 下一页游标
    • start_cursor: 上一页游标

价格:

  • 0.008 USD/请求

[English]

Purpose:

  • Get user's post list with forward/backward pagination

Parameters:

  • username: Username string (e.g. 99brasil), NOT numeric user_id
  • first: Posts per page for forward pagination (default 12, max 50)
  • after: Forward pagination cursor, from previous response page_info.end_cursor
  • before: Backward pagination cursor, from previous response page_info.start_cursor
  • last: Posts per page for backward pagination, use with before
  • count: Number of posts for first request (default 12)

Pagination:

  • Forward: Use first + after
  • Backward: Use last + before

Price:

  • 0.008 USD/request

示例/Example

# 第一页 / First page
GET /get_user_posts?username=99brasil&first=12

# 第二页 / Second page (forward)
GET /get_user_posts?username=99brasil&first=12&after=QVFCcmN1YlF...

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

Try 获取用户帖子列表/Get user posts

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

Open in Playground

Related Models