Skip to main content
POST
/
api
/
vk
/
posts
/
comments
/vk/posts/comments
curl --request POST \
  --url https://api.anysite.io/api/vk/posts/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "post": "<string>",
  "count": 2,
  "timeout": 300,
  "offset": 0,
  "sort": "asc"
}
'
[
  {
    "id": 123,
    "@type": "VkComment",
    "from_id": 123,
    "author": {
      "id": 123,
      "@type": "VkAuthor",
      "name": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "is_group": false,
      "is_verified": false
    },
    "created_at": 123,
    "text": "<string>",
    "like_count": 123,
    "reply_count": 123,
    "reply_to_user_id": 123,
    "reply_to_comment_id": 123,
    "images": [],
    "attachments": [],
    "thread": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
post
string
required

VK wall post in {owner_id}_{post_id} form or a wall post URL

Minimum string length: 1
Examples:

"-22822305_1703293"

"1_2442097"

"https://vk.com/wall-22822305_1703293"

count
integer
required

Max number of comments to return

Required range: x >= 1
Example:

20

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
offset
integer
default:0

Number of comments to skip

Required range: x >= 0
sort
enum<string>
default:asc

Comment ordering by date

Available options:
asc,
desc

Response

Successful Response

id
integer
required
@type
string
default:VkComment
from_id
integer | null
author
object | null
created_at
integer | null
text
string | null
like_count
integer | null
reply_count
integer | null
reply_to_user_id
integer | null
reply_to_comment_id
integer | null
images
string[]
attachments
object[]
thread
array