# Instagram post comments

Get Instagram post comment list. Needs code. Served by TikHub.

Purpose:
- Get Instagram post comment list
- Support pagination to fetch all comments
- Support sorting by popular or newest
Parameters:
- code: Post shortcode (e.g., DUajw4YkorV, required)
- min_id: Pagination cursor, omit for first request, get from previous response `data.next_min_id`
- sort_order: Sort order
    - `popular`: Sort by popular (default)
    - `newest`: Sort by newest
Return:
- `data.comments`: Comment list
    - `user`: Commenter info
    - `text`: Comment text
    - `created_at`: Comment timestamp
    - `comment_like_count`: Comment likes count
    - `child_comment_count`: Child comments count
- `data.next_min_id`: Next page cursor (use as min_id in next request)
- `data.has_more_comments`: Whether has more comments
- `data.comment_count`: Total comment count
Pagination usage:
1. First request: Pass `code` parameter
2. Get `data.next_min_id` from response
3. Next request: Pass `next_min_id` as-is to `min_id` parameter (no pre-processing needed, the API handles unescaping automatically)
4. Repeat steps 2-3 until `data.has_more_comments` is false

Note:
- `min_id` is an escaped JSON string returned by the API (e.g., `"{"cached_comments_cursor":"xxx","bifilter_token":"xxx"}"`), just pass it as-is, the API handles unescaping internally

示例/Example
code = "DUajw4YkorV"

- Tool ID: `tikhub/instagram-v3-get-post-comments`
- Variant: API v3
- Name in the catalog: Instagram, Get post comments
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [Instagram comments](/tools/instagram/comments.md)
- Price: $0.008 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.008
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.008; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "帖子短代码/Post shortcode (e.g., DUajw4YkorV)",
      "title": "Code"
    },
    "min_id": {
      "type": "string",
      "description": "分页游标，首次请求不传，从上一次响应的 next_min_id 获取/Pagination cursor, omit for first request, get from previous response next_min_id",
      "title": "Min Id"
    },
    "sort_order": {
      "enum": [
        "popular",
        "newest"
      ],
      "type": "string",
      "description": "排序方式/Sort order. 可选值/Options: popular(热门), newest(最新). Example: popular",
      "default": "popular",
      "title": "Sort Order"
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/instagram-v3-get-post-comments",
  "input": {
    "code": "DUajw4YkorV",
    "sort_order": "popular"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/Instagram-V3-API/get_post_comments_api_v1_instagram_v3_get_post_comments_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/instagram-v3-get-post-comments) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/instagram-v3-get-post-comments) · [Agent index](/llms.txt)
