> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Aviato: Get Post Comments

> List the comments on a LinkedIn post, with their replies. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the comments on a LinkedIn post, with their replies.

> [!NOTE]
>
> Tool ID: `aviato_get_post_comments`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'aviato_get_post_comments',
  {
    "postUrn": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute aviato_get_post_comments --input '{
  "postUrn": "example"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "results": [
      {
        "commentary": "example",
        "commenter": {
          "image": "example",
          "linkedinURL": "https://www.linkedin.com/in/jane-doe",
          "linkedinID": "https://www.linkedin.com/in/jane-doe"
        },
        "createdAt": "2026-01-15T12:00:00Z"
      }
    ],
    "totalResults": 123,
    "pages": 123
  }
}
```

Use `deepline describe aviato_get_post_comments --json` for the latest machine-readable contract.

## Input reference

Get comments for a LinkedIn post

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.postUrn` | `string` | Yes | — | LinkedIn post URN |
| `payload.page` | `integer` | No | `1` | Page number |
| `payload.perPage` | `integer` | No | `10` | Number of items per page |
| `payload.numReplies` | `integer` | No | `1` | Number of replies to include per comment |
| `payload.sortOrder` | `string` | No | `"RELEVANCE"` | Sort order for comments |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Get comments for a LinkedIn post",
    "properties": {
      "postUrn": {
        "type": "string",
        "description": "LinkedIn post URN"
      },
      "page": {
        "type": "integer",
        "description": "Page number",
        "default": 1
      },
      "perPage": {
        "type": "integer",
        "description": "Number of items per page",
        "default": 10
      },
      "numReplies": {
        "type": "integer",
        "description": "Number of replies to include per comment",
        "default": 1
      },
      "sortOrder": {
        "type": "string",
        "description": "Sort order for comments",
        "default": "RELEVANCE"
      }
    },
    "required": [
      "postUrn"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.results` | `array` | Yes | — | — |
| `result.data.results[].commentary` | `string` | Yes | — | — |
| `result.data.results[].commenter` | `object` | Yes | — | — |
| `result.data.results[].commenter.image` | `string` | No | — | — |
| `result.data.results[].commenter.linkedinURL` | `string` | No | — | — |
| `result.data.results[].commenter.linkedinID` | `string` | No | — | — |
| `result.data.results[].commenter.name` | `string` | No | — | — |
| `result.data.results[].numReactions` | `integer` | No | — | — |
| `result.data.results[].numComments` | `integer` | No | — | — |
| `result.data.results[].reactionTypeCounts` | `array` | No | — | — |
| `result.data.results[].reactionTypeCounts[].count` | `integer` | Yes | — | — |
| `result.data.results[].reactionTypeCounts[].reactionType` | `string` | Yes | — | — |
| `result.data.results[].comments` | `array` | No | — | — |
| `result.data.results[].createdAt` | `string` | Yes | — | Format: `date-time`. |
| `result.data.totalResults` | `integer` | Yes | — | — |
| `result.data.pages` | `integer` | Yes | — | — |
| `result.data.paginationToken` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "commentary": {
                  "type": "string"
                },
                "commenter": {
                  "type": "object",
                  "properties": {
                    "image": {
                      "type": "string"
                    },
                    "linkedinURL": {
                      "type": "string"
                    },
                    "linkedinID": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "numReactions": {
                  "type": "integer"
                },
                "numComments": {
                  "type": "integer"
                },
                "reactionTypeCounts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer"
                      },
                      "reactionType": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "count",
                      "reactionType"
                    ],
                    "additionalProperties": false
                  }
                },
                "comments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "description": "Recursive OpenAPI schema reference #/components/schemas/type_social:LinkedinComment.",
                    "additionalProperties": true
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "commentary",
                "commenter",
                "createdAt"
              ],
              "additionalProperties": false
            }
          },
          "totalResults": {
            "type": "integer"
          },
          "pages": {
            "type": "integer"
          },
          "paginationToken": {
            "type": "string"
          }
        },
        "required": [
          "results",
          "totalResults",
          "pages"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0.28` per pricing unit.

## Related documentation

* [Aviato provider guide](https://deepline.com/docs/providers/aviato/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.