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

# /vk/posts/comments

> Get comments on a VK wall post by {owner_id}_{post_id} or post URL: each comment with author, text, date, likes, reply count, attachments and nested reply thread.

**Price:** 5 credits per 100 results

**⚠️ Common errors:** 412: Post not found or comments disabled.



## OpenAPI

````yaml /openapi/social-media.json post /api/vk/posts/comments
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/vk/posts/comments:
    post:
      tags:
        - /vk
      summary: /vk/posts/comments
      description: >-
        Get comments on a VK wall post by {owner_id}_{post_id} or post URL: each
        comment with author, text, date, likes, reply count, attachments and
        nested reply thread.


        **Price:** 5 credits per 100 results


        **⚠️ Common errors:** 412: Post not found or comments disabled.
      operationId: __api_vk_posts_comments_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VkPostsCommentsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VkComment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VkPostsCommentsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        post:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        offset:
          type: integer
          minimum: 0
          default: 0
        sort:
          $ref: '#/components/schemas/VkCommentSort'
          default: asc
      type: object
      required:
        - post
        - count
    VkComment:
      properties:
        '@type':
          type: string
          default: VkComment
        id:
          type: integer
        from_id:
          anyOf:
            - type: integer
            - type: 'null'
        author:
          anyOf:
            - $ref: '#/components/schemas/VkAuthor'
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
        like_count:
          anyOf:
            - type: integer
            - type: 'null'
        reply_count:
          anyOf:
            - type: integer
            - type: 'null'
        reply_to_user_id:
          anyOf:
            - type: integer
            - type: 'null'
        reply_to_comment_id:
          anyOf:
            - type: integer
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        attachments:
          items:
            $ref: '#/components/schemas/VkAttachment'
          type: array
          default: []
        thread:
          items:
            $ref: '#/components/schemas/VkComment'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    VkCommentSort:
      type: string
      enum:
        - asc
        - desc
    VkAuthor:
      properties:
        '@type':
          type: string
          default: VkAuthor
        id:
          type: integer
        name:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        is_group:
          type: boolean
          default: false
        is_verified:
          type: boolean
          default: false
      type: object
      required:
        - id
    VkAttachment:
      properties:
        '@type':
          type: string
          default: VkAttachment
        attachment_type:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        link_url:
          anyOf:
            - type: string
            - type: 'null'
        attachment_title:
          anyOf:
            - type: string
            - type: 'null'
        duration:
          anyOf:
            - type: integer
            - type: 'null'
        view_count:
          anyOf:
            - type: integer
            - type: 'null'
        platform:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````